/* Kindred Ground Holdings — warm, grounded, unhurried. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}

:root {
  --paper: #FAF6EF;
  --paper-deep: #F2EBDD;
  --ink: #2B2320;
  --muted: #6F6357;
  --hairline: #E1D7C4;
  --brick: #9C4A2F;
  --brick-deep: #7E3A24;
  --green: #39422F;
  --cream: #F6EFE2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 26px; padding-bottom: 18px; gap: 20px; flex-wrap: wrap;
}
.wordmark {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 24px; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em;
}
.wordmark-sub {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 2px;
}
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  letter-spacing: 0.06em; padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brick); }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brick); margin: 0 0 18px; font-weight: 500;
}
h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(42px, 6.4vw, 74px); line-height: 1.06;
  letter-spacing: -0.012em; margin: 0 0 24px;
}
h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.22; margin: 0 0 14px;
}
h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 20px; margin: 0 0 10px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink); max-width: 44ch; margin: 0; }
p { margin: 0 0 14px; }
a { color: var(--brick-deep); }
em { font-style: italic; }

/* Fraunces is a variable serif with an optical-size axis: let large sizes
   display properly and body serif stay honest. */
h1, h2, h3, .band-line, .contact-value, .pullquote {
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
}
p, li { max-width: 66ch; }
.lede { max-width: 44ch; }

/* ---------- focus & skip link ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; font-size: 14px; z-index: 10; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; color: var(--paper); }

/* nav underline: restrained grow-in */
.site-nav a { border-bottom-width: 2px; }
.site-nav a, .foot-nav a { transition: color .18s ease; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero { padding-top: 64px; }
.hero .lede { margin-bottom: 34px; }
.hero-figure { margin: 26px 0 0; }
.hero-figure img, .wide-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--hairline), 0 24px 60px -30px rgba(43,35,32,0.45);
}
/* the corridor photographs: one consistent warm grade, so the set reads as one */
.hero-figure img, .wide-figure img {
  filter: grayscale(94%) sepia(22%) saturate(112%) contrast(1.05) brightness(1.02);
}
/* the opening photograph earns full bleed */
@media (min-width: 900px) {
  .hero-figure img { height: min(72vh, 620px); object-fit: cover; }
  .hero-figure { margin-top: 40px; }
}
.hero-figure figcaption, .wide-figure figcaption {
  font-size: 12.5px; color: var(--muted); padding: 10px 0 0; letter-spacing: 0.02em;
  max-width: 1060px; margin-left: auto; margin-right: auto;
}
.hero-figure figcaption, .wide-figure figcaption { padding-left: 28px; padding-right: 28px; }
.hero-figure figcaption a, .wide-figure figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- sections ---------- */
.sect { padding: 64px 0 8px; }
.two-col { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 44px; align-items: start; }
.two-col h2 { position: sticky; top: 24px; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 10px; }
  .two-col h2 { position: static; }
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  border-top: 2px solid var(--ink); background: var(--cream);
  padding: 22px 22px 12px; border-radius: 0 0 2px 2px;
}
.card p { color: var(--ink); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* band */
.band { background: var(--green); color: var(--cream); margin-top: 72px; }
.band .wrap { padding-top: 58px; padding-bottom: 58px; }
.band .eyebrow { color: #D8C9A3; }
.band-line {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; max-width: 62ch;
  margin: 0 0 16px;
}
.band-line:last-child { margin-bottom: 0; }
.band a { color: #E8DCC0; }

/* page head */
.page-head { padding: 64px 0 30px; }

/* status note (kitchen page — honest-tense note under the lede) */
.status-note {
  margin-top: 26px; padding: 18px 20px;
  border-left: 3px solid var(--brick);
  background: var(--paper-deep);
  font-size: 15.5px; color: var(--ink); max-width: 62ch;
}

/* two-card variant + four-link grid */
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.kitchen-cards { margin: 18px 0 8px; }
.links-row.four { grid-template-columns: repeat(2, 1fr); }

/* principles */
.principles { padding-top: 34px; padding-bottom: 20px; }
.principle {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px;
  padding: 34px 0; border-top: 1px solid var(--hairline);
}
.principle:first-child { border-top: none; }
.p-num {
  font-family: 'Fraunces', Georgia, serif; font-size: 26px; color: var(--brick);
  margin: 2px 0 0; font-weight: 500;
}
@media (max-width: 820px) { .principle { grid-template-columns: 1fr; gap: 4px; } }

/* wide figure */
.wide-figure { margin: 40px 0 0; }

/* links row */
.links-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding-bottom: 84px;
}
.big-link {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--hairline); background: var(--paper-deep);
  color: var(--ink); text-decoration: none; padding: 24px 22px; min-height: 132px;
  font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.25;
  border-radius: 2px; transition: border-color .15s ease, background .15s ease;
}
.big-link span { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.08em; color: var(--brick-deep); margin-top: 18px; }
.big-link:hover { border-color: var(--brick); background: var(--cream); }
@media (max-width: 820px) { .links-row { grid-template-columns: 1fr; } }

/* contact */
.contact-block { padding: 24px 0 10px; }
.contact-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--hairline); align-items: baseline;
}
.contact-row:first-child { border-top: none; }
.contact-label {
  margin: 0; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.contact-value { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 21px; }
.contact-value a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brick); }
.contact-value a:hover { color: var(--brick-deep); }
.contact-value.muted { color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--paper-deep); border-top: 1px solid var(--hairline); margin-top: 84px; }
.site-foot .wrap { padding-top: 44px; padding-bottom: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-name { font-family: 'Fraunces', Georgia, serif; font-size: 19px; margin: 0 0 4px; }
.foot-note { color: var(--muted); font-size: 14px; margin: 0; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--ink); }
.foot-credits { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12.5px; }
.foot-credits a { color: var(--muted); }

