/* ==========================================================================
   Editorial Magazine Typography & Layout — /sturle
   Harmonised with The Chronicle / Index Typography
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-weight: inherit;
    vertical-align: baseline;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background-color: #fbfaf6; /* Warm archival paper tone identical to index */
    color: #1a1a1a;            /* Soft carbon ink */
    font-family: "Georgia", "Times New Roman", "Nimbus Roman No9 L", serif;
    font-size: 18px;
    line-height: 1.6;
}

body {
    padding: 2.5rem 1.5rem 5rem;
    margin: 0;
    display: flex;
    justify-content: center;
}

.magazine-shell {
    width: 100%;
    max-width: 1040px;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* --------------------------------------------------------------------------
   Top Magazine Bar (Matching Index Folio / Nav Style)
   -------------------------------------------------------------------------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.35rem;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #444;
}

.top-bar .section-tag {
    color: #c92a2a; /* Editorial crimson */
}

.top-bar .home-crumb {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
}

.top-bar .home-crumb:hover {
    text-decoration: underline;
    color: #c92a2a;
}

.top-bar .date-tag {
    color: #666;
}

/* --------------------------------------------------------------------------
   Headline & Header
   -------------------------------------------------------------------------- */
.feature-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.feature-kicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c92a2a;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-standfirst {
    font-size: 1.25rem;
    line-height: 1.45;
    font-weight: 400;
    font-style: italic;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    max-width: 820px;
    text-wrap: pretty;
}

.feature-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    border-top: 1px solid #dcd7cf;
    border-bottom: 1px solid #dcd7cf;
    padding: 0.6rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feature-byline strong {
    color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   Hero Image
   -------------------------------------------------------------------------- */
.hero-figure {
    margin-bottom: 3rem;
}

.hero-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #1a1a1a;
    padding: 2px;
    background-color: #ffffff;
}

.caption-block {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
}

.caption-block strong {
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.caption-credit {
    color: #777;
    margin-left: 0.4rem;
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Editorial Layout Grid
   -------------------------------------------------------------------------- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .story-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   Article Text Typography (Exact Match to Index Rules)
   -------------------------------------------------------------------------- */
article.prose {
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
}

article.prose p {
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    text-rendering: optimizeLegibility;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "liga" 1, "kern" 1;
    widows: 2;
    orphans: 2;
    margin-bottom: 0;
}

/* Book Paragraph Indenting: First paragraph flat, subsequent paragraphs indented */
article.prose p + p {
    text-indent: 1.75em;
    margin-top: 0;
}

/* Drop Cap on Lead Paragraph */
article.prose p.lead::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.15em;
    margin-top: 0.1em;
    font-weight: 700;
    color: #1a1a1a;
    font-family: inherit;
}

article.prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 2.25rem;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    border-top: 1px solid #1a1a1a;
    padding-top: 1.25rem;
}

article.prose p + h2 {
    text-indent: 0;
}

article.prose h2 + p {
    text-indent: 0;
}

/* Quotes & Dialogue */
blockquote.pull-quote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid #1a1a1a;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #1a1a1a;
    background: transparent;
}

blockquote.pull-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

/* In-body figures */
.body-figure {
    margin: 2rem 0;
}

.body-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #1a1a1a;
    padding: 2px;
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Sidebar Components (Matching Index Impressum)
   -------------------------------------------------------------------------- */
aside.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

/* Fact Box */
.fact-box {
    background-color: #f3f0e8;
    border: 1px solid #1a1a1a;
    padding: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}

.fact-box-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    border-bottom: 1px solid #ded9cb;
    padding-bottom: 0.35rem;
}

.fact-box dl dt {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fact-box dl dd {
    color: #333;
    margin-left: 0;
    margin-bottom: 0.35rem;
}

/* Historical Archive Box */
.archive-card {
    background-color: #fbfaf6;
    border: 1px solid #1a1a1a;
    padding: 0.75rem;
}

.archive-card .badge {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.5rem;
}

.archive-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
}

.archive-card figcaption {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #555;
}

/* --------------------------------------------------------------------------
   Advertisements
   -------------------------------------------------------------------------- */
.ad-slot {
    border: 1px solid #1a1a1a;
    padding: 1rem;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ad-disclaimer {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ad-norsk-tipping {
    background: linear-gradient(180deg, #0d233a 0%, #06121e 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ad-norsk-tipping .ad-disclaimer {
    color: #799cb8;
}

.ad-norsk-tipping img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.ad-norsk-tipping h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffcc00;
    margin-bottom: 0.25rem;
}

.ad-norsk-tipping p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #dbe7f2;
    margin-bottom: 0.75rem;
}

.ad-norsk-tipping .odds-table {
    width: 100%;
    font-size: 0.72rem;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.ad-norsk-tipping .odds-table th, 
.ad-norsk-tipping .odds-table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
}

.ad-norsk-tipping .odds-table th {
    background: rgba(0, 0, 0, 0.25);
    color: #94b9d8;
    font-weight: 700;
}

.ad-norsk-tipping .odds-table td.odds {
    text-align: right;
    font-weight: 800;
    color: #ffcc00;
}

.ad-norsk-tipping .ad-cta {
    display: block;
    background-color: #ffcc00;
    color: #06121e;
    font-weight: 800;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ad-norsk-tipping .ad-terms {
    margin-top: 0.4rem;
    font-size: 0.62rem;
    color: #799cb8;
    text-align: center;
}

.ad-villsvin {
    background-color: #f3f0e8;
    border: 1px solid #1a1a1a;
}

.ad-villsvin img {
    width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
    display: block;
    border: 1px solid #ccc;
}

.ad-villsvin h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.ad-villsvin p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0.65rem;
}

.ad-villsvin ul {
    font-size: 0.72rem;
    padding-left: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.ad-villsvin .contact-badge {
    display: block;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Article Footer & Colophon
   -------------------------------------------------------------------------- */
.feature-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 2px solid #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-footer a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}
