/* Brownstone Village at Levis Commons HOA
   Stylesheet. Plain CSS, no build step, no framework. */

:root {
  --ink:    #1d1a17;
  --brown:  #40291d;
  --brick:  #8a4a2e;
  --brick-d:#6f3a23;
  --sand:   #f7f3ed;
  --card:   #ffffff;
  --line:   #e4dbd0;
  --muted:  #6d635a;
  --good:   #2f6b4f;
  --warn:   #8a6a1f;
  --serif:  "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap:   1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29,26,23,.06), 0 8px 24px rgba(29,26,23,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: 2.35rem; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.18rem; margin-top: 1.6rem; }
p  { margin: 0 0 1.05em; }
a  { color: var(--brick-d); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header and navigation ---------- */

.topbar {
  background: var(--brown);
  color: #f2e9e0;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #f2e9e0; }

.masthead { background: var(--ink); color: #fff; }
.masthead .wrap { padding-top: 26px; padding-bottom: 26px; }
.masthead .brand { display: block; color: #fff; text-decoration: none; }
.masthead .brand .name { font-family: var(--serif); font-size: 1.85rem; line-height: 1.15; display: block; }
.masthead .brand .sub {
  display: block; margin-top: 6px; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: #bdb0a4;
}

nav.main { background: var(--brown); border-bottom: 3px solid var(--brick); }
nav.main .wrap { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 20px; }
nav.main a {
  display: block; padding: 13px 16px; color: #efe5da; text-decoration: none;
  font-size: .94rem; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
nav.main a:hover { background: rgba(255,255,255,.07); color: #fff; }
nav.main a[aria-current="page"] { color: #fff; border-bottom-color: var(--brick); background: rgba(0,0,0,.18); }

/* ---------- Hero ---------- */

.hero { background: var(--brown); color: #f4ece3; padding: 54px 0 58px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.12rem; color: #ddd0c4; max-width: 60ch; margin-bottom: 0; }

.page-head { padding: 40px 0 8px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .kicker {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brick-d); font-weight: 600; margin-bottom: .6em;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

main { padding-bottom: 64px; }

/* ---------- Cards and grids ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); margin: 20px 0;
}
.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 18px; margin: 22px 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .n { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; line-height: 1.1; display: block; color: var(--brown); }
.stat .l { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: block; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0e9e0; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brown); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons and notes ---------- */

.btn {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 7px; font-weight: 600; font-size: .98rem; border: 0; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brick-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--brown); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; color: var(--brown); }

.note {
  border-left: 4px solid var(--brick); background: #fbf6f0; padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: .96rem;
}
.note.warn { border-left-color: var(--warn); background: #fbf7ea; }
.note strong { display: inline; }

.pill {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #efe6dc; color: var(--brown);
}

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 24px 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brick); border: 2px solid var(--sand);
}
.timeline .yr { font-family: var(--mono); font-weight: 600; color: var(--brick-d); display: block; font-size: .95rem; }
.timeline p { margin: 2px 0 0; }

/* ---------- Document gate ---------- */

.gate { max-width: 460px; margin: 30px auto 60px; }
.gate .card { text-align: left; }
.gate label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.gate input[type="password"] {
  width: 100%; padding: 13px 14px; font-size: 1.05rem; font-family: inherit;
  border: 1px solid #c9beb1; border-radius: 7px; background: #fff;
}
.gate input[type="password"]:focus { outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--brick); }
.gate .btn { width: 100%; margin-top: 14px; }
.gate .msg { margin-top: 12px; font-size: .92rem; min-height: 1.4em; }
.gate .msg.err { color: #9a2b1e; font-weight: 600; }
.gate .hint { font-size: .88rem; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

.doc-folder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; overflow: hidden; box-shadow: var(--shadow); }
.doc-folder > header { padding: 16px 22px; border-bottom: 1px solid var(--line); background: #faf6f1; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.doc-folder > header h3 { margin: 0; font-size: 1.1rem; }
.doc-folder > header p { margin: 0; font-size: .88rem; color: var(--muted); }
.doc-folder .body { padding: 6px 22px 20px; }
.doc-folder iframe { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 14px; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink); color: #b7aca1; padding: 34px 0 40px; font-size: .9rem;
}
footer.site a { color: #e0d5c9; }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
footer.site h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 5px; }
footer.site .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #332e29; font-size: .84rem; color: #8d8379; }

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  .hero { padding: 38px 0 42px; }
  .masthead .brand .name { font-size: 1.45rem; }
  nav.main .wrap { padding: 0 10px; }
  nav.main a { padding: 11px 11px; font-size: .88rem; }
  .card { padding: 20px 18px; }
}

@media print {
  nav.main, .topbar, footer.site, .gate { display: none; }
  body { background: #fff; }
}

.mt { margin-top: 16px; }
