/* shared site shell */
:root {
    --bg: #f5f0eb;
    --fg: #1a1a18;
    --muted: #7a7168;
    --accent: #d4450b;
    --dark: #111110;
    --card: rgba(255,255,255,0.72);
    --border: rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: rgba(212, 69, 11, 0.14); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 18px;
    background: rgba(245,240,235,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand-name { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }
.nav-cta,
.nav-links a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    background: #111110;
    color: #fff;
    border: 1px solid rgba(17,17,16,0.04);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(17,17,16,0.12);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s, background 0.2s, color 0.2s;
}
.nav-cta:hover,
.nav-links a.nav-cta:hover {
    transform: translateY(-1px);
    background: #0c0c0b;
    box-shadow: 0 10px 20px rgba(17,17,16,0.14);
    color: #fff;
}
.nav-cta:visited,
.nav-links a.nav-cta:visited { color: #fff; }
.nav-cta:focus-visible {
    outline: 2px solid rgba(212,69,11,0.45);
    outline-offset: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: none;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark strong { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.brand-wordmark span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-wordmark .footer-made {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(26,26,24,0.72);
    margin-top: 8px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

@media (max-width: 900px) {
    nav .container { align-items: flex-start; }
    .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 62%;
    }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    nav { padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 14px; }
    nav .container { align-items: center; }
    .brand { gap: 10px; }
    .brand img { width: 32px; height: 32px; }
    .brand-name { font-size: 0.86rem; }
    .nav-links {
        max-width: none;
        gap: 0;
        margin-left: auto;
    }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-cta,
    .nav-links a.nav-cta,
    .nav-links a.nav-cta:visited,
    .nav-links a.nav-cta:hover,
    .nav-links a.nav-cta:active {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0;
        box-shadow: 0 6px 14px rgba(17,17,16,0.12);
        color: #fff;
    }
    footer { padding: 28px 0 34px; }
    .footer-inner { align-items: flex-start; }
    .footer-links { gap: 14px 18px; }
}
