/* Visual language shared with fotos.lucafchala.com: Inter, near-black surfaces,
   warm gold accent, 10px cards, hairline borders. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
    --bg:            #0a0a0a;
    --surface:       #111111;
    --ctrl-bg:       #111111;
    --border:        #1c1c1c;
    --border-strong: #2e2e2e;
    --text:          #f0ebe5;
    --text-2:        #c8c0b8;
    --muted:         #9a948c;
    --faint:         #555555;
    --accent:        #c0a060;
    --accent-hover:  #d4b070;
    --accent-dim:    #6b5a35;
    --accent-soft:   rgba(192, 160, 96, 0.08);
    --on-accent:     #0a0a0a;
    --topbar-bg:     rgba(10, 10, 10, 0.82);
    /* Status colours, the same AA-checked values status.lucafchala.com uses */
    --up:            #5fb878;
    --degraded:      #d4a03c;
    --down:          #e06666;

    --font:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --radius: 10px;
    --gutter: 20px;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg:            #f0ece8;
    --surface:       #ffffff;
    --ctrl-bg:       #ffffff;
    --border:        #ddd9d4;
    --border-strong: #c9c4be;
    --text:          #1a1715;
    --text-2:        #4a4744;
    --muted:         #5f5852;
    --faint:         #9a9490;
    --accent:        #8a6428;
    --accent-hover:  #a67d38;
    --accent-dim:    #c7a56d;
    --accent-soft:   rgba(138, 100, 40, 0.08);
    --on-accent:     #faf7f3;
    --topbar-bg:     rgba(240, 236, 232, 0.85);
    --up:            #23703d;
    --degraded:      #8a5a0a;
    --down:          #a8282a;
    color-scheme: light;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}
body { min-height: 100dvh; background: var(--bg); overflow-x: hidden; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; }
abbr[title] { text-decoration: none; }

.wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-size: 13px; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }

/* ── Top bar ── */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--topbar-bg);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 26px; height: 26px; display: block; }
.brand .mark-bg { fill: var(--surface); stroke: var(--border-strong); }
.brand .mark-fg { fill: var(--accent); }
.brand-text { font-size: 14px; font-weight: 300; letter-spacing: 0.2em; color: var(--text-2); transition: color 0.15s; }
.brand:hover .brand-text { color: var(--text); }

