/* ==========================================================================
   ASUKA.MD — retro-hybrid shrine stylesheet
   Dark, refined, late-90s fan-site soul with modern typography.
   No external assets, no JavaScript.
   ========================================================================== */

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

:root {
    --red: #cc2936;
    --red-dim: #8e1c25;
    --red-tint: #1a0d0f;
    --bg: #0a0a0a;
    --bg-panel: #141414;
    --bg-panel-alt: #1a1a1a;
    --text: #e8e8e8;
    --muted: #9a9a9a;
    --faint: #666;
    --border: #333;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Base typography & links
   -------------------------------------------------------------------------- */

a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px dotted var(--red-dim);
}

a:hover,
a:focus-visible {
    color: #fff;
    background: var(--red);
    border-bottom-color: var(--red);
}

p {
    margin: 0 0 1em;
}

p.lede {
    font-size: 1.1em;
    color: #cfcfcf;
    margin-bottom: 1.25em;
}

strong {
    color: #fff;
}

em {
    color: #f0f0f0;
}

ul, ol {
    margin: 0 0 1em 1.5em;
}

li {
    margin-bottom: 0.35em;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.site-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 28px;
    /* subtle double rule under the header */
    border-bottom: 3px double var(--red-dim);
}

.site-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--red);
    margin-bottom: 12px;
}

.site-title {
    font-family: var(--serif);
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 6px;
}

.site-title a {
    color: #fff;
    border-bottom: none;
}

.site-title a:hover,
.site-title a:focus-visible {
    color: var(--red);
    background: none;
}

.site-tagline {
    color: var(--muted);
    font-size: 15px;
    font-style: italic;
    margin-bottom: 20px;
}

.site-nav {
    font-family: var(--mono);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15em;
}

.site-nav a {
    padding: 2px 6px;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* '·' separators between nav links, no characters needed in the HTML */
.site-nav a + a::before {
    content: '·';
    color: var(--faint);
    margin-right: 0.9em;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */

main section {
    margin: 44px 0;
}

h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

h2::before {
    content: '» ';
    color: var(--red);
}

h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 1.5em 0 0.6em;
}

hr.divider {
    border: none;
    border-top: 1px dotted var(--border);
    margin: 48px 0;
}

/* --------------------------------------------------------------------------
   Profile card (databook stats)
   -------------------------------------------------------------------------- */

dl.profile-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 8px 20px;
    margin: 0 0 1.5em;
}

dl.profile-card > div {
    display: flex;
    gap: 1em;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border);
}

dl.profile-card > div:last-child {
    border-bottom: none;
}

dl.profile-card dt {
    flex: 0 0 38%;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-top: 3px;
}

dl.profile-card dd {
    flex: 1;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Quote blocks
   -------------------------------------------------------------------------- */

blockquote.quote-block {
    margin: 1.75em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--red);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.6;
    color: #f5f5f5;
}

blockquote.quote-block p {
    margin-bottom: 0.5em;
}

blockquote.quote-block p:last-child {
    margin-bottom: 0;
}

cite.quote-src {
    display: block;
    font-style: normal;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-top: 10px;
}

p.quote-jp {
    font-family: var(--serif);
    font-style: normal;
    font-size: 1.25em;
    color: #fff;
}

p.quote-en {
    font-style: italic;
    font-size: 0.85em;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Retro box (warnings / notes)
   -------------------------------------------------------------------------- */

.retro-box {
    border: 1px dashed var(--red-dim);
    background: var(--red-tint);
    padding: 16px 20px;
    margin: 1.5em 0;
    font-size: 14px;
}

.retro-box p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Ad slots — empty placeholders should look intentional
   -------------------------------------------------------------------------- */

.ad-slot {
    border: 1px dashed var(--border);
    min-height: 100px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot::before {
    content: 'Advertisement';
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   Soul banner (homepage)
   -------------------------------------------------------------------------- */

.soul-banner {
    border-left: 5px solid var(--red);
    background: var(--bg-panel-alt);
    padding: 24px 28px;
    margin: 44px 0;
}

.soul-banner p:last-child {
    margin-bottom: 0;
}

.soul-banner a {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Shrine grid (page links)
   -------------------------------------------------------------------------- */

.shrine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1.5em 0;
}

a.shrine-cell {
    display: block;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    padding: 16px 18px;
    transition: border-color 120ms ease, background 120ms ease;
}

a.shrine-cell:hover,
a.shrine-cell:focus-visible {
    border-color: var(--red);
    background: var(--red-tint);
}

.shrine-cell-title {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.shrine-cell-desc {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   88×31 retro buttons
   -------------------------------------------------------------------------- */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5em 0;
}

a.btn-88x31 {
    display: inline-block;
    width: 88px;
    height: 31px;
    line-height: 29px; /* 31px minus 2×1px border */
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    /* chunky retro bevel feel */
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    white-space: nowrap;
}

a.btn-88x31:hover,
a.btn-88x31:focus-visible {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Merch grid (affiliate-ready)
   -------------------------------------------------------------------------- */

.merch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1.5em 0;
}

.merch-cell {
    border: 1px solid var(--border);
    background: var(--bg-panel);
    padding: 16px 18px;
}

.merch-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    color: #fff;
    margin-bottom: 6px;
}

.merch-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 10px;
}

a.merch-link {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--red);
}

p.affiliate-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 1em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 3px double var(--red-dim);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.site-footer p {
    margin-bottom: 0.5em;
}

p.last-updated {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */

figure.shrine-figure {
    margin: 1.5em 0;
    border: 1px solid var(--border);
    padding: 6px;
    background: #111;
}

figure.shrine-figure img {
    display: block;
    width: 100%;
    height: auto;
}

figure.shrine-figure figcaption {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--faint);
    padding-top: 6px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
    body {
        padding: 32px 18px 64px;
    }

    .shrine-grid,
    .merch-grid {
        grid-template-columns: 1fr;
    }

    dl.profile-card > div {
        flex-direction: column;
        gap: 2px;
    }

    dl.profile-card dt {
        flex: none;
    }

    blockquote.quote-block {
        font-size: 1.1em;
        padding-left: 16px;
    }
}
