/* ==========================================================================
   MAFFIA - the front page of a 1931 crime rag, printed on aged bone paper
   ========================================================================== */

:root {
    --paper:       #EFE6D3;
    --paper-lit:   #F7F1E2;
    --paper-deep:  #E1D5BA;
    --ink:         #14110E;
    --ink-soft:    #352E26;
    --ink-faint:   #6A6053;
    --blood:       #A8181B;
    --blood-deep:  #7A1113;
    --brass:       #8C6D33;
    --brass-lit:   #C9A65B;
    --rule:        rgba(20, 17, 14, 0.42);
    --hair:        rgba(20, 17, 14, 0.20);
    --brass-hair:  rgba(140, 109, 51, 0.45);

    --display: "Cinzel", "Bodoni MT", "Playfair Display", Didot, "Times New Roman", serif;
    --type:    "Special Elite", "Courier New", Courier, "Nimbus Mono PS", monospace;

    --measure: 1180px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--type);
    font-size: clamp(0.97rem, 0.92rem + 0.2vw, 1.06rem);
    line-height: 1.62;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(58px 38px at 11% 14%, rgba(150, 118, 62, 0.13), transparent 72%),
        radial-gradient(96px 62px at 91% 41%, rgba(150, 118, 62, 0.10), transparent 72%),
        radial-gradient(70px 44px at 26% 77%, rgba(150, 118, 62, 0.09), transparent 72%),
        radial-gradient(120px 80px at 74% 93%, rgba(150, 118, 62, 0.08), transparent 72%),
        repeating-linear-gradient(90deg, rgba(122, 100, 62, 0.035) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(0deg,  rgba(122, 100, 62, 0.030) 0 1px, transparent 1px 6px);
}

/* Fixed newsprint screen and press vignette, laid over everything, untouchable. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(20, 17, 14, 0.16) 0.5px, transparent 0.6px),
        radial-gradient(circle at 50% 50%, rgba(20, 17, 14, 0.10) 0.5px, transparent 0.6px),
        radial-gradient(125% 105% at 50% 42%, transparent 52%, rgba(88, 68, 34, 0.20) 100%);
    background-size: 3px 3px, 5px 5px, 100% 100%;
    background-position: 0 0, 1px 2px, 0 0;
}

::selection {
    background: var(--blood);
    color: var(--paper-lit);
}

/* --------------------------------------------------------------- primitives */

a {
    color: var(--blood-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
    color: var(--ink);
    background: rgba(168, 24, 27, 0.10);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--blood);
    outline-offset: 2px;
}

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

p { margin: 0 0 0.95em; }

strong { font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--brass-hair); }

.sheet {
    position: relative;
    max-width: var(--measure);
    margin: clamp(0.6rem, 2vw, 2.2rem) auto;
    padding: clamp(0.9rem, 3vw, 2.6rem) clamp(0.85rem, 3.2vw, 2.8rem) clamp(1.4rem, 3vw, 2.6rem);
    border: 3px double var(--ink);
}

.sheet::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--hair);
    pointer-events: none;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

/* ---------------------------------------------------------------- masthead */

.masthead { margin-bottom: clamp(1.1rem, 2.4vw, 2rem); }

.folio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.35rem 1.2rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(0.56rem, 0.5rem + 0.28vw, 0.72rem);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.folio--top {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}

.folio--top span:nth-child(2) { color: var(--blood); letter-spacing: 0.4em; }

.folio--bottom {
    justify-content: center;
    margin-top: clamp(0.7rem, 1.6vw, 1.1rem);
    padding: 0.42rem 0;
    border-top: 3px double var(--ink);
    border-bottom: 3px double var(--ink);
    color: var(--ink);
    text-align: center;
}

.folio--bottom b { font-weight: 900; color: var(--blood-deep); }

.nameplate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2.2vw, 1.8rem);
    margin-top: clamp(0.7rem, 1.8vw, 1.2rem);
}

.name-block { flex: 1 1 24rem; text-align: center; }

.nameplate {
    margin: 0.18em 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2.6rem, 9vw, 8.5rem);
    line-height: 0.84;
    letter-spacing: 0.09em;
    text-indent: 0.09em;
    text-transform: uppercase;
    color: var(--ink);
}

.rules-stack {
    display: block;
    height: 5px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    position: relative;
}

.rules-stack::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    border-top: 1px solid var(--brass-hair);
}

.ear-cut {
    flex: 0 0 auto;
    width: clamp(58px, 9vw, 92px);
    padding: 3px;
    border: 1px solid var(--ink);
    background: var(--paper-lit);
}

.ear-cut img { filter: sepia(0.16) contrast(1.05); }

.ear-box {
    flex: 0 1 auto;
    padding: 0.5rem 0.85rem;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(0.54rem, 0.48rem + 0.26vw, 0.68rem);
    line-height: 1.9;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink-soft);
}

