@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400;1,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ─────────────────────────────────────────────
   Tokens (kept in sync with style.css)
───────────────────────────────────────────── */

:root {
    --bg:         #FDFAF5;
    --bg-alt:     #F2EAD9;
    --bg-dark:    #19110A;
    --ink:        #19110A;
    --ink-2:      #7C6C56;
    --ink-3:      #B5A490;
    --amber:      #C97208;
    --amber-pale: #FEF2D5;
    --surface:    #EBE2D2;
    --r-card:     20px;
    --r-pill:     100px;
}

/* ─────────────────────────────────────────────
   Reset
───────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ─────────────────────────────────────────────
   Nav
───────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 56px;
    background: rgba(253, 250, 245, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(25, 17, 10, 0.07);
}

.nav-logo-link { display: block; line-height: 0; }

.nav-logo { height: 20px; }

.nav-cta {
    font-size: 15px;
    font-weight: 600;
    color: var(--bg);
    background: var(--ink);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: var(--r-pill);
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
    background: #3A2820;
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   Page content wrapper
───────────────────────────────────────────── */

.page-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 72px 32px 100px;
}

/* ─────────────────────────────────────────────
   Content typography
───────────────────────────────────────────── */

.page-wrap h1 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-meta {
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: 48px;
}

.page-wrap h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 44px;
    margin-bottom: 12px;
}

.page-wrap h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 8px;
}

.page-wrap p {
    color: var(--ink-2);
    margin-bottom: 16px;
}

.page-wrap ul, .page-wrap ol {
    padding-left: 24px;
    color: var(--ink-2);
    margin-bottom: 16px;
}

.page-wrap li { margin-bottom: 6px; }

.page-wrap a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 114, 8, 0.3);
    transition: border-color 0.2s;
}

.page-wrap a:hover { border-color: var(--amber); }

.page-wrap strong { color: var(--ink); font-weight: 600; }

.page-wrap hr {
    border: none;
    border-top: 1px solid var(--surface);
    margin: 36px 0;
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 36px 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 36px;
}

.footer-nav a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    border: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.22);
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav { padding: 16px 28px; }
    .page-wrap { padding: 56px 28px 80px; }
    .footer { padding: 32px 28px 36px; }
}

@media (max-width: 480px) {
    .nav { padding: 14px 20px; }
    .nav-logo { height: 17px; }
    .nav-cta { font-size: 14px; padding: 9px 18px; }
    .page-wrap { padding: 40px 20px 64px; }
    .footer { padding: 28px 20px 32px; }
    .footer-nav { gap: 6px 20px; }
}
