/* ═══════════════════════════════════════════
   DESIGN TOKENS
   The palette lives here. Every color in the
   site traces back to these four values.
   Change them here, change them everywhere.
   ═══════════════════════════════════════════ */
:root {
    --steel: #6B7280;
    --graphite: #1C1C1E;
    --parchment: #F5F0E8;
    --forest: #1B4332;

    /* Derived values — computed from the palette, not invented */
    --steel-light: #9CA3AF;       /* steel pushed toward parchment */
    --steel-dark: #4B5563;        /* steel pulled toward graphite */
    --forest-light: #2D6A4F;      /* forest at hover — still forest, just breathing */
    --parchment-dark: #E8E0D4;    /* parchment with a shadow on it */

    /* Functional assignments — what does what */
    --color-bg: var(--parchment);
    --color-surface: #FFFFFF;     /* cards, callouts — true white is fine at small scale */
    --color-text: var(--graphite);
    --color-text-soft: var(--steel);
    --color-accent: var(--forest);
    --color-accent-hover: var(--forest-light);
    --color-border: var(--parchment-dark);
    --color-border-strong: var(--steel-light);
}


/* ═══════════════════════════════════════════
   FONT FACES
   ═══════════════════════════════════════════ */
@font-face {
    font-family: 'Abhaya Libre';
    src: url('/assets/fonts/abhaya-libre/AbhayaLibre-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/assets/fonts/abhaya-libre/AbhayaLibre-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/assets/fonts/abhaya-libre/AbhayaLibre-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/assets/fonts/abhaya-libre/AbhayaLibre-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* respect the user's browser setting */
}

body {
    font-family: 'Abhaya Libre', Georgia, "Times New Roman", serif;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    max-width: 48rem; /* ~768px — long lines are hard to read */
    margin: 0 auto;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
}


/* ═══════════════════════════════════════════
   TYPOGRAPHY
   Graphite for headings. Steel for soft contexts.
   Sizes in rem so they scale with user preference.
   ═══════════════════════════════════════════ */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--graphite);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

small,
.text-soft {
    color: var(--color-text-soft);
    font-size: 0.875rem;
}

blockquote {
    border-left: 3px solid var(--steel-light);
    padding-left: 1rem;
    margin: 1.5em 0;
    color: var(--steel-dark);
    font-style: italic;
}


/* ═══════════════════════════════════════════
   LINKS
   Forest green. The accent earns its place here.
   Underlines by default — this is the web, links
   should look like links.
   ═══════════════════════════════════════════ */
a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.15s ease;
}

a:visited {
    color: var(--steel-dark);
}

a:hover,
a:focus {
    color: var(--color-accent-hover);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

nav {
    margin-top: 1rem;
}

nav a {
    margin: 0 0.75rem;
    text-decoration: none;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

main {
    padding: 2rem 0;
}

aside {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    margin: 1.5rem 0;
}

footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-soft);
}


/* ═══════════════════════════════════════════
   IMAGES
   ═══════════════════════════════════════════ */
img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 1.5em 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--color-text-soft);
    margin-top: 0.5em;
}


/* ═══════════════════════════════════════════
   88x31 BUTTONS & BADGES
   The web revival's unit of solidarity.
   ═══════════════════════════════════════════ */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.badges img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}


/* ═══════════════════════════════════════════
   CERTIFICATION / TRUST MARKS
   Forest green used structurally — this is the
   accent doing its real job. A stamp that means
   something. Use sparingly.
   ═══════════════════════════════════════════ */
.mark,
.certified {
    display: inline-block;
    color: var(--forest);
    border: 2px solid var(--forest);
    padding: 0.15em 0.5em;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
    body {
        padding: 0.75rem;
    }

    nav a {
        display: block;
        margin: 0.25rem 0;
    }
}


/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/*
   No prefers-color-scheme override.
   The palette is the palette. Parchment is already
   warm enough to read at night without searing
   anyone's retinas. If you add a dark mode later,
   map it intentionally:
     --color-bg: var(--graphite);
     --color-text: var(--parchment);
     --color-accent: #4ADE80; (forest lightened for dark bg)
   Don't just invert.
*/

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--forest);
    color: var(--parchment);
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}