/* Paulinskill Lake History Archive — 100 Dam Years
   Brand tokens: change colors and fonts here only. */
:root{
  --navy:#001B3B;          /* primary */
  --navy-2:#0B2A52;        /* raised navy surfaces */
  --gold:#BE9B5A;          /* champagne gold: accents, rules, text ON navy only */
  --gold-deep:#7A5E2A;     /* AA-safe gold for small text on ivory (5.6:1) */
  --ivory:#FBF7EA;         /* page background (never pure white) */
  --ivory-2:#F3ECD8;       /* cards / bands */
  --charcoal:#33302B;      /* body text (12:1 on ivory) */
  --muted:#5A554C;         /* secondary text (7:1 on ivory) */
  --line:#D9CDB0;
  --font-display:'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:'Lato', 'Mont', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure:68ch;
  --radius:6px;
  --shadow:0 1px 2px rgba(0,27,59,.06),0 8px 24px rgba(0,27,59,.08);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--ivory);color:var(--charcoal);font-family:var(--font-body);font-size:1.0625rem;line-height:1.65;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{text-decoration-color:var(--navy)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:2px}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--navy);line-height:1.15;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,6vw,3.6rem);font-weight:800}
h2{font-size:clamp(1.6rem,4vw,2.4rem)}
h3{font-size:1.3rem}
p{margin:0 0 1em;max-width:var(--measure)}
.wrap{width:min(1180px,100% - 2.5rem);margin-inline:auto}
.narrow{width:min(760px,100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--navy);color:var(--ivory);padding:.75rem 1rem;z-index:100}
.skip:focus{left:1rem;top:1rem}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eyebrow{font-family:var(--font-body);text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;font-weight:700;color:var(--gold-deep);margin:0 0 .75rem}
.on-navy .eyebrow{color:var(--gold)}
.rule{width:64px;height:2px;background:var(--gold);border:0;margin:1.25rem 0 1.5rem}
.center{text-align:center}.center p,.center .rule{margin-inline:auto}

/* Preview ribbon */
.preview-ribbon{background:#5B1A1A;color:#FFF7E6;text-align:center;font-size:.85rem;padding:.4rem 1rem;font-weight:700;letter-spacing:.03em}

/* Brand strip + header */
.brandstrip{background:var(--navy);color:var(--gold);text-align:center;font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;padding:.55rem 1rem;font-weight:700}
.site-header{background:var(--ivory);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:var(--navy)}
.brand img{width:54px;height:54px}
.brand-text{font-family:var(--font-display);font-weight:700;font-size:1.05rem;line-height:1.1}
.brand-text small{display:block;font-family:var(--font-body);font-weight:700;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);margin-top:.2rem}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.25rem}
.nav a{display:block;padding:.6rem .8rem;text-decoration:none;font-weight:700;font-size:.92rem;letter-spacing:.04em;color:var(--navy);border-bottom:2px solid transparent;min-height:44px}
.nav a:hover,.nav a[aria-current="page"]{border-bottom-color:var(--gold)}
@media (max-width:860px){
  .header-inner{flex-direction:column;align-items:stretch;gap:.25rem;padding-bottom:0}
  .nav{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -1.25rem;padding:0 1.25rem}
  .nav ul{gap:0}
  .nav a{white-space:nowrap;padding:.65rem .7rem}
  .site-header{position:static}
}