.ear-box em { font-style: normal; color: var(--blood); }

/* -------------------------------------------------------------- headlines */

.kicker {
    margin: 0 0 0.55rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(0.6rem, 0.54rem + 0.3vw, 0.78rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--blood);
}

.headline {
    margin: 0 0 0.5rem;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.95rem, 1.1rem + 4.4vw, 4.3rem);
    line-height: 0.94;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
}

.headline--sub {
    font-size: clamp(1.45rem, 1rem + 2.4vw, 2.5rem);
    line-height: 1;
}

.deck {
    margin: 0 0 0.9rem;
    max-width: 34em;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
    line-height: 1.5;
    color: var(--ink-soft);
}

.byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    padding: 0.34rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ------------------------------------------------------------ lead layout */

.lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.4rem, 3vw, 2.6rem);
}

.story { flex: 1 1 30rem; min-width: 0; }

.rail {
    flex: 1 1 15rem;
    min-width: 0;
    max-width: 23rem;
}

/* Once the ears drop below the nameplate, the nameplate takes the full measure. */
@media (max-width: 47rem) {
    .nameplate { font-size: 15vw; }
}

.body-cols {
    margin-top: 1.1rem;
    column-width: 17rem;
    column-gap: clamp(1.3rem, 2.4vw, 2.1rem);
    column-rule: 1px solid var(--hair);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.body-cols > p:first-child::first-letter {
    float: left;
    margin: 0.03em 0.1em 0 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: 4.1em;
    line-height: 0.76;
    color: var(--blood-deep);
}

.body-cols > p { margin-bottom: 0.8em; }

/* --------------------------------------------------------------- pullquote */

.pullquote {
    position: relative;
    margin: 1.6rem 0 0.4rem;
    padding: 1rem 0.2rem 1.05rem;
    border-top: 3px double var(--blood-deep);
    border-bottom: 3px double var(--blood-deep);
    transform: rotate(-0.45deg);
}

.pullquote p {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.1rem, 0.85rem + 1.3vw, 1.72rem);
    line-height: 1.22;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    text-wrap: balance;
    color: var(--ink);
}

.pullquote cite {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--display);
    font-style: normal;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blood);
}

@media (min-width: 62rem) {
    .pullquote { margin-left: -2.2vw; padding-left: 2.2vw; }
}

/* ------------------------------------------------------------- rail boxes */

.rail-box {
    padding: clamp(0.85rem, 2vw, 1.25rem);
    border: 1px solid var(--ink);
    background: linear-gradient(180deg, rgba(255, 252, 242, 0.55), rgba(225, 213, 186, 0.25));
    transform: rotate(-0.3deg);
}

.rail-box + .rail-box { margin-top: 1.5rem; }

.rail-head {
    margin: 0 0 0.15rem;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rail-sub {
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--brass-hair);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blood);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 0.75rem 2.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--hair);
    font-size: 0.94rem;
    line-height: 1.5;
}

.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -0.12em;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    font-family: var(--display);
    font-weight: 900;
    font-size: 0.86rem;
    color: var(--blood-deep);
    background: var(--paper-lit);
}

.steps b {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 0;
    color: var(--ink);
}

.spec {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.34rem 0;
    border-bottom: 1px dotted var(--rule);
    font-size: 0.9rem;
    line-height: 1.35;
}

.spec li:last-child { border-bottom: 0; padding-bottom: 0; }

.spec b {
    flex: 0 0 auto;
    border: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.spec span { text-align: right; }

.stop-press {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.stop-press .tag {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.1rem 0.4rem;
    background: var(--blood-deep);
    color: var(--paper-lit);
    font-family: var(--display);
    font-weight: 900;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    vertical-align: 0.12em;
}

/* ------------------------------------------------------------ section band */

.band {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: clamp(1.8rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.band::before,
.band::after {
    content: "";
    flex: 1 1 auto;
    height: 4px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.band h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(0.8rem, 0.7rem + 0.6vw, 1.1rem);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* ------------------------------------------------------------------- cuts */

.cast {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.4vw, 1.8rem);
}

.cut {
    flex: 1 1 calc(25% - 1.4rem);
    min-width: 0;
    margin: 0;
}

@media (max-width: 56rem) {
    .cut { flex-basis: calc(50% - 1rem); }
}

.cut:nth-child(even) { transform: rotate(0.35deg); }
.cut:nth-child(odd)  { transform: rotate(-0.35deg); }

.cut-frame {
    position: relative;
    padding: 4px;
    border: 1px solid var(--ink);
    background: var(--paper-lit);
    box-shadow: 0 1px 0 rgba(20, 17, 14, 0.28);
}

.cut-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.06) saturate(1.02) brightness(1.02);
}

.cut-frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.75;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 245, 225, 0.5) 0.6px, rgba(20, 17, 14, 0.35) 0.7px);
    background-size: 3.5px 3.5px;
}

