/* Dreams Come True Stables
   Black and white, refined Western. Sancreek for display (closest open font to the barn banner and shirts), Hanken Grotesk for text,
   an italic book serif for the English side. Square edges, hairline rules, no decoration for its own sake. */

@font-face {
  font-family: "Sancreek";
  src: url("/fonts/sancreek-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rye";
  src: url("/fonts/rye-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e0e0e;
  --ink-soft: #555;
  --mute: #6f6f6f;
  --paper: #faf9f6;
  --white: #fff;
  --rule: rgba(14, 14, 14, 0.16);
  --rule-light: rgba(255, 255, 255, 0.2);
  --night: #0e0e0e;
  --focus: #1f5fa8;

  --hero: "Rye", "Rockwell", Georgia, serif;
  --display: "Sancreek", "Rockwell", Georgia, serif;
  --book: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 80rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: var(--bar-h);
}

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

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Small tracked label */
.meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 1rem;
}
.dark .meta, .hero .meta { color: rgba(255, 255, 255, 0.7); }

/* The English side: an italic book serif for ledes */
.lede {
  font-family: var(--book);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  max-width: 36rem;
  color: var(--ink-soft);
}
.dark .lede, .hero .lede { color: rgba(255, 255, 255, 0.82); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.96);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  max-width: 96rem;
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* PLACEHOLDER: logo. Replace .brand-mark with <img src="/images/logo.svg" alt=""> when the Ten Roof file arrives. */
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px dashed var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  flex: none;
}

.nav { display: none; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.9rem, 1.4vw, 1.5rem); }
.nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 0;
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 0.6rem) / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}
.nav a:hover { background-size: 100% 1px; }
.site-header .header-text { margin-left: auto; }
@media (max-width: 47.99rem) { .site-header .header-text { display: none; } .menu { margin-left: auto; } .brand-name { font-size: 0.74rem; letter-spacing: 0.08em; } }
@media (min-width: 73rem) { .nav { display: block; } .menu { display: none; } .site-header .header-text { margin-left: 0; } }

/* Menu for narrower screens: plain <details>, works without JS */
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 14rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu a:hover { background: var(--ink); color: #fff; }

/* ---------- Buttons: square, outlined, invert on hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid currentColor;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.on-dark .btn, .hero .btn { color: #fff; }
.on-dark .btn:hover, .hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn-solid, .hero .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn-solid:hover, .hero .btn-solid:hover { background: transparent; color: #fff; }

.header-text { min-height: 40px; padding: 0.5rem 1rem; white-space: nowrap; }

/* ---------- Photo placeholders ----------
   Each .ph is a PLACEHOLDER for one of Kristen's photos (see PLACEHOLDERS.md).
   Swap for <picture> with width/height when photos land in /images. */
.ph {
  margin: 0;
  background: #e9e7e2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  color: #5a5a5a;
  font-size: 0.82rem;
  min-height: 16rem;
  border: 1px dashed rgba(14, 14, 14, 0.35);
}
.ph::before {
  content: "Photo placeholder";
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.ph span { display: block; max-width: 22rem; }
.dark .ph, .hero .ph { background: #1c1c1c; color: #bdbdbd; border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Hero: full bleed, text anchored low ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  min-height: min(86vh, 52rem);
  display: grid;
}
.hero .ph {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  place-items: initial;
  align-content: start;
  justify-items: end;
  text-align: right;
  padding: 1.5rem var(--gutter);
  background: #161616;
}
.hero-inner {
  position: relative;
  align-self: end;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 { font-family: var(--hero); max-width: 20ch; letter-spacing: 0.01em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); }
.dark { background: var(--night); color: #fff; }
.section.dark + .section, .section + .section.dark { border-top: 0; }

.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56rem) {
  .head { grid-template-columns: 5rem 1fr; align-items: start; }
}
.num {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1;
  padding-top: 0.55rem;
}
.num::after { content: ""; display: block; width: 2.2rem; height: 1px; background: currentColor; margin-top: 0.7rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split.lead { grid-template-columns: 1.15fr 1fr; }
  .indent { margin-left: 6.25rem; }
}

/* Prices: hairline grid, not cards */
.prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 40rem) { .prices { grid-template-columns: repeat(3, 1fr); } }
.prices li { background: var(--paper); padding: 1.6rem 1.5rem 1.4rem; }
.white .prices li { background: var(--white); }
.prices .label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.prices .amount { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1.1; margin: 0.5rem 0 0.2rem; }
.prices .note { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.fine {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-top: 1.25rem;
}
.dark .fine { color: rgba(255, 255, 255, 0.7); }

/* Plain hairline lists */
.lines { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); }
.lines li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.dark .lines, .dark .lines li { border-color: var(--rule-light); }

.big-price { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 0.3rem; }
.big-price small { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-left: 0.4rem; }

.disciplines { margin: 0 0 2rem; padding: 0; list-style: none; font-family: var(--book); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.7; }
.disciplines li { display: inline; }
.disciplines li + li::before { content: " / "; font-style: normal; color: rgba(255, 255, 255, 0.45); padding: 0 0.15rem; }

.photo-row { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .photo-row { grid-template-columns: repeat(3, 1fr); } }

.ph-text {
  border: 1px dashed currentColor;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  opacity: 0.85;
}
.ph-text strong { display: block; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 0.2rem; }

/* Facility figures */
.figures { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 48rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures li { padding: 1.4rem 1.2rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; }
.figures span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }

/* About: years down the side */
.years { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.years li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.years b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; }

/* Contact: buttons on one side, plain details on the other */
.contact-actions { display: grid; gap: 0.75rem; align-content: start; }
.contact-actions .btn { width: 100%; justify-content: space-between; min-height: 60px; padding: 1rem 1.25rem; }
.contact-actions .btn span:last-child { font-weight: 500; letter-spacing: 0.06em; text-transform: none; font-size: 0.95rem; }
.info { margin: 0; display: grid; gap: 1.5rem; }
.info dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.3rem; }
.info dd { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.info a { text-decoration: underline; }
.area { color: rgba(255, 255, 255, 0.6); max-width: 44rem; font-size: 0.92rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  padding: 3rem 0 2.5rem;
}
.site-footer .wordmark {
  font-family: var(--display);
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.4rem, 4.5vw, 3rem);
  line-height: 1;
  margin: 0 0 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer li a, .site-footer button.linklike { display: inline-block; padding: 0.65rem 0; }
button.linklike {
  background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; padding: 0;
}
.site-footer button.linklike { color: #fff; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: var(--night);
  border-top: 1px solid var(--rule-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.action-bar .text { background: #fff; color: var(--ink); }
body { --bar-h: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 48rem) {
  .action-bar { display: none; }
  body { --bar-h: 0px; }
}

/* ---------- Consent bar (small, never blocking) ---------- */
.consent {
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(var(--bar-h) + 0.75rem);
  z-index: 70;
  max-width: 30rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.6rem; }
.consent .row { display: flex; gap: 0.5rem; }
.consent button {
  flex: 1;
  min-height: 44px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.consent button.accept { background: var(--ink); color: #fff; }

/* ---------- Simple pages (privacy, accessibility, 404, login) ---------- */
.page { padding: clamp(3rem, 8vw, 5rem) 0; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page h2 { font-family: var(--sans); text-transform: none; font-weight: 700; font-size: 1.2rem; letter-spacing: 0; margin-top: 2.2rem; }
.page .updated { color: var(--mute); }
.page a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