/* ======================================================================
   PASS 3 — interaction & craft (all of it optional at the HTML level)
   ====================================================================== */

/* ---------- scroll reveals ----------
   Gated on html.js (set by site.js): without JavaScript every .reveal
   is simply visible. Reduced-motion users get no animation at all. */
html.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
html.js .reveal.d2 { transition-delay: .1s; }
html.js .reveal.d3 { transition-delay: .2s; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- pull quotes (lines lifted from the page's own copy) ---------- */
.pullquote {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(26px, 3.8vw, 42px); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 24ch;
  margin: 0; padding: 26px 0 0 26px;
  border-left: 3px solid var(--brick);
}
.pullquote-row { padding: 56px 0 20px; }

/* ---------- contact, as an index ---------- */
.contact-block { padding: 30px 0 10px; }
.contact-row {
  grid-template-columns: 64px 200px 1fr; gap: 24px; padding: 30px 0;
}
.contact-idx {
  margin: 0; font-family: 'Fraunces', Georgia, serif;
  font-size: 20px; color: var(--brick);
}
.contact-value { font-size: clamp(21px, 2.6vw, 30px); }
.contact-row .contact-value a { border-bottom-width: 2px; }
@media (max-width: 640px) {
  .contact-row { grid-template-columns: 44px 1fr; }
  .contact-idx { font-size: 16px; }
}

/* ---------- the kitchen day clock ----------
   Interactive view exists only when JS builds it. Without JS, only
   .dayclock-list renders — a plain ordered list, fully readable. */
.dayclock { margin: 26px 0 8px; }
.dayclock-note {
  font-size: 13px; color: var(--muted); margin: 0 0 14px;
  padding-left: 18px; text-indent: -18px;
}
.dayclock-note::before { content: "※ "; color: var(--brick); }

.dayclock-strip {
  display: flex; gap: 3px; align-items: stretch;
  height: 76px; margin: 0 0 6px;
}
.day-seg {
  position: relative; border: none; cursor: pointer;
  border-radius: 2px; min-width: 0; padding: 0;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.day-seg-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; padding-bottom: 8px; white-space: nowrap;
  opacity: 0.85;
}
.day-seg:hover { transform: translateY(-4px); }
.day-seg-on { transform: translateY(-4px); }
.day-seg-idle { background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--hairline); }
.day-seg-idle .day-seg-label { color: var(--muted); }
.day-seg-shared { background: var(--green); }
.day-seg-shared .day-seg-label { color: var(--cream); }
.day-seg-training { background: var(--brick); }
.day-seg-training .day-seg-label { color: var(--cream); }
.day-seg-service { background: var(--ink); }
.day-seg-service .day-seg-label { color: var(--paper); }
.day-seg-on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brick); }
.day-seg:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brick); }