.cut figcaption { margin-top: 0.6rem; }

.cut-name {
    display: block;
    padding-bottom: 0.28rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.cut-line {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* -------------------------------------------------------------- classified */

.classified {
    position: relative;
    margin-top: clamp(1rem, 2vw, 1.6rem);
    padding: clamp(1.1rem, 3vw, 2.1rem);
    border: 3px double var(--ink);
    background: linear-gradient(180deg, rgba(255, 252, 242, 0.6), rgba(225, 213, 186, 0.3));
}

.classified::before,
.classified::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.classified::before {
    top: 6px; left: 6px;
    border-top: 2px solid var(--blood-deep);
    border-left: 2px solid var(--blood-deep);
}

.classified::after {
    bottom: 6px; right: 6px;
    border-bottom: 2px solid var(--blood-deep);
    border-right: 2px solid var(--blood-deep);
}

.classified-inner { position: relative; }

.classified-inner::before,
.classified-inner::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.classified-inner::before {
    top: -8px; right: -8px;
    border-top: 2px solid var(--blood-deep);
    border-right: 2px solid var(--blood-deep);
}

.classified-inner::after {
    bottom: -8px; left: -8px;
    border-bottom: 2px solid var(--blood-deep);
    border-left: 2px solid var(--blood-deep);
}

.classified-rule {
    margin: 0 0 0.8rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.58rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink-faint);
}

.classified h2 {
    margin: 0 0 0.7rem;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.35rem, 0.95rem + 2vw, 2.35rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
}

.classified-body {
    max-width: 40em;
    margin: 0 auto 1.2rem;
    text-align: center;
    color: var(--ink-soft);
}

.classified-body p:last-child { margin-bottom: 0; }

.cta-wrap { text-align: center; }

.cta {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--ink);
    outline: 3px double var(--ink);
    outline-offset: 3px;
    background: var(--ink);
    color: var(--paper-lit);
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.88rem);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
    background: var(--blood-deep);
    color: var(--paper-lit);
    outline-color: var(--blood-deep);
    border-color: var(--paper-lit);
}

.cta-note {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
    text-align: center;
}

/* ------------------------------------------------------------------ notice */

.notice { max-width: 47rem; margin: 0 auto; }

.notice-head {
    margin-bottom: clamp(1.2rem, 2.6vw, 1.9rem);
    padding-bottom: 0.9rem;
    border-bottom: 3px double var(--ink);
}

.stamp {
    float: right;
    margin: 0.2rem 0 0.7rem 1.2rem;
    padding: 0.45rem 0.7rem;
    border: 2px solid var(--blood);
    color: var(--blood);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.6rem;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-5deg);
    opacity: 0.9;
}

.standfirst {
    margin-top: 1rem;
    padding: 0.95rem 1.1rem;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background: rgba(201, 166, 91, 0.10);
}

.standfirst p { margin: 0; }

.clause { margin-top: clamp(1.5rem, 3vw, 2.3rem); }

.clause h2 {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin: 0 0 0.7rem;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(0.9rem, 0.8rem + 0.55vw, 1.15rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.clause h2 .num {
    flex: 0 0 auto;
    color: var(--blood);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.clause h2::after {
    content: "";
    flex: 1 1 auto;
    height: 3px;
    border-top: 1px solid var(--brass);
    border-bottom: 1px solid var(--brass-hair);
}

.clause ul {
    margin: 0 0 0.95em;
    padding-left: 1.35rem;
    list-style: none;
}

.clause li {
    position: relative;
    margin-bottom: 0.55em;
}

.clause li::before {
    content: "\2014";
    position: absolute;
    left: -1.35rem;
    color: var(--blood);
}

/* ---------------------------------------------------------------- colophon */

.colophon {
    margin-top: clamp(2rem, 4vw, 3.2rem);
    padding-top: 0.9rem;
    border-top: 3px double var(--ink);
}

.crops {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    font-family: var(--display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--brass);
}

.colophon-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1.1rem;
    margin-bottom: 0.8rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.74rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.colophon-nav a { color: var(--ink); text-decoration-color: var(--brass); }

.colophon-nav a[aria-current="page"] { color: var(--blood); }

.colophon-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
    text-align: center;
}

@media (max-width: 30rem) {
    .body-cols { text-align: left; }
    .cut-name { font-size: 0.68rem; letter-spacing: 0.11em; }
    .cut-line { font-size: 0.8rem; }
    .spec li { font-size: 0.84rem; }
    .stamp { float: none; margin: 0 0 1rem; display: inline-block; }
    .band h2 { white-space: normal; }
}

/* -------------------------------------------- inner-page masthead variant */

.nameplate--sm { font-size: clamp(2.3rem, 11vw, 4rem); }

.nameplate a {
    color: inherit;
    text-decoration: none;
    background: none;
}

.nameplate a:hover,
.nameplate a:focus-visible { color: var(--blood-deep); }