.controls { display: flex; align-items: center; gap: 6px; }
.ctrl-group { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.ctrl-btn {
    background: none; border: none; color: var(--muted);
    font: 500 12px/1 var(--font); letter-spacing: 0.04em;
    min-width: 34px; height: 30px; padding: 0 8px;
    cursor: pointer; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: color 0.15s, background 0.15s;
}
a.ctrl-btn { text-decoration: none; }
.ctrl-btn:hover { color: var(--text); }
.ctrl-btn[aria-pressed="true"] { color: var(--text); background: var(--border); }
.ctrl-btn svg { width: 16px; height: 16px; display: block; }
.ctrl-btn .icon-sun { display: none; }
[data-theme="light"] .ctrl-btn .icon-sun { display: block; }
[data-theme="light"] .ctrl-btn .icon-moon { display: none; }

.kbd, kbd { font: 500 10.5px/1.4 var(--mono); color: var(--muted); border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 5px; background: var(--bg); }
#btn-search .kbd { display: none; }
html:not(.js) #btn-search { display: none; }

/* ── Hero ── */
.hero { padding: 48px 0 8px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; margin-bottom: 20px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.clock { color: var(--text-2); font-variant-numeric: tabular-nums; }

.name {
    font-size: clamp(44px, 12vw, 72px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.name em { font-style: normal; font-weight: 300; color: var(--accent); }

.roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 20px; }
.roles li { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; background: var(--surface); }
.roles .callsign { color: var(--accent); border-color: var(--accent-dim); }
.callsign { letter-spacing: 0.08em; -webkit-tap-highlight-color: transparent; user-select: none; }

.lede { max-width: 540px; margin-bottom: 28px; color: var(--text-2); font-size: 17px; line-height: 1.65; }

.cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 460px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 10px; border-radius: 8px;
    font: 600 14px/1 var(--font);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ig { background: transparent; color: var(--text); border: 1px solid var(--border-strong); font-weight: 500; }
.btn-ig:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections ── */
.sec-num { font-size: 12px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.sec-lede { color: var(--muted); font-size: 15px; max-width: 580px; }
.sec-lede strong { color: var(--text); font-weight: 500; }

/* Projects */
.projects { margin-top: 56px; }
.proj-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.projects h2, .menu h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.proj-grid { display: grid; gap: 12px; margin-top: 20px; }
.card.proj { padding: 22px; }
.card.proj h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.card.proj p { font-size: 14.5px; color: var(--muted); }
.card.proj p + p { margin-top: 10px; }
.card.proj .pj-problem { color: var(--text-2); }
.card.proj .pj-num { color: var(--text-2); }
.card.proj .pj-num strong { color: var(--accent); font-weight: 600; }
.pj-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; }
.pj-links a { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--accent); text-decoration: none; }
.pj-links a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.ai-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 600px; }

/* Menu rows */
.menu { margin-top: 48px; border-top: 1px solid var(--border); }
.menu-sec { border-bottom: 1px solid var(--border); }
.menu summary { display: flex; align-items: center; gap: 14px; padding: 18px 2px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover h2, .menu details[open] > summary h2 { color: var(--accent); }
.menu h2 { flex-shrink: 0; transition: color 0.15s; }
.sum-hint { margin-left: auto; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.chev::before, .chev::after { content: ''; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1.5px; background: var(--muted); transition: transform 0.2s; }
.chev::after { transform: rotate(90deg); }
.menu details[open] > summary .chev::after { transform: rotate(0); }
.panel { padding: 4px 0 32px; }
.panel > * + * { margin-top: 16px; }

/* ── Cards ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
    position: relative; display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none; color: var(--text);
    transition: border-color 0.2s;
}
a.card:hover, .card.hoverable:hover { border-color: var(--border-strong); }
a.card:hover { border-color: var(--accent-dim); }
.kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.kicker a { color: var(--accent); text-decoration: none; letter-spacing: 0.04em; text-transform: none; font-size: 13px; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

.arr, .arr-ext { color: var(--muted); display: inline-block; transition: color 0.15s, transform 0.2s; }
a:hover > .arr, a:hover .go .arr { color: var(--accent); transform: translateX(3px); }
a:hover > .arr-ext, a:hover .go .arr-ext { color: var(--accent); transform: translate(2px, -2px); }

/* Bio */
.bio-wrapper { max-width: 600px; }
.bio { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.bio strong { color: var(--text); font-weight: 600; }

/* Recent galleries */
.recent { list-style: none; }
.recent li + li { border-top: 1px solid var(--border); }
.recent a { display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.recent a:hover { color: var(--accent); }
.recent time { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 4px; padding: 1px 7px; }

/* Kit */
.kit { list-style: none; }
.kit li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 14.5px; }
.kit li + li { border-top: 1px solid var(--border); }
.kit small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Link rows */
.linklist { list-style: none; }
.linklist li + li { border-top: 1px solid var(--border); }
.linklist a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 4px; text-decoration: none; border-radius: 8px; transition: background 0.15s; }
.linklist a:hover { background: var(--accent-soft); }
.linklist .t { font-size: 15px; font-weight: 500; }
.linklist .d { grid-column: 1; font-size: 13px; color: var(--muted); }
.linklist .go { grid-row: 1 / span 2; grid-column: 2; }

/* QSL card */
.qsl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.qsl-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qsl-top .waves { color: var(--accent); }
.qsl-call { font-size: clamp(40px, 12vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--accent); margin: 14px 0 16px; }
.qsl-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.qsl-grid > div { font-size: 14px; }
.qsl-grid span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qsl-grid .wide { grid-column: 1 / -1; }
.qsl-foot { margin-top: 16px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.qsl-foot b { color: var(--text); font-weight: 500; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.contact-grid .card { padding: 18px; grid-column: span 3; }
.contact-grid .card.full { grid-column: 1 / -1; }
.c-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card .c-value { font-size: 15px; font-weight: 500; color: var(--text); word-break: break-word; }
.email-card .c-value { font-size: clamp(20px, 5.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.email-card .c-value a { text-decoration: none; }
.email-card .c-value a:hover { color: var(--accent); }
.email-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.mini-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: 500 13px/1 var(--font); text-decoration: none; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn svg { width: 14px; height: 14px; }
html:not(.js) .needs-js { display: none; }

.support { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.support .cup { font-size: 22px; line-height: 1; }
.support .t { font-size: 15px; font-weight: 500; }
.support .d { font-size: 13px; color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.socials a:hover { border-color: var(--accent-dim); color: var(--accent); }
.socials .h { color: var(--muted); font-weight: 400; }

.others { margin-top: 4px; }
.others summary { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; cursor: pointer; list-style: none; transition: border-color 0.15s; }
.others summary:hover { border-color: var(--border-strong); }
.others summary::-webkit-details-marker { display: none; }
.others summary::after { content: '+'; color: var(--accent); }
.others[open] summary::after { content: '\2212'; }
.others > * + * { margin-top: 14px; }
.others > .contact-grid { margin-top: 14px; }

/* ── Ecosystem ── */
.eco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.eco a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.2s; }
.eco a:hover { border-color: var(--accent-dim); }
.eco .sub { padding-right: 14px; display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; font-size: 14.5px; margin-bottom: 2px; }
.eco .sub b { font-weight: 600; }
.eco .sub i { font-style: normal; color: var(--muted); font-size: 12px; }
.eco .d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.eco .live { position: absolute; top: 14px; right: 14px; display: flex; }
.eco .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.eco .live[data-status="degraded"] .live-dot { background: var(--degraded); }
.eco .live[data-status="down"] .live-dot { background: var(--down); }
.eco .live:not([data-status="up"]) .live-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px currentColor; }
.eco .live[data-status="degraded"] { color: var(--degraded); }
.eco .live[data-status="down"] { color: var(--down); }

/* ── Verification ── */
.fp-card { padding: 20px; }
.fp { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 2px 1em; font-family: var(--mono); font-size: clamp(12.5px, 3.8vw, 15px); letter-spacing: 0.04em; color: var(--text); line-height: 1.8; margin: 4px 0 12px; }
.fp span:nth-last-child(-n+2) { color: var(--accent); }
.verify-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--accent-dim); padding-left: 12px; }

/* ── Footer ── */
.site-foot { margin-top: 48px; border-top: 1px solid var(--border); padding: 28px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sign { font-size: 18px; font-weight: 300; letter-spacing: 0.2em; color: var(--text-2); }
.sign em { font-style: normal; color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: var(--text); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.shortcuts { display: none; }

/* ── Command palette ── */
.palette { margin: 12vh auto auto; width: min(560px, calc(100vw - 24px)); max-height: min(560px, 76vh); border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text); box-shadow: 0 32px 100px -20px rgba(0, 0, 0, 0.7); padding: 0; overflow: hidden; }
.palette[open] { display: flex; flex-direction: column; }
.palette::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pal-head { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.pal-head svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.pal-input { flex: 1; height: 54px; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 16px var(--font); }
.pal-input::placeholder { color: var(--faint); }
.pal-list { list-style: none; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pal-group { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.pal-item small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.pal-item[aria-selected="true"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.pal-item[aria-selected="true"] small { color: var(--accent); }
.pal-empty { padding: 22px 10px; color: var(--muted); font-size: 14px; text-align: center; }
.pal-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 70; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Focus ── */
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Responsive ── */
@media (min-width: 600px) {
    :root { --gutter: 28px; }
    .hero { padding-top: 72px; }
    .grid-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .eco { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-grid .card:not(.full), .contact-grid .card.wa { grid-column: span 2; }
    #btn-search .kbd { display: inline; }
    .cta { display: flex; flex-wrap: wrap; max-width: none; }
    .btn { padding: 0 22px; }
}
@media (min-width: 720px) {
    .name br { display: none; }
}
/* logo + four control groups need ~398 px: the wordmark goes first */
@media (max-width: 400px) { .brand-text { display: none; } }
@media (max-width: 380px) {
    .contact-grid .card:not(.full) { grid-column: 1 / -1; }
    .recent a { grid-template-columns: 1fr auto; }
    .recent time { grid-column: 1 / -1; }
    .qsl-grid { grid-template-columns: repeat(2, auto); }
}

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Print ── */
@media print {
    :root, [data-theme="light"] { --bg: #fff; --surface: #fff; --text: #000; --text-2: #222; --muted: #444; --accent: #6a4818; --border: #ccc; }
    .topbar, .palette, .toast, .cta, .shortcuts, .needs-js, .skip { display: none !important; }
    .menu-sec { break-inside: avoid; }
    .chev { display: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #666; }
}

/* ── Hidden: radio sweep (hold the callsign) ── */
body.radio-sweep::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: -12%;
    height: 14%;
    background: linear-gradient(180deg, transparent, rgba(192, 160, 96, 0.3), transparent);
    z-index: 58;
    pointer-events: none;
    animation: sweep-down 2.2s ease-in-out;
}
@keyframes sweep-down {
    0%   { top: -14%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── Hidden: Morse flash (five quick taps on the name) ── */
.morse-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 58;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.morse-overlay.visible { opacity: 1; }
.morse-led {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.12;
    box-shadow: 0 0 0 rgba(192, 160, 96, 0);
    transition: opacity 0.06s linear, box-shadow 0.06s linear;
}
.morse-led.on {
    opacity: 1;
    box-shadow: 0 0 20px 5px var(--accent-dim);
}
.morse-caption {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
