/*
  Shimpaku — shared styles.
  Palette and type scale mirror the app's design system
  (washi paper, sumi ink, moss action, terracotta accent).
*/

@font-face {
  font-family: "Mali";
  src: url("/assets/fonts/Mali-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --washi-50: #f7f1e6;
  --washi-100: #eee4d3;
  --washi-200: #ded0ba;
  --sumi-900: #292b26;
  --sumi-700: #4c4d43;
  --moss-700: #667052;
  --terracotta-700: #a9532f;

  --font-display: "Mali", "Segoe Print", "Bradley Hand", cursive, system-ui, sans-serif;
  --font-body: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--washi-50);
  color: var(--sumi-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--moss-700);
  text-decoration-color: var(--washi-200);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta-700);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sumi-900);
  line-height: 1.25;
}

/* ---------- Landing page ---------- */

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--washi-50);
  background-image:
    linear-gradient(rgba(247, 241, 230, 0.78), rgba(247, 241, 230, 0.78)),
    url("/assets/img/garden-footer.png");
  background-image:
    linear-gradient(rgba(247, 241, 230, 0.78), rgba(247, 241, 230, 0.78)),
    image-set(
      url("/assets/img/garden-footer.webp") type("image/webp"),
      url("/assets/img/garden-footer.png") type("image/png")
    );
  background-repeat: no-repeat, no-repeat;
  background-position: center, center bottom;
  background-size: auto, cover;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}

.hero-icon {
  width: 140px;
  height: auto;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.hero .wordmark-rule {
  width: 64px;
  height: 4px;
  background: var(--terracotta-700);
  border: none;
  border-radius: 2px;
  margin: 0 0 1.25rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--sumi-700);
  max-width: 30ch;
  margin: 0 0 2.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 42ch;
}

.feature-list li {
  color: var(--sumi-700);
  font-size: 1.05rem;
}

.store-badges {
  margin-top: 2.5rem;
  color: var(--sumi-700);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 1.75rem 1.5rem 2.25rem;
  color: var(--sumi-900);
  font-size: 0.9rem;
}

.site-footer nav {
  margin-bottom: 0.5rem;
}

.site-footer nav a {
  color: var(--sumi-900);
  margin: 0 0.4rem;
  text-decoration-color: var(--sumi-900);
}

.site-footer .sep {
  color: var(--sumi-700);
}

/* ---------- Legal / support pages ---------- */

.doc-page {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.doc-page .back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 2rem;
}

.doc-page h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.effective-date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sumi-700);
  margin: 0 0 2rem;
}

.doc-page h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
}

.doc-page h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--sumi-900);
  margin: 1.75rem 0 0.5rem;
}

.doc-page p,
.doc-page li {
  color: var(--sumi-700);
}

.doc-page p {
  margin: 0 0 1rem;
}

.doc-page ul,
.doc-page ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc-page li {
  margin-bottom: 0.5rem;
}

.doc-page strong {
  color: var(--sumi-900);
}

.summary-line {
  background: var(--washi-100);
  border: 1px solid var(--washi-200);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--sumi-900);
}

.contact-block {
  background: var(--washi-100);
  border: 1px solid var(--washi-200);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.contact-block a {
  font-weight: 600;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--washi-200);
  margin: 2.5rem 0;
}

.doc-footer {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--sumi-700);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.not-found h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-icon {
    width: 112px;
  }
}
