/* Shaw Gardens Residents Association
   Layout: one calm reading column, left aligned. The logo's gold square
   returns as the only ornament, set behind section labels. */
:root {
  --paper: #fcfbf8;
  --panel: #f3f0e6;
  --ink: #1c1b17;
  --ink-soft: #57544a;
  --rule: #ddd8c8;
  --gold: #edba1b;
  --gold-ink: #7a5c00;
  --on-gold: #1c1b17;
  --logo-tile: transparent;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.25rem;
  --measure: 38rem;
  --wide: 62rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16150f; --panel: #211f17; --ink: #efece2; --ink-soft: #b4ae9c;
    --rule: #38352a; --gold: #edba1b; --gold-ink: #f0c43a; --on-gold: #1c1b17;
    --logo-tile: #fcfbf8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16150f; --panel: #211f17; --ink: #efece2; --ink-soft: #b4ae9c;
  --rule: #38352a; --gold: #edba1b; --gold-ink: #f0c43a; --on-gold: #1c1b17;
  --logo-tile: #fcfbf8; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 72px; background: var(--logo-tile); border-radius: 4px; padding: 3px; }
.hero-logo { width: min(260px, 70%); background: var(--logo-tile); border-radius: 4px; padding: 6px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; max-width: 11rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Sections */
main { display: block; }
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--rule); }
.stack { display: grid; gap: 18px; max-width: var(--measure); }
.wrap.stack { max-width: var(--wide); }
.wrap.stack > * { max-width: var(--measure); min-width: 0; }
.label {
  display: inline-block; justify-self: start;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-gold); background: var(--gold); padding: 3px 10px 2px;
}
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }

/* Intro */
.intro { padding-block: 64px 56px; }
.intro .stack { gap: 22px; }
.intro h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); max-width: 18ch; }

.button {
  display: inline-block; justify-self: start;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 3px;
}
.button:hover { background: var(--gold); color: var(--on-gold); }

/* News */
.news-list { display: grid; gap: 0; max-width: var(--measure); }
.news-item { display: grid; gap: 10px; padding-block: 24px; border-top: 1px solid var(--rule); }
.news-item:first-child { border-top: 0; padding-top: 4px; }
.news-date { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.year { font-family: var(--display); font-size: var(--step-2); padding-top: 8px; }

/* What we do */
.focus {
  display: grid; gap: 28px 40px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 28px;
}
.focus > div { display: grid; gap: 8px; align-content: start; min-width: 0; padding-top: 14px; border-top: 3px solid var(--gold); }

/* About */
.history { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .history { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
figure { margin: 0; display: grid; gap: 8px; }
figure img { border-radius: 2px; }
figcaption { font-size: 0.88rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; max-width: var(--measure); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; min-width: 0; }

/* Join */
.callout { background: var(--panel); padding: 22px 24px; border-left: 6px solid var(--gold); max-width: var(--measure); display: grid; gap: 10px; }
.email { font-family: var(--display); font-size: var(--step-2); font-weight: 600; word-break: break-word; }
.email a { color: var(--ink); text-decoration-color: var(--gold); }
.codes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.codes li { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--rule); padding: 4px 10px; border-radius: 3px; background: var(--paper); }

/* Resources */
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.links li { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--rule); min-width: 0; }
.links li:first-child { border-top: 0; padding-top: 4px; }
.links a, .link-title { font-weight: 700; font-size: var(--step-1); font-family: var(--display); }
.links p { color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--panel); font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 28px; justify-content: space-between; }
.site-footer a { color: var(--ink); }

@media (max-width: 30rem) {
  .section { padding-block: 40px; }
  .intro { padding-block: 40px; }
  .facts { grid-template-columns: 1fr; gap: 0 0; }
  .facts dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
