/* Kinship360 — one calm page.
   Register: an old ledger, not a landing page. Green ink on limestone,
   gilt spent in exactly one place (the dividers). Typography carries it. */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/youngserif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  --limestone: #f1efe9;
  --vellum: #e8e4d8;
  --spruce: #243228;
  --moss: #5a675c;
  --hairline: #d6d1c4;
  --gilt: #8f6b2e;

  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;

  --measure: 34rem;
}

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

html {
  background: var(--limestone);
  color: var(--spruce);
  font-family: var(--body);
  font-size: clamp(17px, 1vw + 13px, 20px);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  /* Faint vertical grain, the only texture on the page */
  background-image: linear-gradient(
    to right,
    transparent calc(50% - 0.5px),
    rgba(36, 50, 40, 0.045) calc(50% - 0.5px),
    rgba(36, 50, 40, 0.045) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

main { flex: 1; }

::selection { background: var(--vellum); color: var(--spruce); }

a { color: inherit; text-decoration-color: var(--gilt); text-underline-offset: 0.2em; }
a:hover { color: var(--gilt); }
:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- Blocks & rhythm ------------------------------------------------ */

.block {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-block: clamp(4rem, 10vh, 7rem);
  background: var(--limestone); /* sits over the grain line */
  padding-inline: 1rem;
}

.block > p + p,
.block p + .primitives,
.primitives + p {
  margin-top: 1.4rem;
}

/* Signature divider: a hairline carrying one gilt lozenge */
.rule {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4.5px;
  width: 8px;
  height: 8px;
  background: var(--limestone);
  border: 1px solid var(--gilt);
  transform: translateX(-50%) rotate(45deg);
}

/* ---- Block 1: headline ---------------------------------------------- */

.block--hero {
  max-width: 44rem; /* the one place the measure widens */
  padding-block: clamp(6rem, 22vh, 12rem) clamp(5rem, 14vh, 8rem);
  text-align: center;
}

.wordmark {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---- Block 2: the three primitives ---------------------------------- */

.primitives {
  border-block: 1px solid var(--hairline);
  padding-block: 0.4rem;
}
.primitives > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  align-items: baseline;
}
.primitives > div + div { border-top: 1px solid var(--hairline); }
.primitives dt {
  font-family: var(--display);
  font-size: 1.02rem;
}
.primitives dd { color: var(--moss); }

.landing {
  font-style: italic;
  color: var(--moss);
}

/* ---- Block 3: proof -------------------------------------------------- */

.proof {
  display: grid;
  gap: 2.75rem;
}

.proof-item h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.proof-item p + p {
  margin-top: 0.8rem;
  color: var(--moss);
}

/* A short gilt flag under each item heading. The --standards selector is retained
   unused: the founder-forward variant restores that item, and keeping the rule here
   makes the swap a pure markup change. */
.proof-item--standards h2::after,
.proof-item--coffee h2::after {
  display: block;
  content: "";
  width: 2.25rem;
  border-top: 1px solid var(--gilt);
  margin-top: 0.55rem;
}

/* ---- Footer ----------------------------------------------------------- */

.block--footer {
  padding-block: 0 clamp(3rem, 8vh, 5rem);
  text-align: center;
  font-size: 0.88rem;
  color: var(--moss);
}
.rule--footer { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.copyright { margin-top: 0.5rem; }

/* ---- Load settle (the only motion on the page) ------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .block--hero .wordmark,
  .block--hero h1 {
    animation: settle 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .block--hero h1 { animation-delay: 0.15s; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 540px) {
  .primitives > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
