/* =========================================================
   Fieldstone Village Condominium Association
   Site stylesheet — plain CSS, no framework, no build step.
   Edit the custom properties below to retheme the whole site.
   ========================================================= */

:root {
  /* ---- Color: drawn from the actual property (lake sunset,
     pine treeline, the fieldstone under the entrance sign) ---- */
  --pine-900: #1c2620;   /* deepest green-black — primary text, dark nav */
  --pine-700: #33453b;   /* deep pine green — headings on light bg */
  --lake-500: #52626c;   /* dusk lake blue-gray — secondary text */
  --stone-400: #a89c88;  /* warm fieldstone tan-gray — borders, muted UI */
  --stone-200: #ddd6c9;  /* pale stone — hairlines */
  --amber-500: #8f5c2c;  /* sunset amber — links, accents, call-to-action (WCAG AA on mist/paper/white) */
  --amber-600: #714a23;  /* amber, darker — hover state */
  --amber-300: #c99b64;  /* pale amber — decorative-only use (dividers, icon accents), not for text */
  --mist-50: #f1f2ed;    /* pale cool off-white — page background */
  --paper: #fcfbf9;      /* card / surface background */
  --white: #ffffff;

  /* ---- Type ---- */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);

  /* ---- Layout ---- */
  --content-width: 1120px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(28, 38, 32, 0.08);
  --shadow-md: 0 6px 20px rgba(28, 38, 32, 0.12);
}

/* ---------------------------------------------------------
   Reset / base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--pine-900);
  background: var(--mist-50);
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--amber-600); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine-700);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------------------------------------------------------
   Skip link (accessibility)
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine-900);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------
   Site header / nav
   --------------------------------------------------------- */
.site-header {
  background: var(--pine-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-200);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  color: var(--white);
  width: 44px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle svg { pointer-events: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active { border-bottom-color: var(--amber-500); color: var(--white); }
.site-nav a.button {
  background: var(--amber-500);
  padding: 0.55em 1.1em;
  border-radius: var(--radius);
  border-bottom: none;
}
.site-nav a.button:hover { background: var(--amber-600); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--pine-900);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 2rem;
  }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .site-nav a { display: block; padding: 1rem 0.25rem; }
  .site-nav a.button { margin-top: 1rem; text-align: center; }
}

/* ---------------------------------------------------------
   Stone-coursing divider — the site's signature motif,
   drawn from the fieldstone wall beneath the entrance sign.
   Pure CSS gradient, no image request.
   --------------------------------------------------------- */
