/* Antiguan Talk — public site. Colours from the Antigua & Barbuda flag. */
:root {
    --black: #111;
    --red: #ce1126;
    --gold: #fcd116;
    --blue: #0072c6;
    --paper: #fbf8f1;
    --card: #fff;
    --ink: #1c1a17;
    --muted: #6b665d;
    --line: #e6e0d4;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: #00508c; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 0 0 .75rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ Header */
.site-header { background: var(--black); color: #fff; position: relative; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none;
         font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.brand:hover { color: var(--gold); }
.brand .sun { flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--gold); color: #fff; }
.nav-search input { width: 180px; padding: .4rem .75rem; border-radius: 999px; border: 1px solid #444;
                    background: #222; color: #fff; font: inherit; font-size: .9rem; }
.nav-search input::placeholder { color: #aaa; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #555; color: #fff;
              border-radius: 6px; padding: .35rem .8rem; font: inherit; cursor: pointer; }
.flag-stripe { height: 5px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--blue) 66.6%); }

/* ------------------------------------------------------------------ Hero */
.hero { background: var(--black); color: #fff; position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }
.hero::after { /* soft rising sun glow */
    content: ""; position: absolute; left: 50%; bottom: -260px; width: 520px; height: 520px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(252,209,22,.35) 0%, rgba(252,209,22,.08) 45%, transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 18ch; margin: .25rem auto 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin: 0; }
.hero-search { display: flex; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 999px;
               padding: .3rem; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.hero-search input { flex: 1; border: 0; background: transparent; padding: .7rem 1.1rem; font: inherit; font-size: 1.05rem; color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.hero-search button { border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; padding: .65rem 1.4rem; cursor: pointer; }
.hero-search button:hover { background: #a80e1f; }
.hero-count { color: #cfcac0; margin: 1rem 0 0; font-size: .95rem; }

/* ------------------------------------------------------------------ A–Z */
.az { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 2rem 0; }
.az a, .az span { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 8px;
                  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.az a { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.az a:hover { border-color: var(--black); color: var(--ink); }
.az a[aria-current] { background: var(--black); color: var(--gold); border-color: var(--black); }
.az .empty { color: #c9c2b4; }

/* ------------------------------------------------------------------ Home */
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.wotd { border-top: 5px solid var(--red); }
.wotd h2 { font-size: 2.2rem; margin: .3rem 0 0; }
.wotd h2 a { color: var(--ink); text-decoration: none; }
.wotd h2 a:hover { color: var(--red); }
.pos { font-style: italic; color: var(--muted); margin: 0 0 .5rem; }
.def-lg { font-size: 1.2rem; margin: .5rem 0 1rem; }
.recent { border-top: 5px solid var(--blue); }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { color: var(--ink); text-decoration: none; }
.plain-list a:hover { color: var(--red); }
.more { font-weight: 600; text-decoration: none; }
.home-body { margin: 2rem auto; max-width: 760px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
       background: var(--black); color: #fff; border-radius: var(--radius); padding: 1.75rem 2rem; margin: 2.5rem 0 3rem;
       border-left: 8px solid var(--gold); }
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { margin: 0; color: #d8d3c8; max-width: 52ch; }

/* ------------------------------------------------------------------ Buttons */
.btn { display: inline-block; border: 1px solid var(--black); background: #fff; color: var(--ink); border-radius: 999px;
       padding: .6rem 1.3rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--black); color: #fff; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-gold:hover { background: #ffe066; color: var(--black); }

/* ------------------------------------------------------------------ Lists & pages */
.page { padding-top: 2rem; padding-bottom: 3rem; }
.page .az { justify-content: flex-start; margin-top: 0; }
.letter-head { font-size: 2.4rem; display: flex; align-items: baseline; gap: .75rem; border-bottom: 3px solid var(--black); padding-bottom: .3rem; }
.letter-head .small { font-family: var(--sans); font-weight: 400; }
.entry-list { list-style: none; padding: 0; margin: 0; columns: 2 340px; column-gap: 2rem; }
.entry-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.entry-list a { display: block; padding: .75rem 0; color: var(--ink); text-decoration: none; }
.entry-list a:hover .hw { color: var(--red); }
.entry-list .hw { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-right: .4rem; }
.entry-list .var { font-size: .85rem; color: var(--muted); font-style: italic; }
.entry-list .def { display: block; color: #3d3a34; font-size: .95rem; }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.pager { display: flex; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.page-search { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.page-search input { flex: 1; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.center .page-search { max-width: 480px; margin: 1.5rem auto; }

/* ------------------------------------------------------------------ Word page */
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.25rem; border-top: 6px solid var(--red); }
.entry .headword { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0; }
.entry-meta { font-style: italic; color: var(--muted); margin: .25rem 0 .5rem; }
.also { margin: 0 0 1.25rem; }
.also span { font-weight: 600; }
.label { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.5rem 0 .4rem; }
.label-inline { font-weight: 600; color: var(--muted); }
.meaning .def-lg { font-size: 1.35rem; font-family: var(--serif); margin-top: 0; }
.literal { margin: 0; }
.example { margin: .5rem 0 1rem; padding: .75rem 1rem; border-left: 4px solid var(--gold); background: #fffbea; border-radius: 0 8px 8px 0; }
.example p { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.example footer { color: var(--muted); margin-top: .25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; }
.tag { background: #eef4fa; color: #004c86; padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.tag:hover { background: var(--blue); color: #fff; }
.credit { color: var(--muted); font-size: .92rem; margin: 1.25rem 0 0; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.share > span { color: var(--muted); font-size: .9rem; margin-right: .25rem; }
.share-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .9rem; font: inherit;
             font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.copy:hover { background: var(--black); color: #fff; }
.rude summary { cursor: pointer; font-weight: 600; color: var(--red); padding: .5rem 0; }
.suggest { margin: 1.25rem 0; color: var(--muted); }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-family: var(--serif); font-size: 1.1rem; }
.prev-next a { text-decoration: none; }

/* ------------------------------------------------------------------ Prose (page text from the panel) */
.prose h2 { margin-top: 1.75rem; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1rem 0; padding: .25rem 1rem; color: #3d3a34; }
.prose ul, .prose ol { padding-left: 1.3rem; }

/* ------------------------------------------------------------------ Contact form */
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-top: 1.5rem; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 .5rem; min-width: 0; }
.contact-form legend { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: .75rem; padding: 0;
                       border-top: 1px solid var(--line); padding-top: 1.25rem; width: 100%; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: .65rem .8rem; border: 1px solid #d5cebf; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(0,114,198,.35); border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .9rem; margin: .3rem 0 0; }
.help { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.notice { padding: 1rem 1.2rem; border-radius: 8px; margin: 1rem 0; }
.notice.success { background: #e7f5ec; color: #1d5e31; border-left: 5px solid #2e8b57; }
.notice.error { background: #fdecee; color: #8a0c1b; border-left: 5px solid var(--red); }
.credits { padding-left: 1.2rem; }
.credits li { margin-bottom: .75rem; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--black); color: #cfcac0; padding: 2.25rem 0 6rem; margin-top: 2rem; border-top: 5px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.site-footer p { margin: .25rem 0 0; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .small { grid-column: 1 / -1; color: #8f8a80; }

/* ------------------------------------------------------------------ Music player */
.music { position: fixed; left: 1rem; bottom: 1rem; z-index: 20; display: flex; align-items: center; gap: .5rem;
         background: var(--black); color: #fff; border-radius: 999px; padding: .35rem; box-shadow: 0 6px 24px rgba(0,0,0,.3);
         max-width: calc(100vw - 2rem); }
.music[hidden] { display: none; }
.music-btn, .music-next { border: 0; background: var(--gold); color: var(--black); border-radius: 999px; font: inherit;
                          font-weight: 700; font-size: .9rem; padding: .45rem .95rem; cursor: pointer; display: flex; gap: .4rem; align-items: center; }
.music-next { background: #333; color: #fff; padding: .45rem .7rem; }
.music-now { font-size: .82rem; padding-right: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; color: #ddd; }
.music-now:empty { display: none; }
.music.playing .music-icon { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .music.playing .music-icon { animation: none; } }

/* ------------------------------------------------------------------ Small screens */
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 15; flex-direction: column;
                align-items: stretch; gap: 0; background: var(--black); padding: .5rem 1.25rem 1rem; border-bottom: 5px solid var(--gold); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .75rem 0; border-bottom: 1px solid #2a2a2a; }
    .nav-search { margin-top: .75rem; }
    .nav-search input { width: 100%; }
    .home-grid, .row { grid-template-columns: 1fr; }
    .entry { padding: 1.5rem 1.25rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .cta { padding: 1.5rem; }
}

/* ------------------------------------------------------------------ Refinements */
.music-next[hidden] { display: none; }
.home-grid { align-items: start; }
.az { gap: .25rem; }
.az a, .az span { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
@media (max-width: 820px) {
    /* Compact round music button on phones so it doesn't cover the text */
    .music { left: auto; right: .75rem; bottom: .75rem; padding: .25rem; }
    .music-btn { width: 2.9rem; height: 2.9rem; padding: 0; justify-content: center; font-size: 1.05rem; }
    .music-label, .music-now { display: none; }
    .music-next { height: 2.9rem; }
    .share { padding-right: 3.5rem; }
}
/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
