@font-face{font-family:"Anton";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/Anton-400.woff2) format("woff2")}
@font-face{font-family:"DM Serif Text";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/DMSerifText-400.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/Montserrat-400.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:600;font-style:normal;font-display:swap;src:url(fonts/Montserrat-600.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:700;font-style:normal;font-display:swap;src:url(fonts/Montserrat-700.woff2) format("woff2")}
/* Maquoketa Ag Education & FFA -- National FFA brand palette.
   FFA Blue #004C97, FFA Yellow #F2CE1B, Corduroy (screen) #16274A, neutrals.
   Anton: titles only. Montserrat: headings and body. DM Serif Text: quotes/ledes. */
:root {
  --blue: #004C97;
  --yellow: #F2CE1B;
  --corduroy: #16274A;
  --wheat: #F1DCAA;
  --sand: #D7D4C2;
  --text: #1F1F1F;
  --muted: #4D4D4D;
  --line: #BFBFBF;
  --bg: #FFFFFF;
  --tint: #F4F1E6;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 "Montserrat", system-ui, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--corduroy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--corduroy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow);
  color: var(--corduroy); font-weight: 700; padding: 12px 20px; }
.skip:focus { left: 0; }

/* header */
.masthead { background: var(--corduroy); color: #fff; border-bottom: 6px solid var(--yellow); }
.masthead-inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 18px; }
.masthead img.lettermark { width: 96px; height: auto; flex: none; padding-right: 18px; border-right: 2px solid var(--yellow); box-sizing: content-box; }
.masthead a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 18px; }
.site-name { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; display: block; }
.site-sub { display: block; color: var(--yellow); font-weight: 600; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; margin-top: 4px; }

