/* StringSensei — shared styles
   Design direction: audio-first, accessibility-forward.
   Palette built on deep navy + warm white + a single vibrant
   string-gold accent. Type: system serif for headings (feels
   instrument-like and readable), system sans for body.
   High contrast throughout; all interactive elements have
   visible focus rings; reduced-motion respected.
*/

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --bg:           #0d1117;   /* deep navy-black */
    --surface:      #161b22;   /* slightly lifted surface */
    --border:       #2a3140;   /* subtle divider */
    --accent:       #c9a84c;   /* string gold */
    --accent-dim:   #9a7a2e;
    --text:         #e6edf3;   /* warm white */
    --text-muted:   #8b949e;
    --link:         #79c0ff;   /* accessible blue on dark */

    --font-serif:   Georgia, "Times New Roman", serif;
    --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --measure:      66ch;
    --gap:          2rem;
}

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

/* ── Base ────────────────────────────────────────────────── */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    z-index: 100;
}
.skip-link:focus { top: 0; }

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

/* ── Header ──────────────────────────────────────────────── */
header {
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    text-align: left;
    max-width: var(--measure);
    margin: 0 auto;
    width: 100%;
}

.site-name {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: normal;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.2;
}

.site-name span {
    color: var(--accent);
}

.page-subtitle {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* ── Main ────────────────────────────────────────────────── */
main {
    flex: 1;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    width: 100%;
}

/* ── Sections ────────────────────────────────────────────── */
section {
    margin-bottom: 3rem;
}

section + section {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: normal;
    line-height: 1.25;
    color: var(--text);
}

h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    margin-bottom: 1.1rem;
    color: var(--accent);
}

p {
    max-width: var(--measure);
    margin-bottom: 1rem;
    color: var(--text);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--link);
    text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

/* ── Ordered steps ───────────────────────────────────────── */
ol.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

ol.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

ol.steps li::before {
    content: counter(step);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── Unordered list ──────────────────────────────────────── */
ul.plain {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

ul.plain li {
    padding-left: 1.1rem;
    border-left: 2px solid var(--accent-dim);
    color: var(--text);
}

ul.plain li strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

/* ── Contact block ───────────────────────────────────────── */
.contact-block {
    margin-top: 1.2rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.contact-block p { margin-bottom: 0.4rem; }
.contact-block p:last-child { margin-bottom: 0; }

/* ── Meta line (e.g. "Last updated") ─────────────────────── */
.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

footer nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    html { font-size: 16px; }
    header, main { padding-left: 1rem; padding-right: 1rem; }
}
