/* ==========================================================================
   Drinking and HOAing — site styles
   Dark, video-first. One stylesheet for the whole site.
   ========================================================================== */

:root{
  --bg:        #0d1117;
  --bg-2:      #151b23;
  --bg-3:      #1c242e;
  --line:      #2a3441;
  --text:      #e6edf3;
  --muted:     #9aa7b4;
  --accent:    #d9534f;   /* citation red */
  --accent-2:  #f0ad4e;   /* warning amber */
  --gold:      #ffc857;
  --green:     #4caf50;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 8px 28px rgba(0,0,0,.45);
  --wrap:      1180px;
  --font:      'Segoe UI', Tahoma, Geneva, Verdana, system-ui, sans-serif;
}

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

html{
  scroll-behavior:smooth;
  /* the header is sticky - keep anchored sections clear of it */
  scroll-padding-top:86px;
}
@media (max-width:940px){ html{ scroll-padding-top:76px; } }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,video{ max-width:100%; display:block; }

a{ color:var(--accent-2); text-decoration:none; }
a:hover,a:focus{ color:var(--gold); text-decoration:underline; }

h1,h2,h3,h4{ line-height:1.2; margin:0 0 .5em; }
h1{ font-size:clamp(1.7rem,4vw,2.7rem); letter-spacing:-.01em; }
h2{ font-size:clamp(1.4rem,2.6vw,2rem); }
h3{ font-size:1.15rem; }

p{ margin:0 0 1em; }

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

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

/* ---------- Header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(13,17,23,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  max-width:var(--wrap); margin:0 auto; padding:10px 20px;
  display:flex; align-items:center; gap:18px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color:var(--text); font-weight:700; font-size:1.08rem; text-decoration:none; white-space:nowrap;
}
.brand:hover{ color:var(--text); text-decoration:none; }
.brand img{ border-radius:8px; }
.brand-text em{ color:var(--accent-2); font-style:normal; }
.brand-text .tm{
  font-size:.52em; font-weight:600; line-height:1;
  vertical-align:super; margin-left:2px; letter-spacing:0;
  color:var(--muted);
}

.nav{ margin-left:auto; }
.nav-list{ list-style:none; display:flex; align-items:center; gap:4px; margin:0; padding:0; }
.nav-list > li{ position:relative; }
.nav-list a,
.sub-toggle{
  display:block; padding:9px 12px; border-radius:8px;
  color:var(--text); font-size:.94rem; font-weight:600;
  background:none; border:0; font-family:inherit; cursor:pointer;
}
.nav-list a:hover,.sub-toggle:hover,.sub-toggle[aria-expanded="true"]{
  background:var(--bg-3); color:var(--gold); text-decoration:none;
}
.sub-toggle::after{ content:" ▾"; color:var(--muted); font-size:.8em; }

.sub{
  display:none; position:absolute; top:calc(100% + 6px); left:0; min-width:230px;
  list-style:none; margin:0; padding:6px;
  background:var(--bg-2); border:1px solid var(--line);
  border-radius:var(--radius-sm); box-shadow:var(--shadow);
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.sub-toggle[aria-expanded="true"] + .sub{ display:block; }
.sub a{ font-weight:500; white-space:nowrap; }

.nav-cta{
  background:var(--accent); color:#fff !important;
}
.nav-cta:hover{ background:#c3413d; color:#fff !important; }

.nav-toggle{
  display:none; margin-left:auto; background:none; border:1px solid var(--line);
  border-radius:8px; padding:9px 10px; cursor:pointer;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--text); margin:4px 0; }

@media (max-width:940px){
  .nav-toggle{ display:block; min-width:44px; min-height:44px; padding:11px 12px; }
  .nav{ display:none; width:100%; order:3; margin-left:0; }
  .nav.open{ display:block; }
  .site-header .bar{ flex-wrap:wrap; }
  .nav-list{ flex-direction:column; align-items:stretch; gap:0; padding:8px 0 12px; }
  .sub{ position:static; display:block; border:0; box-shadow:none; background:transparent; padding-left:14px; }
  .sub-toggle::after{ content:""; }

  /* 44px minimum tap target - WCAG 2.5.8 / iOS + Android guidance */
  .nav-list a,
  .nav-list .sub-toggle,
  .sub a{
    display:flex; align-items:center;
    min-height:44px; padding-top:6px; padding-bottom:6px;
  }
  .brand{ min-height:44px; display:inline-flex; align-items:center; }
}

