:root {
    --oc-ink: #15120f;
    --oc-ink-soft: #39322c;
    --oc-paper: #f3efe5;
    --oc-card: #fffaf0;
    --oc-line: #d8cbb5;
    --oc-gold: #b58a35;
    --oc-red: #8d1e25;
    --oc-red-deep: #581018;
    --oc-blue: #17273b;
    --oc-shadow: 0 24px 50px rgba(21,18,15,.12);
    --oc-radius: 0px;
    --oc-container: 1280px;
    --oc-serif: Georgia, 'Times New Roman', serif;
    --oc-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(180deg, #f7f2e8 0%, #eee5d6 100%);
    background-size: 48px 48px, auto;
    color: var(--oc-ink);
    font-family: var(--oc-sans);
    font-size: 16px;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--oc-red); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text, .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 10px;
    padding: 10px 14px;
    background: var(--oc-ink);
    color: white;
    z-index: 99;
}

.site-shell {
    width: min(var(--oc-container), calc(100% - 32px));
    margin: 24px auto;
    background: var(--oc-paper);
    border: 1px solid var(--oc-line);
    box-shadow: var(--oc-shadow);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243,239,229,.96);
    backdrop-filter: blur(12px);
    border-bottom: 4px solid var(--oc-ink);
}
.topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 22px;
    background: var(--oc-ink);
    color: #f8ead0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.brand-row {
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 24px;
    align-items: center;
    padding: 22px;
}
.brand-mark img { width: min(100%, 520px); max-height: 118px; object-fit: contain; object-position: left center; }
.custom-logo-link img { max-height: 118px; width: auto; }
.main-nav {
    border-top: 1px solid var(--oc-line);
    padding: 0 18px;
    background: #fff7e8;
}
.main-nav .menu,
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}
.main-nav a:hover { background: var(--oc-ink); color: #fff; }

.site-main { padding: 22px; }
.section-panel {
    margin: 0 0 24px;
    padding: 22px;
    background: var(--oc-card);
    border: 1px solid var(--oc-line);
    position: relative;
}
.section-panel:before {
    content: '';
    display: block;
    height: 8px;
    background: var(--section-accent, var(--oc-red));
    margin: -22px -22px 18px;
}
.accent-0 { --section-accent: linear-gradient(90deg, var(--oc-ink), var(--oc-red), var(--oc-gold)); }
.accent-1 { --section-accent: #8d1e25; }
.accent-2 { --section-accent: #17273b; }
.accent-3 { --section-accent: #b58a35; }
.accent-4 { --section-accent: #4d3428; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--oc-ink);
}
.section-eyebrow,
.kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: var(--oc-red);
    color: #fff;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}
.section-head h1,
.section-head h2,
.single-header h1,
.page-article h1,
.error-404 h1 {
    margin: 6px 0 0;
    font-family: var(--oc-serif);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .96;
}
.section-head h1 { font-size: clamp(42px, 7vw, 92px); text-transform: uppercase; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); }
.section-head p { margin: 8px 0 0; max-width: 680px; color: var(--oc-ink-soft); }
.section-link {
    border: 1px solid var(--oc-ink);
    padding: 10px 14px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    white-space: nowrap;
}
.section-link:hover { background: var(--oc-ink); color: #fff; }

.hero-grid,
.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, .75fr);
    grid-template-rows: auto auto;
    gap: 18px;
    align-items: stretch;
}
.hero-main,
.section-main {
    grid-row: span 2;
}
.story-card {
    background: #fffdf8;
    border: 1px solid var(--oc-line);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.story-card:hover { transform: translateY(-2px); box-shadow: 0 16px 26px rgba(21,18,15,.10); }
.story-media {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1b1814;
    border-bottom: 1px solid var(--oc-line);
}
.hero-main .story-media,
.section-main .story-media { aspect-ratio: 16/10; }
.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.story-card:hover .story-media img { transform: scale(1.035); }
.story-copy { padding: 14px; }
.story-copy h2,
.story-copy h3 {
    margin: 10px 0 7px;
    font-family: var(--oc-serif);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.025em;
}
.story-copy h2 { font-size: clamp(32px, 4vw, 54px); }
.story-copy h3 { font-size: clamp(19px, 2vw, 26px); }
.story-copy p { margin: 0; color: var(--oc-ink-soft); font-size: 14.5px; }
.hero-main .story-copy p,
.section-main .story-copy p { font-size: 16px; }

.image-fallback {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 20%, #b58a35 0 0, transparent 28%), linear-gradient(135deg, #15120f, #581018 55%, #17273b);
    color: #f8ead0;
}
.image-fallback span {
    border: 2px solid currentColor;
    padding: 10px 14px;
    font-family: var(--oc-serif);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.ad-frame { margin: 0 0 24px; }
.ad-fallback {
    min-height: 118px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(181,138,53,.18), transparent 30%),
        linear-gradient(135deg, #12100e, #55121a 56%, #17273b);
    border: 1px solid #2a2117;
    color: #fff7e8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ad-fallback span {
    display: block;
    font-family: var(--oc-serif);
    font-size: clamp(28px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}
.ad-fallback small {
    display: block;
    margin-top: 8px;
    color: #e6c98b;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-layout .section-panel:before,
.page-layout .section-panel:before { background: linear-gradient(90deg, var(--oc-red), var(--oc-ink), var(--oc-gold)); }

.single-layout,
.page-layout { max-width: 1120px; margin: 0 auto; }
.single-article,
.page-article {
    background: var(--oc-card);
    border: 1px solid var(--oc-line);
    padding: 26px;
    margin-bottom: 24px;
}
.single-header { max-width: 920px; margin: 0 auto 20px; text-align: center; }
.single-header h1 {
    font-size: clamp(40px, 6vw, 78px);
    margin: 12px 0;
}
.single-excerpt { font-size: 20px; color: var(--oc-ink-soft); margin: 0 auto 12px; max-width: 820px; }
.byline { color: var(--oc-ink-soft); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.single-media { margin: 0 auto 26px; max-width: 980px; border: 1px solid var(--oc-line); }
.single-media img, .single-media .image-fallback { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.content-with-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}
.entry-content {
    font-family: var(--oc-serif);
    font-size: 20px;
    line-height: 1.74;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--oc-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { line-height: 1.1; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.content-rail { position: sticky; top: 210px; }
.directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.directory-list p {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--oc-line);
    background: #fffdf8;
}

.nav-links,
.page-numbers { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 22px; }
.page-numbers { padding: 8px 11px; border: 1px solid var(--oc-line); background: #fffdf8; font-weight: 900; }
.page-numbers.current { background: var(--oc-ink); color: #fff; }
.empty-state {
    padding: 28px;
    border: 1px dashed var(--oc-line);
    background: #fffdf8;
    font-weight: 800;
}

.site-footer {
    background: var(--oc-ink);
    color: #fff7e8;
    padding: 22px;
    border-top: 4px solid var(--oc-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 24px;
    padding: 22px 0;
}
.footer-logo { width: min(360px, 100%); margin-bottom: 12px; }
.footer-grid h3 { margin-top: 0; color: #e6c98b; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #fff7e8; }
.credits {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #d8cbb5;
    font-size: 13px;
}
.credits a { color: #e6c98b; font-weight: 900; }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--oc-red);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .2s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.search-form { display: flex; gap: 8px; }
.search-field { padding: 10px 12px; border: 1px solid var(--oc-line); background: #fffdf8; }
.search-submit { border: 0; background: var(--oc-ink); color: white; padding: 10px 14px; font-weight: 900; }

@media (max-width: 1050px) {
    .brand-row { grid-template-columns: 1fr; }
    .hero-grid, .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-main, .section-main { grid-column: 1 / -1; grid-row: auto; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-with-rail { grid-template-columns: 1fr; }
    .content-rail { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; }
    .topline { display: grid; text-align: center; }
    .brand-row, .site-main, .site-footer { padding: 14px; }
    .main-nav { overflow-x: auto; padding: 0; }
    .main-nav .menu, .main-nav ul { justify-content: flex-start; flex-wrap: nowrap; }
    .main-nav a { white-space: nowrap; }
    .section-panel { padding: 16px; }
    .section-panel:before { margin: -16px -16px 14px; }
    .section-head { display: block; }
    .section-link { display: inline-flex; margin-top: 12px; }
    .hero-grid, .section-grid, .cards-grid, .cards-grid-3, .directory-list { grid-template-columns: 1fr; }
    .story-copy h2 { font-size: 34px; }
    .single-article, .page-article { padding: 18px; }
    .entry-content { font-size: 18px; }
    .credits { display: grid; }
}