.stone-divider {
  height: 14px;
  background:
    linear-gradient(var(--mist-50), var(--mist-50)) 0 0/100% 2px no-repeat,
    repeating-linear-gradient(90deg,
      var(--stone-400) 0, var(--stone-400) 68px,
      var(--stone-200) 68px, var(--stone-200) 72px);
  background-color: var(--stone-400);
  opacity: 0.9;
}
.stone-divider.on-dark {
  background:
    linear-gradient(var(--pine-900), var(--pine-900)) 0 0/100% 2px no-repeat,
    repeating-linear-gradient(90deg,
      var(--stone-400) 0, var(--stone-400) 68px,
      var(--pine-700) 68px, var(--pine-700) 72px);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: min(56vh, 460px);
  background: linear-gradient(155deg, var(--pine-900) 0%, var(--pine-700) 100%);
  overflow: hidden;
}
.hero-motif {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding-block: 3rem 2.5rem; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stone-200);
  margin-bottom: 0.75rem;
}
.hero h1 { color: var(--white); margin-bottom: 0.3em; }
.hero p.lede {
  font-size: var(--step-1);
  color: #ece7dc;
  max-width: 46ch;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section { padding-block: 3.5rem; }
.section-tight { padding-block: 2.5rem; }
.section-alt { background: var(--paper); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--lake-500); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.photo-stack { display: flex; flex-direction: column; gap: 1rem; }
.photo-stack img { width: 100%; object-fit: cover; }
.photo-stack img.wide { aspect-ratio: 16 / 7; object-position: center 65%; }

/* ---------------------------------------------------------
   Cards (resource hub, contact, etc.)
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--stone-200);
  border-top: 4px solid var(--stone-400);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-top-color 0.15s ease;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-top-color: var(--amber-500);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.card .card-icon {
  width: 22px; height: 22px; flex: none; color: var(--amber-500);
}
.card p { color: var(--lake-500); font-size: 0.95rem; margin-bottom: 0.9em; }
.card .card-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.card .card-link::after { content: "→"; transition: transform 0.15s ease; }
.card .card-link:hover::after { transform: translateX(3px); }
.card ul.card-list { padding-left: 0; list-style: none; margin: 0; }
.card ul.card-list li { margin-bottom: 0.4em; }
.card ul.card-list a { font-size: 0.92rem; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--amber-500);
  color: var(--white);
  padding: 0.7em 1.4em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--amber-600); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--paper);
  color: var(--pine-700);
  border: 1.5px solid var(--stone-400);
  border-radius: var(--radius);
  padding: 0.6em 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost:hover { background: var(--mist-50); border-color: var(--pine-700); }

/* ---------------------------------------------------------
   Print — applies site-wide; a clean printed page for any
   view, with extra tightening on data-dense tables.
   --------------------------------------------------------- */
@media print {
  @page { margin: 0.4in; }
  .site-header, .site-footer, .nav-toggle, .stone-divider, .no-print {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="mailto"]::after, a[href^="tel"]::after { content: ""; }
  main { padding: 0; }
  .section { padding-block: 0.35rem !important; }
  .container { max-width: 100% !important; padding-inline: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .table-scroll { overflow: visible; border: none; }
  table { font-size: 9pt; }
  th, td { padding: 4px 6px; border-color: #bbb; }
  th { background: #eee !important; color: #000 !important; }
  th button::after { content: "" !important; }
  details.year-group { border: none; break-inside: avoid; }
  details.year-group summary::after { content: "" !important; }
  details.year-group .year-body { display: block !important; }
}

/* Owner directory print view: tuned to minimize page count */
@media print {
  .directory-page { font-family: Arial, Helvetica, "Liberation Sans", sans-serif; }
  .directory-page table { font-size: 7pt; }
  .directory-page th { font-size: 6.5pt; padding: 2px 5px; }
  .directory-page td { padding: 1.5px 5px; line-height: 1.12; }
  .directory-page h1 { font-size: 14pt; margin-bottom: 1pt; }
  .directory-page .eyebrow { display: none; }
  .directory-page a { color: inherit !important; text-decoration: none !important; }
}

/* ---------------------------------------------------------
   Tables (owner directory, board list) — responsive
   --------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--stone-200); border-radius: var(--radius); }
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
}
caption { text-align: left; padding: 0.75em; color: var(--lake-500); font-size: 0.85rem; }
th, td {
  padding: 0.65em 0.9em;
  border-bottom: 1px solid var(--stone-200);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--pine-700);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}
th button {
  background: none; border: none; color: inherit; font: inherit;
  cursor: pointer; padding: 0; display: inline-flex; gap: 0.35em; align-items: center;
}
th[aria-sort="ascending"] button::after { content: "▲"; font-size: 0.7em; }
th[aria-sort="descending"] button::after { content: "▼"; font-size: 0.7em; }
tbody tr:hover { background: var(--mist-50); }

/* ---------------------------------------------------------
   Disclosure lists (meeting minutes / newsletters by year)
   --------------------------------------------------------- */
details.year-group {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--paper);
  overflow: hidden;
}
details.year-group summary {
  cursor: pointer;
  padding: 0.85em 1.1em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine-700);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.year-group summary::-webkit-details-marker { display: none; }
details.year-group summary::after { content: "+"; font-size: 1.3em; color: var(--amber-500); }
details.year-group[open] summary::after { content: "–"; }
details.year-group .year-body { padding: 0 1.1em 1.1em; }
details.year-group .year-body ul { list-style: none; padding-left: 0; }
details.year-group .year-body li { padding: 0.3em 0; border-top: 1px dashed var(--stone-200); }
details.year-group .year-body li:first-child { border-top: none; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--pine-900);
  color: var(--stone-200);
  padding-block: 2.5rem;
  font-size: 0.88rem;
}
.site-footer a { color: var(--white); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-500);
  margin-bottom: 0.5em;
  display: block;
}
.text-muted { color: var(--lake-500); }
.mt-0 { margin-top: 0; }
.prose h3 { margin-top: 1.85em; }
.prose h3:first-child { margin-top: 0; }
