/* Aubie's Corner — mobile-first stylesheet */
:root {
  --navy: #03244D;
  --navy-2: #0B3A70;
  --orange: #E86100;
  --orange-2: #C45200;
  --cream: #FBF7F1;
  --white: #fff;
  --ink: #1B2230;
  --muted: #5B6575;
  --line: #E4DED4;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(3, 36, 77, .10);
  --head: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.3rem; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--orange); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 4px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.brand:hover { color: #fff; }
.brand b { color: var(--orange); font-weight: 700; }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 4px solid var(--orange); padding: 8px 16px 16px; }
.site-nav.open { display: block; }
.site-nav a { display: block; padding: 12px 4px; color: #fff; text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--orange); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; padding: 0; border: 0; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 6px; }
  .site-nav a[aria-current="page"] { background: rgba(232, 97, 0, .15); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-platform { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: var(--shadow); }
.btn-platform:hover { border-color: var(--orange); color: var(--navy); }
.platform-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 80% 20%, var(--navy-2), var(--navy) 60%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; text-transform: uppercase; }
.hero h1 span { color: var(--orange); display: block; }
.eyebrow { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--orange); margin-bottom: 12px; }
.lede { font-size: 1.2rem; max-width: 36em; }
.hero .lede { color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-mark { display: none; justify-self: center; width: 240px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, transparent 14px 28px); opacity: .9; }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.4fr 1fr; padding-top: 80px; padding-bottom: 104px; }
  .hero-mark { display: block; width: 280px; }
}

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.more { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; text-decoration: none; }
.page-head { background: var(--navy); color: #fff; padding: 40px 0 36px; border-bottom: 6px solid var(--orange); }
.page-head h1 { color: #fff; text-transform: uppercase; }
.page-head .lede { color: rgba(255,255,255,.85); margin: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.empty { text-align: center; }
.empty h3 { margin-bottom: .3em; }
.empty .platform-buttons { justify-content: center; }
.meta { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4em; font-weight: 600; }
.season-title { margin: 8px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--orange); display: inline-block; }
.season-title ~ .season-title { margin-top: 40px; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio { width: 100%; margin-bottom: 20px; }
.latest { display: grid; gap: 8px; }
@media (min-width: 900px) { .latest { grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; } }

/* Episode cards */
.grid-episodes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ep-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ep-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .ep-thumb-fallback { object-fit: contain; padding: 18%; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(232,97,0,.92); color: #fff; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; transition: transform .15s; }
.ep-card:hover .play { transform: scale(1.08); }
.ep-body { padding: 16px 18px 18px; }
.ep-body p:last-child { margin-bottom: 0; }

/* Photos + lightbox */
.grid-photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 16px; }
@media (min-width: 700px) { .grid-photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }
.grid-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--line); }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.grid-photos a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 20, 40, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* About */
.prose h2 { margin-top: 1.4em; }
.host { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.host img { width: 96px; height: 96px; border-radius: 50%; }
.host > div { flex: 1 1 220px; }
.host p { margin: 0; }

/* CTA */
.cta { background: var(--orange); color: #fff; }
.cta h2 { color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta p { margin: 0; }
.cta .btn-primary { background: var(--navy); }
.cta .btn-primary:hover { background: #000; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #CFC7BA; border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(232,97,0,.35); border-color: var(--orange); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice.ok { background: #E7F5EC; border: 1px solid #9FD3B1; color: #14532D; }
.notice.err { background: #FDECEA; border: 1px solid #F3B0A8; color: #7F1D1D; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 36px 0 20px; border-top: 6px solid var(--orange); }
.site-footer .muted { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 30em; margin-top: 10px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.platforms { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.platforms a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.platforms a:hover { background: var(--orange); color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: .85rem; }

/* Admin */
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-bar nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.admin-bar nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.admin-flash { margin-top: 16px; margin-bottom: 0; }
.admin-narrow { max-width: 460px; }
.admin-mid { max-width: 820px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-2); cursor: pointer; text-decoration: underline; }
.linklike.danger, .danger { color: #B91C1C; }
.btn-small { padding: 7px 14px; font-size: .85rem; background: var(--navy); color: #fff; }
.btn-small:hover { background: var(--navy-2); color: #fff; }
.btn-small.btn-primary { background: var(--orange); }
.btn-plain { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-plain:hover { background: var(--cream); color: var(--navy); }
.btn-danger { background: #B91C1C; color: #fff; }
.btn-danger:hover { background: #7F1D1D; color: #fff; }
.admin-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 20px 0; }
.tile { display: grid; gap: 4px; text-decoration: none; color: var(--navy); padding: 20px; }
.tile b { font-family: var(--head); font-size: 1.3rem; }
.tile span { color: var(--muted); font-size: .95rem; }
.tile:hover { border-color: var(--orange); color: var(--navy); }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 12px; flex-wrap: wrap; }
.admin-row img { width: 120px; border-radius: 6px; }
.grow { flex: 1 1 200px; min-width: 0; }
.admin-row .meta { margin: 0; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.pill { display: inline-block; background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; margin-left: 6px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.form select { font: inherit; padding: 12px 14px; border: 1px solid #CFC7BA; border-radius: 8px; background: #fff; width: 100%; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form .check input { width: auto; }
.form details summary { cursor: pointer; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.form details label { margin-bottom: 14px; }
.form.compact { gap: 8px; }
.form.compact label { font-size: .85rem; gap: 2px; }
.form.compact input { padding: 7px 9px; }
.danger-zone { margin-top: 20px; }
.upload-form { margin-bottom: 32px; }
.admin-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.admin-photo { padding: 12px; display: grid; gap: 10px; }
.admin-photo img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }
.link-form { margin-top: 16px; }
.link-form h3 { margin: 0; }
.link-delete { margin: 6px 0 0 4px; font-size: .9rem; }
.message { margin-bottom: 12px; }
.message.unread { border-left: 5px solid var(--orange); }
.message h3 { margin-bottom: .3em; }
.message h3 a { font-family: var(--body); font-size: .9rem; font-weight: 400; margin-left: 6px; }
.message-body { white-space: normal; overflow-wrap: anywhere; }

/* Social links */
.site-nav .nav-social { display: flex; gap: 6px; padding-top: 12px; }
.site-nav .nav-social a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); }
.site-nav .nav-social a:hover { background: var(--orange); color: #fff; }
@media (min-width: 820px) {
  .site-nav { align-items: center; }
  .site-nav .nav-social { padding: 0 0 0 10px; margin-left: 6px; border-left: 1px solid rgba(255,255,255,.2); gap: 2px; }
  .site-nav .nav-social a { width: 34px; height: 34px; background: none; }
  .site-nav .nav-social .icon { width: 1.1em; height: 1.1em; }
}
.social-follow { margin-top: 32px; }
.social-follow h2 { font-size: 1.4rem; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; }
.social-list a:hover { background: var(--orange); color: #fff; }
.admin-group { margin-top: 36px; }
.admin-group h2 { margin-bottom: 4px; }

/* Feedback panel */
.fb-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 .95rem var(--body); box-shadow: 0 6px 20px rgba(3,36,77,.3); cursor: pointer; }
.fb-fab:hover { background: var(--orange); }
@media (max-width: 600px) { .fb-fab { padding: 12px; } .fb-fab-label { display: none; } }
.fb-open .fb-fab { display: none; }
.fb-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(3,20,40,.45); }
.fb-overlay[hidden], .fb-panel[hidden] { display: none; }
.fb-panel { position: fixed; z-index: 160; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); box-shadow: -8px 0 30px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.fb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--navy); border-bottom: 4px solid var(--orange); }
.fb-head h2 { color: #fff; margin: 0; font-size: 1.4rem; }
.fb-close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.fb-body { padding: 16px; overflow-y: auto; flex: 1; }
.fb-choose { display: grid; gap: 12px; }
.fb-choose p { margin: 0; }
.fb-choice { text-align: left; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.fb-choice:hover, .fb-choice:focus-visible { border-color: var(--orange); }
.fb-choice b { font-family: var(--head); font-size: 1.15rem; color: var(--navy); font-weight: 500; }
.fb-choice span { color: var(--muted); font-size: .92rem; }
.fb-board-link { font-weight: 600; }
.fb-form { gap: 14px; }
.fb-back { justify-self: start; }
.fb-severity { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.fb-severity[hidden], .fb-context-details[hidden] { display: none; }
.fb-severity legend { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.fb-severity .check { font-weight: 400; color: var(--ink); }
.fb-context { font-size: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.fb-similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fb-similar p { margin: 0 0 6px; }
.fb-done { text-align: center; padding-top: 24px; }
.fb-error { margin: 0; }
.footer-link { color: rgba(255,255,255,.75); font-size: inherit; }
.footer-link:hover { color: #fff; }
.fb-sort { display: flex; gap: 4px; }
.fb-sort a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.fb-sort a[aria-current="page"] { background: var(--navy); color: #fff; }
.fb-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; padding: 18px; }
.fb-item h3 { margin-bottom: .25em; }
.fb-item .meta { margin: 0; }
.fb-vote { display: grid; justify-items: center; min-width: 56px; padding: 8px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; font: inherit; }
.fb-vote:hover { border-color: var(--orange); }
.fb-vote.voted { border-color: var(--orange); background: rgba(232,97,0,.08); color: var(--orange-2); cursor: default; }
.fb-vote b { font-size: 1.15rem; }

/* Home hero photo */
.hero-photo { margin: 8px auto 0; position: relative; width: min(340px, 88%); justify-self: center; transform: rotate(2deg); }
.hero-photo img { width: 100%; aspect-ratio: 726 / 873; object-fit: cover; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.hero-photo figcaption { position: absolute; left: -10px; bottom: 18px; background: var(--orange); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.hero-photo figcaption b { font-weight: 700; }
@media (min-width: 820px) { .hero-photo { width: 360px; margin: 0; } }
