/* ============================================================
   taaya.io — public holding page
   Same identity as the preview site: Newsreader / Hanken Grotesk,
   porcelain ground, heritage green. One quiet screen.
   ============================================================ */

@font-face {
  font-family: "Newsreader Display";
  src: url("/fonts/newsreader-display.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader Text";
  src: url("/fonts/newsreader-text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader Text";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --porcelain: #F6F4EF;
  --ink: #1C1B18;
  --ink-soft: #56524A;
  --green-deep: #24382E;
  --green-ink: #33503F;
  --hairline: #E3DFD5;

  --display: "Newsreader Display", "Newsreader Text", Georgia, serif;
  --serif-text: "Newsreader Text", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(51, 80, 63, 0.16);
  color: var(--ink);
}

main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vh, 5rem) clamp(1.35rem, 5vw, 2.5rem);
}

main > div {
  max-width: 30rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.descriptor {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.rule {
  width: 2.5rem;
  height: 2px;
  background: var(--green-deep);
  margin-top: 1.4rem;
}

.lede {
  margin-top: 1.6rem;
  font-family: var(--serif-text);
  font-size: clamp(1.25rem, 2.8vw, 1.45rem);
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}

.lede em {
  font-style: italic;
  color: var(--green-deep);
}

.status {
  margin-top: 1.2rem;
  color: var(--ink-soft);
}

.mail {
  display: inline-block;
  margin-top: 1.7rem;
  font-family: var(--serif-text);
  font-size: 1.2rem;
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(36, 56, 46, 0.35);
  transition: text-decoration-color 160ms var(--ease-out);
}

.mail:hover,
.mail:focus-visible {
  text-decoration-color: currentColor;
}

/* Quiet, factual trust line. Said once, never dressed up as a badge. */
.legal {
  margin-top: 2.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  opacity: 0.85;
}

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  main > div > * {
    animation: settle 0.7s var(--ease-out) both;
  }
  main > div > *:nth-child(1) { animation-delay: 0ms; }
  main > div > *:nth-child(2) { animation-delay: 70ms; }
  main > div > *:nth-child(3) { animation-delay: 140ms; }
  main > div > *:nth-child(4) { animation-delay: 210ms; }
  main > div > *:nth-child(5) { animation-delay: 280ms; }
  main > div > *:nth-child(6) { animation-delay: 350ms; }

  @keyframes settle {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   Legal documents (privacy, terms). Same identity, tuned for
   long-form reading: narrow measure, clear hierarchy, and a
   body that scrolls rather than the single centred screen the
   front page uses.
   ============================================================ */

body.doc {
  display: block;
}

body.doc main {
  min-height: 0;
  display: block;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.35rem, 5vw, 2.5rem) 4rem;
}

body.doc article {
  max-width: 38rem;
  margin: 0 auto;
}

.back {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.back:hover { color: var(--green-deep); }

body.doc h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 1.5rem;
}

.meta {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.lede-doc {
  margin-top: 2rem;
  font-family: var(--serif-text);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

body.doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.2;
  margin-top: 2.6rem;
  color: var(--green-deep);
  text-wrap: balance;
}

body.doc p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

body.doc p strong { color: var(--ink); font-weight: 500; }

body.doc ul {
  margin-top: 0.9rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

body.doc li { margin-top: 0.5rem; }

body.doc a {
  color: var(--green-ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

body.doc table {
  width: 100%;
  margin-top: 1.2rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

body.doc th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  padding: 0 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
}

body.doc td {
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  vertical-align: top;
}

.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.doc-foot small {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* Footer links on the front page */
.front-legal {
  margin-top: 2rem;
  display: flex;
  gap: 1.1rem;
  font-size: 0.8rem;
}

.front-legal a {
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

.front-legal a:hover { color: var(--green-deep); }
