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

:root {
    --black: #111111;
    --dark: #222222;
    --mid: #555555;
    --light: #999999;
    --rule: #e0e0e0;
    --bg: #f9f9f7;
    --white: #ffffff;
    --accent-bg: #f4f4f0;
    --quick-bg: #111111;
    --ad-bg: #f0f0ec;
    --max: 700px;
    --font-serif: 'Georgia', 'Times New Roman', Times, serif;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--dark);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ===== NAVBAR ===== */
nav {
    background: var(--black);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: -0.01em;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #aaaaaa;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1;
}

.nav-links a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* ===== LAYOUT ===== */
main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ===== ARTICLE HEADER ===== */
.article-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: normal;
    color: var(--black);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--light);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
}

.article-meta .author {
    color: var(--mid);
    font-weight: 500;
}

.meta-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--rule);
    border-radius: 50%;
    vertical-align: middle;
}

/* ===== FEATURED IMAGE ===== */
.featured-image-wrap {
    margin-bottom: 2rem;
    position: relative;
}

.featured-image-wrap figure {
    margin: 0;
}

.featured-image-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #d0cfc8;
}

.featured-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e8e8e2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-image-placeholder svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

figcaption {
    font-size: 0.72rem;
    color: var(--light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== QUICK ANSWER BOX ===== */
.quick-answer {
    background: var(--quick-bg);
    color: var(--white);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.quick-answer .qa-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quick-answer .qa-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.3;
    color: var(--white);
}

.quick-answer .qa-sub {
    font-size: 0.82rem;
    color: #bbbbbb;
    margin-top: 0.5rem;
}

/* ===== INTRO ===== */
.intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* ===== AD PLACEHOLDER ===== */
.ad-placeholder {
    background: var(--ad-bg);
    border: 1px dashed #cccccc;
    text-align: center;
    padding: 1.75rem 1rem;
    margin: 2.5rem 0;
    color: var(--light);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== SECTION HEADINGS ===== */
h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--black);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h2:first-of-type {
    margin-top: 1rem;
}

h3 {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    margin: 1.75rem 0 0.6rem;
}

p {
    margin-bottom: 1rem;
}

ul,
ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ===== RULING LINES ===== */
.section-rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.5rem 0;
}

/* ===== PRICING TABLE ===== */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead tr {
    border-bottom: 2px solid var(--black);
}

thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--black);
}

tbody tr {
    border-bottom: 1px solid var(--rule);
}

tbody tr:last-child {
    border-bottom: 2px solid var(--black);
}

tbody td {
    padding: 0.7rem 0.75rem;
    color: var(--dark);
    vertical-align: top;
}

tbody td:first-child {
    font-weight: 500;
}

tbody tr:nth-child(even) td {
    background: #f5f5f1;
}

/* ===== CALLOUT BOX ===== */
.callout {
    border-left: 3px solid var(--black);
    padding: 1rem 1.25rem;
    background: var(--accent-bg);
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.callout strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== INTERNAL LINKS ===== */
.internal-links {
    background: var(--accent-bg);
    border-top: 2px solid var(--black);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}

.internal-links .il-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.internal-links li {
    border-bottom: 1px solid var(--rule);
    margin: 0;
}

.internal-links li:last-child {
    border-bottom: none;
}

.internal-links a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-serif);
}

.internal-links a:hover {
    color: var(--mid);
}

.internal-links a::before {
    content: '→ ';
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--light);
}

/* ===== FAQ ===== */
.faq-item {
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--rule);
}

.faq-q {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 0.6rem;
    font-weight: normal;
    line-height: 1.4;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.65;
    margin: 0;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    margin-top: 4rem;
    padding: 2.5rem 1.5rem 2rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.78rem;
    color: #666;
    max-width: 240px;
    line-height: 1.5;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copy {
    font-size: 0.72rem;
    color: #555;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: 0.72rem;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.footer-links a:hover {
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    main {
        padding: 2rem 1rem 4rem;
    }

    /* Show hamburger, hide normal links */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        align-items: stretch;
        height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 99;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a {
        height: auto;
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
        border-bottom: none;
        width: 100%;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        border-bottom: none;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-nav {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    thead th,
    tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}