/* Oakwood Estates: Direction A, "The Entrance". Plain CSS, no build step. */
@font-face { font-family: "Cinzel"; font-weight: 400 900; font-display: block; src: url("../fonts/cinzel-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400 800; font-display: block; src: url("../fonts/eb-garamond-latin-variable.woff2") format("woff2"); }

:root {
  --limestone: #dcd5b8;   /* the plaque */
  --pale-stone: #efead8;  /* page background */
  --brick: #8f4b37;       /* buttons, progress, accents */
  --shingle: #666156;     /* logo lettering, footer */
  --ink: #2e2a26;         /* body text */
  --stone-edge: #b9b08d;  /* plaque outline */
  --rule: #cfc8ab;        /* hairlines and field borders */
  --field: #f8f5e9;       /* option backgrounds */
  --display: "Cinzel", Georgia, serif;
  --text: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pale-stone); color: var(--ink); font: 19px/1.55 var(--text); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
h1, h2, h3, .site-name { font-family: var(--display); font-weight: 600; letter-spacing: .05em; line-height: 1.2; margin: 0; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header: logo top left, menu on the right */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 74px; height: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(40, 20, 10, .25)); }
.site-name { font-size: 24px; letter-spacing: .14em; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 18px; }
.site-nav a { text-decoration: none; padding: 4px 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Hero: the oak behind the entrance wall (img/oak-hero.svg, an illustration, not a photo) */
.hero { height: clamp(240px, 34vw, 440px); overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 8px solid var(--limestone); background: #e4e2d0; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero--slim { height: clamp(150px, 18vw, 220px); }
.hero--slim img { object-position: 50% 32%; }

/* Welcome */
.welcome { text-align: center; padding: 44px 0 20px; }
.welcome h1 { font-size: clamp(26px, 5vw, 36px); }
.welcome p { max-width: 44ch; margin: 16px auto 26px; }
.note { display: block; margin-top: 12px; font-size: 16px; }
.btn, .btn-ghost { display: inline-block; font: 700 19px var(--text); border-radius: 6px; padding: 13px 26px; cursor: pointer; text-decoration: none; border: 2px solid var(--brick); }
.btn { background: var(--brick); color: #fff; }
.btn:hover { background: #7c3f2e; border-color: #7c3f2e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--shingle); }

/* What's happening */
.news { text-align: center; padding: 28px 0 56px; }
.news h2 { font-size: 22px; margin-bottom: 14px; }
.news ul { list-style: none; margin: 0; padding: 0; }
.news li { border-top: 1px solid var(--rule); padding: 16px 0; }
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news strong { display: block; font-size: 20px; }

/* Footer */
.site-footer { background: var(--shingle); color: var(--pale-stone); text-align: center; padding: 22px 20px 18px; font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 8px; }
.site-footer a { font-weight: 600; font-size: 18px; text-underline-offset: 4px; }
.foot-sep { margin: 0 12px; opacity: .6; }
.privacy ul { padding-left: 22px; }
.privacy li { margin: 8px 0; }
.survey-intro a { text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-thickness: 2px; }

/* Survey page */
.survey-intro { padding: 40px 0 8px; }
.survey-intro h1 { font-size: clamp(22px, 4.4vw, 30px); text-align: center; }
.tagline { text-align: center; font-style: italic; margin: 10px 0 24px; }
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin: 24px 0; text-align: center; font-weight: 600; }
.form-embed { margin: 8px 0 32px; }
.form-embed iframe { width: 100%; height: 1400px; border: 0; background: #fff; border-radius: 6px; }
.placeholder { border: 2px dashed var(--stone-edge); border-radius: 6px; padding: 40px 24px; text-align: center; background: var(--field); }
.paper { padding: 0 0 56px; }

/* Footer: the plaque's flourish either side of the name */
.foot-line { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: nowrap; }
.foot-orn { flex: none; width: 30px; height: 25px; background: currentColor; -webkit-mask: url("../img/fleuron.svg") center / contain no-repeat; mask: url("../img/fleuron.svg") center / contain no-repeat; opacity: .9; }
.foot-small { font-size: 14px; }
.site-footer .foot-small a { font-size: 15px; font-weight: 400; display: inline-block; padding: 6px 10px; }

/* Home page photo banner */
.hero--photo { position: relative; height: clamp(240px, 36vw, 460px); }
.hero-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; box-shadow: 0 6px 18px rgba(30, 15, 8, .45); }
.hero-cta:hover { transform: translate(-50%, -50%); }
.map-figure img[width="1333"] { max-width: 640px; margin: 0 auto; }
.hero--photo img { object-position: 50% 62%; }
.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; }
.followup { margin: 8px 0 4px 34px; }
.followup textarea { min-height: 84px !important; }
.field--compact { margin-top: 10px; }
.field--compact textarea { min-height: 100px; }
.survey-form ::placeholder { color: #8a8478; opacity: 1; }
.home-letter .deadline { margin-top: 30px; }

/* Survey deadline callout */
.deadline { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 420px; margin: 26px auto 28px; padding: 16px 22px 18px; text-align: center; background: var(--field); border: 2px solid var(--brick); border-radius: 10px; box-shadow: 0 2px 0 rgba(143, 75, 55, .15); }
.deadline-label { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--shingle); }
.deadline-date { font: 600 clamp(28px, 6vw, 36px)/1.15 var(--display); letter-spacing: .04em; color: var(--brick); }
.deadline-sub { font-size: 16px; margin-top: 4px; }

/* Built-in survey form (see survey-built-in-sample.html) */
.progress { font-size: 16px; margin: 8px 0 20px; }
.progress .track { height: 6px; border-radius: 3px; background: #d8d1b6; margin-top: 6px; overflow: hidden; }
.progress .track div { height: 100%; background: var(--brick); }
.survey-form h2 { font-size: 22px; margin: 8px 0 4px; }
.survey-form fieldset { border: 0; padding: 0; margin: 26px 0 0; }
.survey-form legend { font-weight: 700; padding: 0; line-height: 1.35; }
.help { margin: 2px 0 10px; font-size: 16px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 6px; margin-top: 8px; background: var(--field); cursor: pointer; line-height: 1.35; }
.opt input, .pill input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brick); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--rule); border-radius: 999px; padding: 8px 16px; background: var(--field); cursor: pointer; }
.form-nav { display: flex; justify-content: space-between; margin: 32px 0 12px; }
.fine { font-size: 15px; margin: 0 0 56px; }

/* Built-in survey: extra pieces (see js/survey.js) */
.survey-form .screen h2:focus { outline: none; }
.page-intro { margin: 12px 0 0; }
.opts { margin-top: 2px; }
.opt:has(input:checked), .pill:has(input:checked) { border-color: var(--brick); background: #fbf8ee; }
.opt.is-disabled { opacity: .55; cursor: not-allowed; }
.opt-other { flex-wrap: wrap; align-items: center; }
.survey-form .other-text { flex: 1 1 100%; min-width: 0; min-height: 84px; resize: vertical; margin-top: 4px; }
.limit-note { font-size: 16px; margin: 8px 0 0; color: var(--brick); min-height: 0; }
.limit-note:empty { display: none; }
.grid-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.grid-row:first-of-type { border-top: 1px solid var(--rule); margin-top: 10px; }
.grid-label { flex: 1 1 220px; }
.pills--tight { margin-top: 0; gap: 6px; }
.pills--tight .pill { padding: 6px 14px; }
.group-head { margin: 30px 0 0; }
.group-label { font-size: 18px; margin: 0; line-height: 1.35; text-transform: none; letter-spacing: 0; font-family: var(--text); font-weight: 700; }
.group-head .help { margin-top: 4px; }
.field { margin-top: 16px; }
.survey-form fieldset + .field, .page-intro + .field { margin-top: 26px; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-label--q { font-weight: 700; line-height: 1.35; }
.survey-form input[type=text], .survey-form input[type=email], .survey-form input[type=tel], .survey-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf6; border: 1.5px solid var(--rule); border-radius: 6px; padding: 10px 12px; }
.survey-form textarea { resize: vertical; min-height: 150px; }
.survey-form input:focus, .survey-form textarea:focus { border-color: var(--brick); }
.survey-form [aria-invalid="true"] { border-color: #a3271a; }
.form-error { color: #8a1f14; font-weight: 600; margin: 20px 0 0; }
.form-error:empty { display: none; }
.form-nav .btn:only-child, .form-nav [hidden] + .btn { margin-left: auto; }
.btn:disabled, .btn-ghost:disabled { opacity: .6; cursor: progress; }
.notice { border: 1.5px solid var(--stone-edge); background: var(--field); border-radius: 6px; padding: 12px 16px; font-size: 16px; margin: 0 0 8px; }
.thanks { text-align: center; padding: 24px 0 8px; }
.thanks h2 { font-size: clamp(22px, 4.4vw, 28px); margin-bottom: 16px; }
.thanks h2:focus { outline: none; }
.thanks p { text-align: left; }
.thanks .tagline { text-align: center; }
[hidden] { display: none !important; }

/* About and Resources pages */
.page { padding: 40px 0 56px; }
.page h1 { font-size: clamp(24px, 4.6vw, 32px); text-align: center; }
.page h2 { font-size: 21px; margin: 32px 0 6px; }
.page a { text-underline-offset: 3px; }
.res-list { list-style: none; margin: 8px 0 0; padding: 0; }
.res-list li { border-top: 1px solid var(--rule); }
.res-list li:last-child { border-bottom: 1px solid var(--rule); }
.res-list a { display: flex; align-items: flex-start; gap: 16px; padding: 16px 4px; text-decoration: none; }
.res-list .res-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 2px; border-radius: 50%; background: #f3e4dc; color: var(--brick); }
.page p a[href^="mailto"], .page p a[href^="https"] { display: inline-block; padding: 2px 0; }
.res-list a:hover .res-icon { background: var(--brick); color: #fff; }
.res-text { display: block; min-width: 0; }
.res-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.res-list strong { display: block; font-size: 20px; color: var(--brick); }
.res-list span { display: block; }

.wrap--wide { max-width: 900px; }
.map-figure { margin: 20px 0 0; }
.map-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.map-figure figcaption { font-size: 16px; text-align: center; margin-top: 10px; }

/* Home page header: the Oakwood plaque on brick, like the entrance sign */
.hero--brick { height: auto; display: flex; justify-content: center; align-items: center; padding: clamp(26px, 4vw, 48px) 20px; background: #8f4b37 url("../img/brick-wall.webp") center / cover; border-top: 0; border-bottom: 8px solid var(--limestone); }
.hero--brick img { width: min(300px, 64vw); height: auto; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(40, 20, 10, .5)); }

.hero--brick-slim { padding: 0; height: clamp(56px, 8vw, 80px); }
.home-letter { padding: 22px 0 56px; }
.home-letter .tagline { margin-bottom: 28px; }
.cta { text-align: center; margin: 34px 0 0; }
.btn--big { font-size: 22px; padding: 16px 34px; border-radius: 8px; }

.map-h2 { margin-top: 28px; }
.map-hint, .map-note { font-size: 16px; margin: 4px 0 12px; }
.map-note { text-align: center; margin-top: 10px; }
.hero--3d.map-3d { height: clamp(340px, 62vw, 580px); border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.map-3d > img { object-fit: contain; }

/* Home page: interactive 3D neighborhood over the oak picture (js/neighborhood.js) */
.hero--3d { position: relative; height: clamp(300px, 42vw, 540px); }
.hero-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hero--3d.is-3d .hero-stage { opacity: 1; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 14px; display: none; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 12px; pointer-events: none; }
.hero--3d.is-3d .hero-controls { display: flex; }
.hero-seg { display: flex; background: rgba(46, 42, 38, .72); border: 1px solid rgba(239, 234, 216, .35); border-radius: 999px; padding: 3px; pointer-events: auto; backdrop-filter: blur(6px); }
.hero-seg button { font: 600 15px var(--text); color: var(--pale-stone); background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.hero-seg button[aria-pressed="true"] { background: var(--pale-stone); color: var(--ink); }
.hero-seg button:hover:not([aria-pressed="true"]) { background: rgba(239, 234, 216, .15); }
@media (prefers-reduced-motion: reduce) { .hero-stage { transition: none; } }

@media (max-width: 480px) {
  body { font-size: 18px; }
  .site-header { padding: 12px 16px; }
  .brand { gap: 10px; }
  .brand img { width: 54px; }
  .site-name { font-size: 18px; letter-spacing: .1em; }
  .site-nav { gap: 18px; font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero-seg button { font-size: 14px; padding: 6px 11px; }
}

@media (max-width: 480px) { .btn--big.hero-cta { font-size: 18px; padding: 11px 20px; } }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