/* navigation (no JavaScript: <details> gives the "More pages" menu) */
.nav { background: var(--blue); position: sticky; top: 0; z-index: 20; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 8px; display: flex; flex-wrap: wrap; align-items: stretch; }
.nav a, .nav summary { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 14px 12px; min-height: 48px; display: flex; align-items: center; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: "\25BE"; margin-left: 6px; }
.nav a:hover, .nav summary:hover { background: var(--corduroy); color: #fff; text-decoration: underline; }
.nav :focus-visible { outline-color: #fff; box-shadow: none; outline-offset: -4px; }
.more { position: relative; }
.more[open] summary { background: var(--corduroy); }
.more-list { position: absolute; right: 0; top: 100%; min-width: 230px; background: var(--corduroy);
  display: flex; flex-direction: column; border-top: 3px solid var(--yellow); }
.more-list a { border-bottom: 1px solid rgba(255,255,255,.15); }
.nav-inner > .more { margin-left: auto; }

/* layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.page { padding-top: 40px; min-height: 60vh; }
.page-title, h1 { font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  color: var(--blue); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0 0 8px; letter-spacing: .005em; }
.lede { font-family: "DM Serif Text", Georgia, serif; font-size: 1.3rem; line-height: 1.45; color: var(--muted);
  max-width: 44ch; margin: 0 0 28px; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 36px 0 12px; color: var(--corduroy); font-weight: 700; }
h3 { font-size: 1.1rem; margin: 26px 0 8px; color: var(--corduroy); font-weight: 700; }
h4 { font-size: 1rem; margin: 0 0 4px; font-weight: 700; color: var(--corduroy); }
p, ul, ol { max-width: 68ch; margin: 0 0 16px; }
li { margin-bottom: 6px; }
.back { font-size: .9rem; margin-top: 28px; }

/* simple blocks */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.item { border: 1px solid var(--line); padding: 16px 18px; background: #fff; }
.item p:last-child { margin-bottom: 0; }
.callout { background: var(--tint); border-left: 6px solid var(--yellow); padding: 14px 18px; max-width: 68ch; margin: 0 0 20px; }
.callout p:last-child { margin: 0; }
.quote { font-family: "DM Serif Text", Georgia, serif; font-size: 1.2rem; border-left: 6px solid var(--blue); padding-left: 16px; max-width: 60ch; }

figure { margin: 0 0 20px; }
figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.hero { margin: 0 0 24px; }
.hero img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 35%; }
.photo-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.photo-row img, .gallery img { width: 100%; }
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }

/* officers */
.officer { border: 1px solid var(--line); background: #fff; }
.officer img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.officer div { padding: 12px 16px 14px; }
.officer .role { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.officer .name { font-size: 1.2rem; font-weight: 700; color: var(--corduroy); }
.officer p { font-size: .95rem; color: var(--muted); margin: 2px 0 0; }

/* contact + directory */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; max-width: 640px;
  border: 2px solid var(--blue); padding: 18px 22px; margin: 0 0 20px; }
.contact dt { font-weight: 700; color: var(--corduroy); }
.contact dd { margin: 0; }
.directory { list-style: none; padding: 0; max-width: none; display: grid; gap: 0 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.directory li { border-bottom: 1px solid var(--line); margin: 0; padding: 10px 0; }
.directory a { font-weight: 700; }
.directory span { display: block; font-size: .92rem; color: var(--muted); }

/* tables */
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
caption { text-align: left; font-weight: 700; color: var(--corduroy); padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--corduroy); color: #fff; font-size: .9rem; }
tbody th { font-weight: 600; }
tr.past td, tr.past th { color: var(--muted); }

.timeline { list-style: none; padding: 0; max-width: 72ch; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.timeline .yr { font-weight: 700; color: var(--blue); }

.calendar-frame { width: 100%; height: 640px; border: 2px solid var(--blue); background: #fff; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 20px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--blue); }
.btn:hover { background: #fff; color: var(--blue); }

footer { background: var(--corduroy); color: #fff; border-top: 6px solid var(--yellow); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 32px 20px 12px; display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
footer h2 { color: var(--yellow); font-size: 1rem; margin: 0 0 8px; }
footer a { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer p, footer li { font-size: .95rem; }
.legal { max-width: 1100px; margin: 0 auto; padding: 12px 20px 28px; font-size: .85rem; color: #E3E8F2;
  border-top: 1px solid rgba(255,255,255,.25); }

@media (max-width: 640px) {
  .masthead img.lettermark { width: 64px; padding-right: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .contact { grid-template-columns: 1fr; }
  .nav a, .nav summary { padding: 12px 10px; }
  .more-list { position: static; width: 100%; }
  .more { width: 100%; margin-left: 0 !important; }
  .calendar-frame { height: 520px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .nav, .skip, .calendar-frame { display: none; } }

/* events */
.event { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.event:has(> div:only-child) { grid-template-columns: 1fr; }
.event figure { margin: 0; }
.event h3 { margin: 0 0 4px; font-size: 1.2rem; }
.event .when { font-weight: 600; color: var(--blue); margin-bottom: 8px; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: 12px; } }
.officer figure { margin: 0; }

.nav a[aria-current="page"], .nav summary.current { background: var(--corduroy); box-shadow: inset 0 -4px 0 var(--yellow); }
.contact + p, .back { margin-top: 20px; }

/* layout fixes from browser testing */
.photo-row { grid-template-columns: repeat(auto-fit, minmax(240px, 360px)); }
@media (max-width: 640px) {
  .nav { position: static; }
  table { min-width: 0; font-size: .95rem; }
  th, td { padding: 8px 8px; }
  .photo-row { grid-template-columns: 1fr; }
}
figure.photo-row { display: block; max-width: 360px; }
.officer figure.photo-row { max-width: none; }
.gallery.large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.item + figure { margin-top: 16px; }

.error-code { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--corduroy); margin: 0 0 8px; }

.logo-links { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; margin: 0 0 20px; }
.logo-links a { display: block; padding: 6px 0; }
.logo-links img { height: 44px; width: auto; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.officer .bio { font-size: .95rem; color: var(--text); margin-top: 8px; }
/* gallery + no-JavaScript lightbox (:target) */
.gallery-grid { list-style: none; padding: 0; max-width: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid li { margin: 0; }
.gallery-grid a { display: block; text-decoration: none; color: var(--corduroy); border: 1px solid var(--line); background: #fff; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid span { display: block; padding: 8px 10px; font-size: .9rem; font-weight: 600; }
.gallery-grid a:hover span { text-decoration: underline; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(15, 25, 50, .96); padding: 16px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox:target { display: flex; }
.lightbox .lb-bar { max-width: none; margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; color: #fff; }
.lightbox .btn { background: #fff; color: var(--blue); border-color: #fff; padding: 10px 18px; }
.lightbox .btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--corduroy); }
.lightbox figure { margin: 0; max-height: calc(100vh - 110px); text-align: center; color: #fff; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; font-size: 1rem; }
