/* Stearman Fly-In - modern layout. HTML5 + CSS3 only, no JavaScript. */
:root {
  --ink: #1d2733; --muted: #5b6875; --navy: #12355b; --navy-deep: #0c2540; --sky: #eef3f8;
  --card: #ffffff; --line: #d8e0e9; --link: #0b5cad; --gold: #e3a400; --gold-soft: #fdf3d3; --alert: #b3261e;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 38, 64, .06), 0 4px 14px rgba(16, 38, 64, .07);

}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink);
       font: 1.0625rem/1.65 "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
.wrap { display: block; width: min(100% - 2rem, 66rem); margin-inline: auto; }
img, video { max-width: 100%; height: auto; }
img { border: 0; border-radius: 6px; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--navy); color: #fff; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; 
}

/* ---- Header ---- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { display: grid; grid-template-columns: auto auto; column-gap: .8rem; align-items: center; color: var(--navy); text-decoration: none; }
.brand img { grid-row: span 2; width: auto; height: 3.4rem; border-radius: 0; }
.brand-name { align-self: end; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-place { align-self: start; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .4rem .8rem; border-radius: 999px; color: var(--navy); font-size: .95rem; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.site-nav a:hover { background: var(--gold-soft); }
.site-nav a[aria-current] { background: var(--navy); color: #fff; }
.edition { margin: 0; padding: .45rem 0; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 3px solid var(--gold); }
.edition .dot { opacity: .6; margin-inline: .4rem; }

/* ---- Content ---- */
main { display: flow-root; padding-block: 2rem 3rem; min-height: 50vh; }
.plain main { max-width: 50rem; }
h1, h2, .heading { color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); }
h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .5rem; border-radius: 2px; background: var(--gold); }
.ta-center > h1::after, h1.ta-center::after { margin-inline: auto; }
h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.heading { display: block; margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.alert, .alert a { color: var(--alert); font-weight: 700; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.fl-left { float: left; margin: .25rem 1.1rem .6rem 0; }
.fl-right { float: right; margin: .25rem 0 .6rem 1.1rem; }
.clear { clear: both; }
.nowrap { white-space: nowrap; }
.para { margin: 0 0 1rem; }
.inl { display: contents; }
.fw-bold { font-weight: 700; }
.fs-italic { font-style: italic; }
.td-underline { text-decoration: underline; }
.framed { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
img[usemap] { max-width: none; }
.figure { margin: 0 0 1.25rem; overflow-x: auto; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
map + img, img[usemap] { box-shadow: var(--shadow); border-radius: var(--radius); }

.cards { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.card { text-align: left; display: flow-root; padding: 1.25rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
div.card { margin: 0 0 1.5rem; }
.card.ta-center { text-align: center; }
.card > :last-child { margin-bottom: 0; }
.grid-table h2 { font-size: 1.05rem; margin-bottom: .3rem; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.link-grid a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 3.2rem; padding: .6rem .9rem; text-align: center;
               background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
               color: var(--navy); font-weight: 600; line-height: 1.3; text-decoration: none; transition: transform .15s, border-color .15s; }
.link-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.link-grid .alert a { background: var(--gold-soft); border-color: var(--gold); color: var(--alert); }

.grid-table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; }
.grid-table td, .grid-table th { padding: .6rem .8rem; vertical-align: top; text-align: left; }
.grid-table td.ta-center { text-align: center; }
.grid-table.boxed { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.grid-table.boxed td, .grid-table.boxed th { border: 1px solid var(--line); }

/* ---- Photo galleries ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; list-style: none; margin: 1.25rem 0 2rem; padding: 0; }
.gallery li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #cfd8e3; box-shadow: var(--shadow); }
.gallery a { display: block; width: 100%; height: 100%; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .25s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); }

/* ---- Form, video, sound ---- */
.signup { max-width: 28rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.signup p { margin: 0 0 .8rem; }
.signup label { display: block; margin-bottom: .2rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.signup input:not([type=submit]):not([type=reset]) { max-width: 100%; padding: .5rem .6rem; font: inherit; border: 1px solid #b6c2cf; border-radius: 6px; }
input[type=submit], input[type=reset] { padding: .55rem 1.2rem; font: inherit; font-weight: 600; border: 0; border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer; }
input[type=reset] { background: #e4eaf1; color: var(--navy); }
video { display: block; margin: 1rem 0; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
audio.bgsound { float: right; width: 15rem; max-width: 100%; margin: 0 0 .75rem .75rem; }

/* ---- Footer ---- */
.site-footer { padding: 1.75rem 0; background: var(--navy-deep); color: #c9d5e2; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-nav ul { gap: .3rem 1.2rem; margin-bottom: .9rem; }
.footer-nav a { font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.colophon, .site-footer p { margin: 0; }
.colophon { color: #9fb0c3; }

/* ---- Small screens ---- */
@media (max-width: 44rem) {
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .grid-table, .grid-table tbody, .grid-table tr, .grid-table td, .grid-table th { display: block; width: auto; }
  .grid-table td.empty { display: none; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
  .fl-left, .fl-right { max-width: 45%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-nav, .footer-nav, .skip { display: none; } body { background: #fff; } }
