/* The design system for every page. Page styles load after this one. */

:root {
    --bg-color: #F9F8F6;      /* Linen cream */
    --text-dark: #1C1C1C;     /* Deep charcoal */
    --text-muted: #666666;    /* Slate gray */
    --rule: #E5E5E5;
    --accent: #24402F;        /* Gallery green */
    --danger: #9B1C1C;
    --gutter: clamp(20px, 5vw, 72px);
    --font-serif: "Times New Roman", Times, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "Courier New", Courier, monospace;
}

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

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
}

/* ---------- Header ---------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--rule);
}
.nav-left { display: flex; align-items: center; }
.nav-left img { display: block; height: 40px; }
.nav-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sub {
    display: inline-block;
    padding: 10px 22px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}
.sub:hover { text-decoration: underline; text-underline-offset: 4px; }
.sub-primary { background: var(--accent); color: #fff; }
.sub-primary:hover { background: var(--text-dark); }

/* ---------- Page frame ---------- */
main {
    padding: 0 var(--gutter) clamp(72px, 10vw, 120px);
    text-align: left;
}
.page-header { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-header p { max-width: 40em; margin: 16px 0 0; color: var(--text-muted); }

/* ---------- Type ---------- */
h1, h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.15; }
h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; line-height: 1.25; }
h1 em, h2 em { font-style: italic; font-family: var(--font-serif); }

.caption-muted {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.lab-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Links and buttons ---------- */
main a { color: var(--text-dark); }
.site-btn {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.site-btn:hover { border-color: var(--text-dark); background: var(--text-dark); }
.site-btn-light {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark) !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.site-btn-light:hover { background: var(--text-dark); color: #fff !important; }
.site-link { color: var(--text-dark); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; }
.site-link:hover { color: var(--accent); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* ---------- Footer ---------- */
footer {
    padding: 32px var(--gutter);
    border-top: 1px solid var(--rule);
}
footer .muted {
    display: inline-block;
    margin: 0;
    padding: 4px 16px 4px 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}
footer a { color: var(--text-dark); }

@media (max-width: 720px) {
    header { padding-block: 14px; }
    .nav-right { gap: 2px 4px; font-size: 0.72rem; }
    .sub { padding: 8px 10px; }
}
