/* Site Preparation Planner — landing. Art direction "Tervlap": a site plan sheet on loess paper with a fine
   grid, survey-stake flags, numbered sheets and a drawing title block as footer. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --loess: #f2ebdd;
  --paper: #fffdf8;
  --sunk: #e8dfce;
  --grid: rgba(42, 29, 51, 0.06);
  --ink: #2a1d33;
  --soft: #5e5266;
  --line: #d9cfbe;
  --stake: #e2a21b;
  --stake-text: #7a5000;
  --plum: #6e3b80;
  --late: #b3261e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--loess);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stake); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p, li { overflow-wrap: break-word; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--stake-text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--stake); transform: rotate(45deg); flex: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--stake); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.lede { font-size: 1.22rem; color: var(--soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 22px; }
.text-link { font-weight: 600; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); }

.store-button { display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 6px 22px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 6px; line-height: 1.15; }
.store-button:hover { color: #fff; background: #3c2a48; }
.store-small { font-size: 0.85rem; color: #e9e1ec; }
.store-big { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--stake); }
.store-button.is-soon { background: transparent; color: var(--ink); border: 2px dashed var(--ink); cursor: default; }
.store-button.is-soon .store-small { color: var(--soft); }
.store-button.is-soon .store-big { color: var(--ink); }

.hero-visual { position: relative; min-height: 520px; }
.shot { border-radius: 18px; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); }
.shot-back { position: absolute; width: 62%; right: 0; top: 0; }
.shot-front { position: absolute; width: 62%; left: 0; top: 70px; }
.stake { position: absolute; left: 50%; top: -34px; width: 6px; height: 130px; background: var(--ink); border-radius: 3px; z-index: 2; }
.stake span { position: absolute; left: 6px; top: 2px; width: 0; height: 0; border-top: 22px solid transparent; border-bottom: 22px solid transparent; border-left: 58px solid var(--stake); }

/* Sections */
.section-head { margin-bottom: 28px; max-width: 760px; }
.sheets { padding: 48px 0; }
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
}
.sheet.is-flipped .sheet-text { order: 2; }
.sheet-no { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--stake); -webkit-text-stroke: 1.5px var(--ink); display: block; margin-bottom: 6px; }
.sheet-text p { color: var(--soft); margin: 0; }
.sheet-shot { max-height: 430px; overflow: hidden; border-radius: 18px; }
.sheet-shot .shot { width: 100%; max-width: 300px; margin: 0 auto; }

.steps { padding: 48px 0; background: var(--ink); color: #f6f1e8; background-image: none; }
.steps .kicker { color: var(--stake); }
.step-line { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 0; }
.step-line li { counter-increment: step; padding: 22px 22px 18px 0; position: relative; border-top: 2px dashed rgba(246, 241, 232, 0.4); margin-top: 14px; }
.step-line li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); background: var(--stake); padding: 2px 8px; border-radius: 2px; position: absolute; top: -14px; left: 0; }
.step-line h3 { font-size: 1.45rem; margin-top: 10px; }
.step-line p { margin: 0; color: #d8cfdc; }

.gallery { padding: 48px 0; }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; flex: 0 0 240px; scroll-snap-align: start; }

.more { padding: 24px 0 48px; }
.more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.ticks, .limits ul { padding: 0; margin: 0; list-style: none; }
.ticks li, .limits li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; background: var(--stake); transform: rotate(45deg); }
.limits { background: var(--paper); border: 1.5px dashed var(--ink); border-radius: 6px; padding: 22px; }
.limits li::before { content: "–"; position: absolute; left: 6px; font-weight: 600; }

.download { padding: 8px 0 56px; }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.download-box > div { min-width: 0; flex: 1 1 320px; background: var(--paper); border-left: 6px solid var(--stake); padding: 18px 22px; }
.download-box h2 { margin-bottom: 4px; }
.download-box p { margin: 0; }

/* Text pages */
.page { padding: 48px 0 64px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.updated { color: var(--soft); font-size: 0.95rem; margin-top: 2em; }
.faq details { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; margin-bottom: 10px; }
.faq summary { cursor: pointer; line-height: 1.25; font-family: var(--display); font-weight: 700; font-size: 1.35rem; padding: 14px 18px; list-style-position: inside; overflow-wrap: anywhere; hyphens: auto; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--soft); }
.contact-box { margin-top: 32px; background: var(--paper); border-left: 6px solid var(--stake); padding: 18px 22px; }
.contact-box .mail { font-family: var(--display); font-weight: 700; font-size: 1.4rem; overflow-wrap: anywhere; }

/* Footer: drawing title block */
.site-footer { padding: 32px 0 40px; border-top: 2px solid var(--ink); background: var(--paper); }
.titleblock { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--paper); table-layout: fixed; }
.titleblock th, .titleblock td { border: 1px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.titleblock th { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--soft); width: 14%; background: var(--loess); }
.footer-note { color: var(--soft); font-size: 0.95rem; margin: 14px 0 0; }

@media (max-width: 860px) {
  .hero-grid, .sheet, .more-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet.is-flipped .sheet-text { order: 0; }
  .hero-visual { min-height: 0; height: 430px; max-width: 420px; width: 100%; margin: 0 auto; }
  .step-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header { position: static; }
  .hero { padding-top: 36px; }
  .lede { font-size: 1.1rem; }
  .hero-visual { height: 360px; }
  .sheet { padding: 20px 16px; }
  .sheet-shot { max-height: 360px; }
  .step-line { grid-template-columns: minmax(0, 1fr); }
  .strip figure { flex-basis: 62vw; }
  .nav { gap: 2px 14px; }
  .titleblock, .titleblock tbody, .titleblock tr, .titleblock th, .titleblock td { display: block; width: 100%; }
  .titleblock tr { border-bottom: 1px solid var(--ink); }
  .titleblock th { border: 0; padding-bottom: 0; }
  .titleblock td { border: 0; padding-top: 2px; }
}