/* ---------- Hero ---------- */
.hero{
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(1100px 380px at 15% -10%, rgba(217,83,79,.20), transparent 62%),
    radial-gradient(900px 420px at 88% 0%, rgba(240,173,78,.14), transparent 60%),
    var(--bg);
  padding:44px 0 40px;
}
.hero-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:38px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:26px; } }

.eyebrow{
  display:inline-block; font-size:.74rem; font-weight:800; letter-spacing:.16em;
  text-transform:uppercase; color:var(--accent-2);
  border:1px solid rgba(240,173,78,.4); border-radius:999px; padding:5px 12px; margin-bottom:14px;
}
.hero h1 em{ color:var(--accent-2); font-style:normal; }
.hero .tagline{ color:var(--muted); font-size:1.06rem; max-width:52ch; }
.pronounce{
  margin-top:14px; font-size:.86rem; color:var(--muted);
  border-left:3px solid var(--line); padding-left:12px;
}

.btn{
  display:inline-block; padding:12px 22px; border-radius:999px;
  font-weight:700; font-size:.95rem; border:1px solid transparent; cursor:pointer;
  font-family:inherit;
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:#c3413d; color:#fff; text-decoration:none; }
.btn-ghost{ border-color:var(--line); color:var(--text); background:var(--bg-2); }
.btn-ghost:hover{ border-color:var(--accent-2); color:var(--gold); text-decoration:none; }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }

.player-shell{
  background:#000; border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
}
.player-shell video{ width:100%; aspect-ratio:16/9; object-fit:cover; background:#000; }
.player-note{ font-size:.8rem; color:var(--muted); margin-top:8px; }

/* ---------- Sections ---------- */
.section{ padding:46px 0; border-bottom:1px solid var(--line); }
.section.tight{ padding:30px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:20px; flex-wrap:wrap; }
.section-head h2{ margin:0; }
.section-head .blurb{ color:var(--muted); font-size:.92rem; margin:4px 0 0; }
.section-head .more{ font-size:.88rem; font-weight:700; white-space:nowrap; }

/* ---------- Video cards ---------- */
.video-grid{
  display:grid; gap:20px;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
}
.vcard{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .16s ease, border-color .16s ease;
}
.vcard:hover{ transform:translateY(-3px); border-color:var(--accent-2); }
.vcard a{ color:inherit; text-decoration:none; display:flex; flex-direction:column; height:100%; }
.vthumb{ position:relative; aspect-ratio:16/9; background:var(--bg-3); overflow:hidden; }
.vthumb img{ width:100%; height:100%; object-fit:cover; }
.vthumb .play{
  position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  opacity:.92;
}
.vthumb .play span{
  width:48px; height:48px; border-radius:50%; background:rgba(217,83,79,.92);
  display:grid; place-items:center; color:#fff; font-size:1rem; padding-left:3px;
}
.vmeta{ padding:13px 14px 16px; }
.vmeta h3{ font-size:1rem; margin:0 0 5px; }
.vmeta p{ font-size:.84rem; color:var(--muted); margin:0; }
.vtag{
  display:inline-block; font-size:.68rem; font-weight:800; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent-2); margin-bottom:6px;
}

