/* Terrace Garden Architect — "drawing set" landing. Fonts are self-hosted from @fontsource. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f3efe3;
  --sheet: #fffdf7;
  --ink: #1f241c;
  --ink-soft: #545a4c;
  --olive: #2f3d2a;
  --terra: #c2643c;
  --terra-dark: #9c4b28;
  --sage: #8da673;
  --rule: #d9d2bf;
  --grid: rgba(47, 61, 42, 0.06);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.55 var(--body);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
img { max-width: 100%; height: auto; display: block; }
.hero > *, .story > *, .steps li, .facts li { min-width: 0; }
h1, h2, h3, p, dd { overflow-wrap: break-word; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .cta:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

.sheetno {
  font: 500 13px/1.2 var(--mono);
  letter-spacing: 0.14em;
  color: var(--terra-dark);
  margin: 0 0 14px;
}

/* title block header */
.titleblock { background: var(--olive); border-bottom: 5px solid var(--terra); color: var(--paper); }
.titleblock__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand img { background: var(--paper); padding: 3px; }
.brand__name { font: 700 24px/1 var(--display); letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #dfe5d6; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 3px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--terra); color: #fff; text-decoration: none; border: 2px solid var(--terra);
  min-height: 48px; padding: 0 22px;
}
.cta--small { min-height: 40px; font-size: 15px; padding: 0 14px; }
.cta--soon { background: transparent; color: inherit; border-style: dashed; border-color: currentColor; cursor: default; }
.titleblock .cta--soon { color: #f0c9b2; }

/* hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero h1 {
  font: 800 clamp(42px, 6vw, 76px)/0.98 var(--display);
  letter-spacing: -0.01em; margin: 0 0 22px; color: var(--olive);
}
.lead { font-size: 20px; color: var(--ink-soft); max-width: 36em; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.hero__actions .cta--soon { color: var(--terra-dark); }
.link-arrow { font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--olive); }
.facts li { padding: 14px 12px 0 0; border-right: 1px solid var(--rule); margin-right: 12px; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font: 800 34px/1 var(--display); color: var(--terra); }
.facts span { font-size: 14px; color: var(--ink-soft); line-height: 1.3; display: block; margin-top: 6px; }

.hero__sheet { margin: 0; position: relative; justify-self: center; max-width: 380px; }
.hero__sheet img { border: 2px solid var(--ink); box-shadow: 14px 14px 0 #cec4aa; background: var(--sheet); }
.hero__sheet figcaption { font: 13px/1.4 var(--mono); color: var(--ink-soft); margin-top: 24px; }
.dim { position: relative; height: 30px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.dim::before, .dim::after { content: ""; position: absolute; bottom: -9px; width: 2px; height: 16px; background: var(--ink); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim span { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); background: var(--paper); padding: 0 10px; font: 500 14px/1 var(--mono); color: var(--terra-dark); }

/* steps */
.steps { background: var(--olive); color: var(--paper); padding: 56px 24px; }
.steps h2, .steps ol { max-width: var(--max); margin-left: auto; margin-right: auto; }
.steps h2 { font: 800 40px/1 var(--display); margin-top: 0; margin-bottom: 28px; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { padding: 0 28px 0 0; border-left: 2px solid var(--terra); padding-left: 20px; }
.steps__n { font: 500 15px/1 var(--mono); color: #f0c9b2; }
.steps h3 { font: 700 30px/1.1 var(--display); margin: 8px 0; }
.steps p { color: #d6ddcc; margin: 0; font-size: 17px; }

/* feature sheets */
.sheets { max-width: var(--max); margin: 0 auto; padding: 40px 24px; }
.story {
  display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--rule);
}
.story--flip { grid-template-columns: 340px 1fr; }
.story--flip .story__text { order: 2; }
.story--wide { grid-template-columns: 1fr 1.2fr; }
.story--wide.story--flip { grid-template-columns: 1.2fr 1fr; }
.story h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.02 var(--display); color: var(--olive); margin: 0 0 16px; }
.story p { color: var(--ink-soft); margin: 0; }
.story__img { margin: 0; }
.story__img img { border: 2px solid var(--ink); box-shadow: 12px 12px 0 #cec4aa; background: var(--sheet); }

/* promise */
.promise {
  max-width: var(--max); margin: 32px auto; padding: 36px 40px; background: var(--sheet);
  border: 2px solid var(--olive); border-left: 10px solid var(--terra);
}
.promise h2 { font: 800 36px/1 var(--display); color: var(--olive); margin: 0 0 16px; }
.promise ul { margin: 0 0 12px; padding-left: 20px; columns: 2; column-gap: 40px; }
.promise li { margin-bottom: 8px; break-inside: avoid; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; padding: 40px 24px; }
.faq h2 { font: 800 40px/1 var(--display); color: var(--olive); }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; padding: 14px 0; min-height: 44px; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }
.faq__contact { margin-top: 24px; }

.download { text-align: center; padding: 56px 24px 72px; }
.download h2 { font: 800 clamp(34px, 5vw, 56px)/1 var(--display); color: var(--olive); margin: 0 0 10px; }
.download p { color: var(--ink-soft); margin: 0 0 24px; }
.download .cta--soon { color: var(--terra-dark); }

/* legal */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; background: var(--sheet); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.legal h1 { font: 800 clamp(34px, 5vw, 52px)/1.02 var(--display); color: var(--olive); margin: 0 0 8px; }
.legal h2 { font: 700 26px/1.1 var(--display); color: var(--olive); margin: 34px 0 8px; }
.legal__meta { font: 14px/1.4 var(--mono); color: var(--ink-soft); }

/* footer */
.footer { background: var(--ink); color: #cfd3c6; padding: 40px 24px 24px; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.footer__brand img { background: var(--paper); padding: 8px 10px; }
.footer__brand p { max-width: 26em; font-size: 15px; }
.footer__sheet { display: grid; grid-template-columns: repeat(2, minmax(160px, auto)); border: 1px solid #555b4e; margin: 0; }
.footer__sheet div { padding: 10px 14px; border: 1px solid #555b4e; }
.footer__sheet dt { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #f0c9b2; }
.footer__sheet dd { margin: 6px 0 0; font-size: 15px; }
.footer a { color: #fff; }
.footer__note { max-width: var(--max); margin: 28px auto 0; font-size: 13px; color: #9aa091; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .hero__sheet { max-width: 320px; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .facts li:nth-child(2) { border-right: 0; }
  .steps ol { grid-template-columns: 1fr; gap: 28px; }
  .story, .story--flip, .story--wide, .story--wide.story--flip { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .story--flip .story__text { order: 0; }
  .story__img { max-width: 360px; }
  .story--wide .story__img { max-width: 560px; }
  .promise { padding: 28px 22px; margin: 24px 16px; }
  .promise ul { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .titleblock__inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .titleblock .cta { margin-left: auto; }
  .brand__name { font-size: 20px; }
  .hero, .sheets, .faq { padding-left: 16px; padding-right: 16px; }
  .footer__sheet { grid-template-columns: 1fr; }
}