.dayclock-scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
  margin: 0 0 18px; font-variant-numeric: tabular-nums;
}
.dayclock-legend {
  display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 18px;
  font-size: 12.5px; color: var(--muted);
}
.dayclock-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dayclock-legend i {
  width: 12px; height: 12px; border-radius: 2px; display: inline-block;
}
.lg-idle { background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--hairline); }
.lg-shared { background: var(--green); }
.lg-training { background: var(--brick); }
.lg-service { background: var(--ink); }

.dayclock-panel {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 20px 2px 16px; margin: 4px 0 10px; min-height: 118px;
}
.dayclock-time {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brick); margin: 0 0 6px; font-variant-numeric: tabular-nums;
}
.dayclock-name { font-size: 24px; margin: 0 0 8px; }
.dayclock-desc { margin: 0; max-width: 58ch; }

/* the no-JS / print view: a plain ordered list of the same blocks */
.dayclock-list { margin: 8px 0 0; padding: 0; list-style: none; }
.dayclock-list li {
  padding: 16px 0 14px; border-top: 1px solid var(--hairline); max-width: none;
}
.dayclock-list h3 { margin: 6px 0 6px; font-size: 19px; }
.dayclock-time-l {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brick); margin: 0; font-variant-numeric: tabular-nums;
}

.clock-intro { margin-bottom: 6px; }
.dayclock-source { font-size: 14.5px; color: var(--muted); margin-top: 16px; }

/* ---------- dark scheme ----------
   Same palette logic, lamplit. Every pairing below checked ≥ 4.5:1. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211C18;
    --paper-deep: #2A241E;
    --ink: #EDE5D6;
    --muted: #AE9F8D;
    --hairline: #3D352C;
    --brick: #C97E5B;
    --brick-deep: #D89B7C;
    --green: #414D34;
    --cream: #F2E9D8;
  }
  .band { background: #17140F; }
  .band .eyebrow { color: var(--brick); }
  .site-head { background: var(--paper); }
  .hero-figure img, .wide-figure img {
    filter: grayscale(94%) sepia(20%) saturate(104%) contrast(1.02) brightness(.86);
    box-shadow: 0 1px 0 var(--hairline), 0 24px 60px -30px rgba(0,0,0,0.7);
  }
  .day-seg-on, .day-seg:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brick); }
  .card { background: #26211B; border-top-color: var(--ink); }
  .big-link { background: var(--paper-deep); }
  .big-link:hover { background: #2E2820; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .day-seg, .day-seg:hover { transform: none; transition: none; }
  .site-nav a, .foot-nav a, .big-link { transition: none; }
}

/* ---------- print ----------
   A lender or a DHCD reviewer prints the page: give them a clean PDF.
   The day clock prints as its plain list; interactive controls go away. */
@media print {
  .site-nav, .foot-nav, .links-row, .skip,
  .dayclock-strip, .dayclock-panel, .dayclock-note, .dayclock-legend, .dayclock-scale {
    display: none !important;
  }
  .dayclock-list, .dayclock-list[hidden] { display: block !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.5; }
  .band { background: none; color: #111; border-top: 2pt solid #111; border-bottom: none; }
  .band .eyebrow { color: #555; }
  .band-line { color: #111; }
  .hero-figure img, .wide-figure img {
    filter: grayscale(1); box-shadow: none; height: auto; max-height: 55vh; object-fit: contain;
  }
  .site-foot, .site-head { background: none; border: none; }
  .sect, .band .wrap { padding-top: 24px; padding-bottom: 8px; }
  a { color: #111; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  section, .principle, .card, figure { page-break-inside: avoid; }
}