/* ---------- Watch page ---------- */
.watch-wrap{ padding:28px 0 10px; }
.watch-grid{ display:grid; grid-template-columns:1fr 330px; gap:30px; align-items:start; }
@media (max-width:1000px){ .watch-grid{ grid-template-columns:1fr; } }
.watch-title{ margin:18px 0 6px; font-size:clamp(1.3rem,2.6vw,1.9rem); }
.watch-sub{ color:var(--muted); font-size:.94rem; }
.watch-actions{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 6px; }
.chip{
  display:inline-block; padding:7px 14px; border-radius:999px; font-size:.83rem; font-weight:600;
  border:1px solid var(--line); background:var(--bg-2); color:var(--text);
}
a.chip:hover{ border-color:var(--accent-2); color:var(--gold); text-decoration:none; }
.up-next{ display:flex; flex-direction:column; gap:12px; }
.up-item{ display:flex; gap:11px; align-items:center; color:inherit; text-decoration:none; }
.up-item:hover{ text-decoration:none; }
.up-item:hover h4{ color:var(--gold); }
.up-item img{ width:118px; aspect-ratio:16/9; object-fit:cover; border-radius:8px; flex:none; background:var(--bg-3); }
.up-item h4{ font-size:.9rem; margin:0 0 2px; }
.up-item span{ font-size:.76rem; color:var(--muted); }

.breadcrumb{ font-size:.82rem; color:var(--muted); }
.breadcrumb a{ color:var(--muted); }

/* ---------- Generic content ---------- */
.page-head{
  padding:46px 0 30px;
  background:radial-gradient(900px 300px at 12% -20%, rgba(217,83,79,.16), transparent 60%), var(--bg);
  border-bottom:1px solid var(--line);
}
.page-head .lede{ color:var(--muted); font-size:1.06rem; max-width:62ch; }