/* Hero */
.hero{position:relative;color:var(--ivory);background:var(--navy) center/cover no-repeat;isolation:isolate;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(0,27,59,.97) 0%,rgba(0,27,59,.9) 45%,rgba(0,27,59,.62) 100%);z-index:-1}
.hero-inner{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center;padding:3.5rem 0 3rem}
.hero h1{color:var(--ivory)}
.hero .lead{font-size:clamp(1.08rem,2.4vw,1.3rem);max-width:36rem;color:#EFE7D2}
.hero-logo{justify-self:center;width:min(320px,72vw);background:var(--ivory);border-radius:14px;padding:14px;box-shadow:0 0 0 2px var(--gold),0 20px 50px rgba(0,0,0,.35)}
.hero-credit{font-size:.72rem;color:#D9CFB5;margin:0;padding:0 1.25rem 1rem;max-width:none}
@media (min-width:900px){.hero-credit{position:absolute;right:.75rem;bottom:.5rem;padding:0}}
.hero-credit a{color:#F1E6C8}
@media (min-width:900px){.hero-inner{grid-template-columns:1.35fr 1fr;padding:5.5rem 0 5rem}}
.btns{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.75rem 1.4rem;border-radius:999px;font-weight:700;letter-spacing:.04em;text-decoration:none;border:2px solid var(--gold);font-size:.95rem}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{background:#D2B474}
.btn-ghost{color:var(--ivory)}
.btn-ghost:hover{background:rgba(190,155,90,.15)}
.btn-navy{background:var(--navy);color:var(--ivory);border-color:var(--navy)}
.btn-navy:hover{background:var(--navy-2)}
.btn-outline{color:var(--navy);border-color:var(--navy)}
.btn-outline:hover{background:var(--ivory-2)}

/* Sections */
.section{padding:4rem 0}
.section-tight{padding:2.5rem 0}
.band{background:var(--ivory-2)}
.on-navy{background:var(--navy);color:#EFE7D2}
.on-navy h2,.on-navy h3{color:var(--ivory)}
.on-navy a{color:var(--ivory)}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;text-align:center}
@media (min-width:760px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat b{display:block;font-family:var(--font-display);font-size:clamp(2rem,5vw,2.8rem);color:var(--gold);font-weight:800;line-height:1}
.stat span{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700}

/* Story */
.story{display:grid;gap:2.5rem}
@media (min-width:900px){.story{grid-template-columns:1fr 1fr;column-gap:4rem}}
.chapter h3{font-size:1.45rem}
.chapter h3::before{content:"";display:block;width:40px;height:2px;background:var(--gold);margin-bottom:.9rem}
.cite{font-size:.78rem;font-weight:700;letter-spacing:.04em;white-space:nowrap}
.cite a{color:var(--gold-deep)}

/* Timeline */
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0 2rem}
.chip{font:inherit;font-size:.88rem;font-weight:700;min-height:44px;padding:.5rem 1rem;border-radius:999px;border:1.5px solid var(--navy);background:transparent;color:var(--navy);cursor:pointer}
.chip[aria-pressed="true"]{background:var(--navy);color:var(--ivory)}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline::before{content:"";position:absolute;left:7px;top:.4rem;bottom:.4rem;width:2px;background:var(--line)}
.tl-item{position:relative;padding:0 0 1.75rem 2.25rem}
.tl-item::before{content:"";position:absolute;left:0;top:.45rem;width:16px;height:16px;border-radius:50%;background:var(--ivory);border:3px solid var(--gold)}
.tl-item[hidden]{display:none}
.tl-date{font-family:var(--font-display);font-weight:700;color:var(--navy);font-size:1.15rem;display:block}
.tl-text{margin:.2rem 0 .35rem}
.tl-src{font-size:.85rem;color:var(--muted)}
.badge{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.15rem .55rem;border-radius:999px;border:1px solid currentColor;vertical-align:middle;white-space:nowrap}
.badge-medium{color:#7A4B00}
.badge-full{color:#1D5B3A}
.badge-summary{color:var(--muted)}
@media (min-width:900px){
  .timeline::before{left:50%}
  .tl-item{width:50%;padding:0 3rem 2rem 0;text-align:right}
  .tl-item::before{left:auto;right:-8px}
  .tl-item.alt{margin-left:50%;padding:0 0 2rem 3rem;text-align:left}
  .tl-item.alt::before{right:auto;left:-8px}
  .tl-item p{margin-left:auto}
  .tl-item.alt p{margin-left:0}
}

/* Cards */
.grid{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media (min-width:640px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.card{background:#FFFDF6;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.card-media{aspect-ratio:4/3;background:var(--ivory-2);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;object-position:top}
.card-body{padding:1.1rem 1.2rem 1.25rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.card-meta{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-deep)}
.card h3{font-size:1.12rem;margin:0}
.card h3 a{text-decoration:none}
.card h3 a:hover{text-decoration:underline;text-decoration-color:var(--gold)}
.card p{font-size:.95rem;color:var(--muted);margin:0}
.card .badges{margin-top:auto;padding-top:.5rem;display:flex;gap:.4rem;flex-wrap:wrap}

/* Archive tools */
.tools{background:#FFFDF6;border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem;display:grid;gap:1rem;grid-template-columns:1fr;box-shadow:var(--shadow)}
@media (min-width:760px){.tools{grid-template-columns:2fr 1fr 1fr 1fr}}
.field label{display:block;font-weight:700;font-size:.85rem;letter-spacing:.04em;margin-bottom:.3rem;color:var(--navy)}
.field input[type=search],.field select{width:100%;font:inherit;font-size:1rem;min-height:48px;padding:.6rem .8rem;border:1.5px solid #8C826D;border-radius:var(--radius);background:var(--ivory);color:var(--charcoal)}
.tools-row{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:center;grid-column:1/-1;font-size:.95rem}
.tools-row label{display:inline-flex;gap:.5rem;align-items:center;min-height:44px;cursor:pointer}
.tools-row input[type=checkbox]{width:20px;height:20px;accent-color:var(--navy)}
.count{font-weight:700;color:var(--navy)}
.linkbtn{font:inherit;background:none;border:0;color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);cursor:pointer;min-height:44px;padding:0}
.results{margin-top:1.5rem}
.result{border-bottom:1px solid var(--line);padding:1.1rem 0;display:grid;grid-template-columns:1fr;gap:.25rem}
.result[hidden]{display:none}
@media (min-width:760px){.result{grid-template-columns:96px 1fr;column-gap:1.25rem}.result .thumb{grid-row:span 4}}
.result .thumb{width:96px;height:96px;border-radius:4px;overflow:hidden;background:var(--ivory-2);display:none}
@media (min-width:760px){.result .thumb{display:block}}
.result .thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.result .thumb.empty{display:none}
@media (min-width:760px){.result .thumb.empty{display:flex;align-items:center;justify-content:center;color:var(--gold-deep);font-family:var(--font-display);font-size:1.6rem}}
.result h3{font-size:1.12rem;margin:0}
.result h3 a{text-decoration:none}
.result h3 a:hover{text-decoration:underline;text-decoration-color:var(--gold)}
.result .meta{font-size:.85rem;color:var(--muted)}
.result p{margin:0;font-size:.95rem}

/* Item page */
.crumbs{font-size:.88rem;margin:1.5rem 0 1rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.item-head{padding:1rem 0 1.5rem;border-bottom:1px solid var(--line);margin-bottom:2rem}
.item-grid{display:grid;gap:2.5rem}
@media (min-width:960px){.item-grid{grid-template-columns:1.25fr 1fr}}
.facts{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:.55rem 1.25rem;margin:0}
.facts dt{font-weight:700;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep);padding-top:.15rem}
.facts dd{margin:0}
.figure{margin:0 0 1.5rem;background:#FFFDF6;border:1px solid var(--line);border-radius:var(--radius);padding:.75rem;box-shadow:var(--shadow)}
.figure figcaption{font-size:.85rem;color:var(--muted);padding:.6rem .25rem 0}
.notice{border-left:4px solid var(--gold);background:var(--ivory-2);padding:1rem 1.25rem;border-radius:0 var(--radius) var(--radius) 0;margin:0 0 1.5rem}
.notice p:last-child{margin-bottom:0}
.citation{background:#FFFDF6;border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.25rem;font-family:Georgia,serif;font-size:1rem}
.item-grid .btns{margin:0 0 2rem}
.pager{display:flex;justify-content:space-between;gap:1rem;margin:3rem 0 1rem;flex-wrap:wrap}
.todo{border:2px dashed #9A3B00;background:#FFF1DE;color:#5A2500;padding:1rem 1.25rem;border-radius:var(--radius);font-weight:700}

/* Gallery */
.gallery{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}
@media (min-width:760px){.gallery{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.gallery{grid-template-columns:repeat(4,1fr)}}
.tile{margin:0;background:#FFFDF6;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.tile a{text-decoration:none;display:block;color:inherit}
.tile img{aspect-ratio:3/4;object-fit:cover;object-position:top;width:100%}
.tile figcaption{padding:.65rem .8rem .8rem;font-size:.86rem;line-height:1.4}
.tile figcaption b{display:block;font-family:var(--font-display);color:var(--navy);font-size:.98rem}

details.disagree{border-top:1px solid var(--line);padding:.9rem 0}
details.disagree summary{cursor:pointer;font-weight:700;color:var(--navy);min-height:44px;display:flex;align-items:center}
.prose ul{padding-left:1.2rem;max-width:var(--measure)}
.prose li{margin-bottom:.5rem}

/* Footer */
.site-footer{background:var(--navy);color:#E6DDC6;padding:3rem 0 2rem;margin-top:4rem;font-size:.95rem}
.site-footer a{color:var(--ivory)}
.footer-grid{display:grid;gap:2rem}
@media (min-width:800px){.footer-grid{grid-template-columns:auto 1fr 1fr;align-items:start}}
.footer-logo{width:128px;background:var(--ivory);border-radius:10px;padding:8px}
.site-footer h2{color:var(--gold);font-family:var(--font-body);font-size:.8rem;letter-spacing:.2em;text-transform:uppercase}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.4rem}
.fine{font-size:.82rem;color:#C9BFA6;border-top:1px solid rgba(190,155,90,.35);margin-top:2rem;padding-top:1.25rem}