.cards{ display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.card{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px;
}
.card h3{ margin-top:0; color:var(--text); }
.card p:last-child{ margin-bottom:0; }
.card.accent{ border-left:4px solid var(--accent); }
.card.amber{ border-left:4px solid var(--accent-2); }
.card.green{ border-left:4px solid var(--green); }

.badge{
  display:inline-block; background:var(--accent); color:#fff;
  padding:3px 9px; font-size:.72rem; font-weight:800; letter-spacing:.06em;
  border-radius:4px; margin-bottom:8px; text-transform:uppercase;
}
.badge.amber{ background:var(--accent-2); color:#20160a; }
.badge.green{ background:var(--green); color:#06210a; }
.badge.grey{ background:var(--bg-3); color:var(--muted); }

.stat-row{ display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin:26px 0; }
.stat{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:20px; text-align:center; }
.stat b{ display:block; font-size:1.9rem; color:var(--accent-2); line-height:1.1; }
.stat span{ font-size:.84rem; color:var(--muted); }

table.dh{ width:100%; border-collapse:collapse; font-size:.92rem; }
table.dh th,table.dh td{ padding:11px 12px; border-bottom:1px solid var(--line); text-align:left; }
table.dh th{ color:var(--accent-2); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.table-scroll{ overflow-x:auto; }

.callout{
  background:var(--bg-2); border:1px solid var(--line); border-left:4px solid var(--accent-2);
  border-radius:var(--radius); padding:20px 22px; margin:26px 0;
}
.callout p:last-child{ margin-bottom:0; }

ul.ticks{ list-style:none; padding:0; margin:0 0 1em; }
ul.ticks li{ padding-left:26px; position:relative; margin-bottom:9px; }
ul.ticks li::before{ content:"✓"; position:absolute; left:0; color:var(--green); font-weight:800; }

/* ---------- Forms ---------- */
form.dh{ display:grid; gap:16px; max-width:640px; }
form.dh label{ font-size:.86rem; font-weight:700; display:block; margin-bottom:6px; }
form.dh input,form.dh select,form.dh textarea{
  width:100%; padding:11px 13px; border-radius:var(--radius-sm);
  border:1px solid var(--line); background:var(--bg-2); color:var(--text);
  font-family:inherit; font-size:.95rem;
}
form.dh input:focus,form.dh select:focus,form.dh textarea:focus{
  outline:none; border-color:var(--accent-2);
}
form.dh textarea{ min-height:150px; resize:vertical; }
.form-note{ font-size:.8rem; color:var(--muted); }
.form-row{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }

/* ---------- Citation generator ---------- */
.generator{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; text-align:center;
}
#citation-output{
  margin-top:18px; min-height:4.2rem; font-weight:600; font-size:1.02rem;
  color:var(--accent-2); display:grid; place-items:center;
}

/* ---------- Store ---------- */
.merch-grid{ display:grid; gap:20px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.merch{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
}
.merch .art{
  aspect-ratio:1/1; display:grid; place-items:center; padding:22px; text-align:center;
  background:linear-gradient(160deg,var(--bg-3),#0f151c);
  border-bottom:1px solid var(--line);
}
.merch .art b{ font-size:1.15rem; letter-spacing:.04em; line-height:1.25; text-transform:uppercase; }
.merch .art small{ display:block; margin-top:8px; color:var(--muted); font-size:.72rem; letter-spacing:.18em; }
.merch .art-photo{ padding:0; position:relative; background:#fff; }
.merch .art-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.merch .art-flag{
  position:absolute; left:10px; top:10px; z-index:2;
  background:rgba(15,21,28,.86); color:#fff; border-radius:999px;
  padding:5px 11px; font-size:.66rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
}
.merch.has-photo{ border-color:var(--accent-2); }
.merch .info{ padding:14px 16px 18px; }
.merch .info h3{ font-size:.98rem; margin:0 0 4px; }
.merch .info p{ font-size:.82rem; color:var(--muted); margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--bg-2); border-top:1px solid var(--line); padding:44px 0 30px; margin-top:0; }
.foot-grid{ display:grid; gap:28px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.foot-grid h4{ font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-2); margin-bottom:12px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; }
.foot-grid li{ margin-bottom:8px; }
.foot-grid a{ color:var(--muted); font-size:.88rem; }
.foot-grid a:hover{ color:var(--gold); }
.foot-bottom{ margin-top:36px; padding-top:22px; border-top:1px solid var(--line); }
.foot-brand{ font-weight:700; margin-bottom:4px; }
.foot-brand em{ color:var(--accent-2); font-style:normal; }
.foot-brand span{ font-weight:400; color:var(--muted); font-size:.9rem; }
.foot-joke{ color:var(--accent-2); font-size:.86rem; }
.foot-legal,.foot-disclaimer{ color:var(--muted); font-size:.8rem; }
.foot-disclaimer{ margin-top:10px; opacity:.75; }

/* ---------- 404 ---------- */
.err-wrap{ text-align:center; padding:80px 20px 60px; max-width:760px; margin:0 auto; }
.err-code{
  font-size:clamp(4rem,16vw,9rem); font-weight:900; line-height:.9;
  color:var(--accent); margin:0;
}
.err-cite{
  background:var(--bg-2); border:1px solid var(--line); border-left:4px solid var(--accent);
  border-radius:var(--radius); padding:22px; margin:30px 0; text-align:left;
}
.err-cite h3{ color:var(--accent); font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; }

/* ---------- "Got Milk? -> Got HOA?" flip card ---------- */
.gothoa{
  position:relative; width:100%; aspect-ratio:4/5;
  border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--shadow); background:#000;
}
.gothoa .face{ position:absolute; inset:0; display:grid; place-items:center; text-align:center; }

.gothoa .face-milk{
  background:#fff; color:#111;
  animation:ghMilk 7s infinite;
}
.gothoa .face-milk b{
  font-size:clamp(2rem,7vw,3.4rem); font-weight:900; letter-spacing:-.02em; line-height:1;
  font-family:Georgia,'Times New Roman',serif;
}
.gothoa .face-milk small{
  display:block; margin-top:14px; font-size:.7rem; letter-spacing:.28em;
  text-transform:uppercase; color:#777;
}

.gothoa .face-hoa{
  background:#000; padding:0;
  animation:ghHoa 7s infinite;
}
.gothoa .face-hoa img{ width:100%; height:100%; object-fit:contain; }

@keyframes ghMilk{
  0%,42%   { opacity:1; }
  50%,92%  { opacity:0; }
  100%     { opacity:1; }
}
@keyframes ghHoa{
  0%,42%   { opacity:0; }
  50%,92%  { opacity:1; }
  100%     { opacity:0; }
}
@media (prefers-reduced-motion:reduce){
  .gothoa .face{ animation:none; }
  .gothoa .face-milk{ display:none; }
  .gothoa .face-hoa{ opacity:1; }
}

/* ---------- Got HOA? two-up: the poster and the shirt ---------- */
.gothoa-split{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px; align-items:start; max-width:900px; margin:0 auto;
}
@media (max-width:720px){ .gothoa-split{ grid-template-columns:1fr; gap:32px; } }
.gh-col{ margin:0; }
.gh-col figcaption{
  margin-top:12px; text-align:center; font-size:.84rem; color:var(--muted);
}
.gh-tee{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow); background:#fff;
}
.gh-col a:hover .gh-tee{ border-color:var(--accent-2); }
.gothoa .face-hoa{ background:#000; padding:0; }
.gothoa .face-hoa img{ width:100%; height:100%; object-fit:contain; }

/* ---------- Top Videos rank badge ---------- */
.vcard-top .vthumb .vrank{
  position:absolute; top:10px; left:10px; z-index:2;
  min-width:28px; height:28px; padding:0 8px;
  display:grid; place-items:center;
  background:var(--accent); color:#fff;
  font-size:.85rem; font-weight:800; line-height:1;
  border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.5);
}
.vcard-top{ border-color:rgba(240,173,78,.38); }

/* ---------- Required consent block on submission forms ---------- */
.consent-box{
  background:var(--bg-2); border:1px solid var(--line);
  border-left:4px solid var(--accent-2);
  border-radius:var(--radius); padding:18px 20px;
}
.consent-label{
  display:flex; gap:11px; align-items:flex-start;
  font-size:.92rem; font-weight:400; margin-bottom:10px; cursor:pointer;
}
.consent-label input[type="checkbox"]{
  width:19px; height:19px; flex:none; margin-top:2px; accent-color:var(--accent);
  cursor:pointer;
}
.consent-list{ margin:0; padding-left:32px; font-size:.86rem; color:var(--muted); }
.consent-list li{ margin-bottom:7px; }
.consent-list li:last-child{ margin-bottom:0; }
.consent-list strong{ color:var(--text); }

/* ---------- Accessibility helpers ---------- */
.visually-hidden{
  position:absolute !important; width:1px; height:1px;
  margin:-1px; padding:0; border:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
/* Honeypot: out of the layout, out of the tab order, out of the a11y tree */
.hp{
  position:absolute !important; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}

/* ---------- Reserve the player box before the poster loads (CLS) ---------- */
.player-shell{ position:relative; aspect-ratio:16/9; background:#000; }
.player-shell > video{ width:100%; height:100%; }

/* ---------- Board member "aka" ---------- */
.aka{
  display:block; margin-top:3px;
  font-size:.78rem; font-weight:600; letter-spacing:.02em;
  color:var(--muted); text-transform:none;
}

/* ---------- $0 dues calculator ---------- */
.calc{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px; display:grid; gap:18px;
}
.calc label{ font-size:.86rem; font-weight:700; display:block; margin-bottom:6px; }
.calc input[type="number"], .calc select{
  width:100%; padding:11px 13px; border-radius:var(--radius-sm);
  border:1px solid var(--line); background:var(--bg); color:var(--text);
  font-family:inherit; font-size:1rem;
}
.calc-input{ display:flex; align-items:center; gap:8px; }
.calc-input span{ color:var(--muted); font-size:1.1rem; }
.calc input[type="range"]{ width:100%; accent-color:var(--accent); }
.calc output{ color:var(--accent-2); font-weight:800; }
.calc .stat b{ font-size:1.6rem; }
.calc-line{
  margin:20px 0 0; padding-top:18px; border-top:1px solid var(--line);
  font-size:1.02rem; color:var(--text);
}
.calc-line strong{ color:var(--accent-2); }
.calc-community{ margin:6px 0 0; font-size:.88rem; color:var(--muted); }
