:root {
    --paper: #f9f7f1;
    --ink: #23251e;
    --muted: #575b50;
    --line: #cecfc2;
    --accent: #ad4328;
    --accent-ink: color-mix(in srgb, var(--ink) 62%, var(--accent));
    --sans: "Inter","Segoe UI",Arial,sans-serif;
    --serif: "Spectral","Iowan Old Style","Palatino Linotype",Georgia,serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

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

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 5;
    background: white;
    padding: .6rem;
}

.paper {
    width: min(1200px,calc(100% - clamp(32px,9vw,152px)));
    margin: auto;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(25px,4vw,48px) 0 22px;
    border-bottom: 2px solid var(--ink);
}

.identity,.footname {
    font-family: var(--serif);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.065em;
}

.identity {
    font-size: clamp(42px,5.3vw,74px);
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.identity span,.footname span {
    color: var(--accent);
}

.masthead p {
    color: var(--muted);
    font-size: .94rem;
    max-width: 31ch;
    line-height: 1.45;
    margin: 0;
}

.symbol {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: .2em;
    transform: skew(-13deg);
}

.symbol i {
    height: .56em;
    width: .09em;
    background: var(--accent);
}

.symbol i:nth-child(2) {
    height: .45em;
}

.symbol i:last-child {
    height: .33em;
}

.sections {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 clamp(20px,3.2vw,45px);
    border-bottom: 1px solid var(--line);
    padding: 0 1px;
}

.sections a {
    padding: 14px 0 12px;
    font-size: .9rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.sections a[aria-current],.sections a:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.feature {
    margin: clamp(28px,3.5vw,50px) 0 clamp(37px,5vw,64px);
    display: grid;
    grid-template-columns: 1.17fr 1fr;
    gap: clamp(26px,5vw,78px);
    align-items: center;
}

.feature-cover {
    height: clamp(330px,34vw,430px);
}

.feature-type {
    padding: 9px 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.meta {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: .77rem;
    letter-spacing: .025em;
}

.meta a {
    font-weight: 700;
    color: var(--accent-ink);
}

.meta a:hover,.index-link:hover,.backlink:hover {
    text-decoration: underline;
}

.meta span {
    color: #969788;
}

.feature h1,.story h1,.category-head h1 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -.051em;
    line-height: 1.01;
    font-size: clamp(45px,5.1vw,75px);
    margin: .25em 0;
}

.feature p,.card p,.category-head p,.standfirst {
    color: var(--muted);
    line-height: 1.6;
}

.feature p {
    font-size: clamp(1rem,1.32vw,1.14rem);
    max-width: 39ch;
    margin: 1.2em 0 1.6em;
}

.read,.backlink {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    border-bottom: 1px solid var(--ink);
    padding: 5px 0 7px;
    font-size: .92rem;
    font-weight: 600;
}

.read:hover,.card h2 a:hover,.feature h1 a:hover {
    color: var(--accent-ink);
}

.read span {
    font-size: 1.25rem;
    font-weight: 400;
}

.rule-heading {
    font: 600 1.17rem var(--sans);
    letter-spacing: -.035em;
    border-top: 1px solid var(--ink);
    padding-top: 15px;
    margin: 0 0 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 34px;
}

.card-cover {
    display: block;
    height: clamp(170px,20vw,265px);
    overflow: hidden;
}

.card-type {
    padding: 19px 0 8px;
    overflow-wrap: anywhere;
}

.card h2 {
    font: 500 clamp(26px,2.65vw,39px)/1.1 var(--serif);
    letter-spacing: -.042em;
    margin: .28em 0;
}

.card p {
    margin: .6em 0 0;
    max-width: 55ch;
}

.category-head {
    margin: 44px 0 34px;
}

.category-head p {
    max-width: 60ch;
}

.pages {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0;
    font-weight: 600;
}

.empty,.missing {
    min-height: 30vh;
}

.missing a {
    margin-top: 24px;
}

.story {
    margin: 44px auto;
}

.story header {
    width: min(790px,100%);
    margin: 0 auto;
}

.story h1 {
    margin: .23em 0 .25em;
    overflow-wrap: anywhere;
}

.standfirst {
    font-size: 1.22rem;
    max-width: 55ch;
}

.story-cover {
    height: clamp(220px,28vw,340px);
    margin: 32px auto;
    max-width: 950px;
}

.prose {
    width: min(690px,100%);
    margin: auto;
}

.prose p {
    font: normal clamp(1.13rem,1.7vw,1.31rem)/1.72 var(--serif);
    margin: 1.4em 0;
    overflow-wrap: anywhere;
}

.prose p a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: .16em;
    text-decoration-thickness: .08em;
}

.prose p a:hover {
    text-decoration-thickness: .14em;
}

.backlink {
    margin: 20px 0;
}

.paper footer {
    margin: clamp(35px,6vw,80px) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--ink);
    padding: 22px 0 35px;
}

.footname {
    font-size: 1.8rem;
}

.index-link {
    font-size: .83rem;
}

.index-link span {
    margin-left: 5px;
}

/* Local, geometric editorial illustrations built from the three subjects. */
.art {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.art>div {
    position: absolute;
}

.art:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(107deg,transparent 0 3px,#f5e1c90c 3px 4px);
    mix-blend-mode: soft-light;
}

.art-street {
    background: linear-gradient(117deg,#ded8b6 0%,#edc897 63%,#cfaa7e 100%);
}

.street-sun {
    width: 30%;
    aspect-ratio: 1;
    left: 8%;
    top: 12%;
    background: #f8e9ba;
    border-radius: 50%;
}

.street-wall {
    inset: 0;
    background: linear-gradient(145deg,#d58350 0 49%,#b86741 72%,#8b4e38 100%);
    clip-path: polygon(0 77%,52% 25%,100% 14%,100% 100%,0 100%);
}

.street-arc {
    height: 110%;
    width: 42%;
    border-radius: 54% 54% 0 0;
    background: linear-gradient(110deg,#754732 0 17%,#3d4033 17% 67%,#4e5140 67% 80%,#858163 80%);
    box-shadow: inset 1.8vw .6vw 0 #a46545,inset 3.1vw 0 0 #865238;
}

.street-arc.far {
    left: 14%;
    top: 62%;
    transform: scaleX(.74);
}

.street-arc.middle {
    left: 45%;
    top: 38%;
    transform: scaleX(.85);
}

.street-arc.near {
    left: 80%;
    top: 10%;
}

.street-paving {
    inset: 70% 0 0;
    background: linear-gradient(155deg,transparent 0 25%,#704b368f 25% 42%,transparent 42% 52%,#74563d8c 52% 77%,transparent 77%),#ccb182;
    clip-path: polygon(0 84%,100% 2%,100% 100%,0 100%);
}

.art-chair {
    background: linear-gradient(118deg,#adb396,#b8c1a4 55%,#a0ad92);
}

.chair-disc {
    width: 56%;
    aspect-ratio: 1;
    background: #d9d8b4;
    border-radius: 50%;
    top: -25%;
    left: 9%;
}

.chair-shadow {
    width: 68%;
    height: 19%;
    top: 78%;
    left: 29%;
    background: #657664;
    transform: skewX(-46deg) rotate(-8deg);
    opacity: .52;
}

.chair-back {
    width: 27%;
    height: 57%;
    top: 10%;
    left: 38%;
    transform: skew(-9deg) rotate(-7deg);
    background: repeating-linear-gradient(90deg,#374c43 0 7%,transparent 7% 16%);
    border: clamp(5px,.7vw,13px) solid #374c43;
    border-radius: 21% 18% 2% 2%;
}

.chair-seat {
    width: 40%;
    height: 12%;
    top: 59%;
    left: 24%;
    background: #424d3f;
    transform: skewX(-38deg) rotate(-6deg);
}

.chair-leg {
    background: #394c42;
    width: 2%;
    height: 28%;
    top: 66%;
    transform: rotate(7deg);
}

.chair-leg.one {
    left: 24%;
}

.chair-leg.two {
    left: 57%;
}

.art-sound {
    background: linear-gradient(115deg,#aba1b6,#c4b2bf 70%,#b0a0b0);
}

.sound-window {
    inset: 13% 47% 15% 14%;
    background: linear-gradient(141deg,#e8d7c6 0 37%,#d8bcac 37% 58%,#b19f9f 58%);
    border: clamp(6px,.85vw,13px) solid #645a69;
    box-shadow: .8vw .8vw 0 #8a788b;
}

.sound-window:before,.sound-window:after {
    content: "";
    position: absolute;
    background: #645a69;
}

.sound-window:before {
    width: 4%;
    inset: 0 auto 0 48%;
}

.sound-window:after {
    height: 4%;
    inset: 48% 0 auto;
}

.sound-rings {
    width: 60%;
    aspect-ratio: 1;
    top: 1%;
    left: 56%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle,#514e66 0 2%,transparent 2.4% 8%);
    clip-path: polygon(0 0,53% 0,53% 100%,0 100%);
    transform: rotate(4deg);
}

.sound-floor {
    inset: 84% 0 0;
    background: #786c7d;
    clip-path: polygon(0 98%,100% 0,100% 100%,0 100%);
}

@media(max-width:720px) {
    .paper {
        width: calc(100% - 36px);
    }

    .masthead {
        padding: 24px 0 17px;
        gap: 18px;
    }

    .masthead p {
        font-size: .75rem;
        max-width: 23ch;
    }

    .sections {
        column-gap: 21px;
    }

    .sections a {
        font-size: .81rem;
        padding: 12px 0 10px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 21px;
        margin: 23px 0 35px;
    }

    .feature-cover {
        height: clamp(225px,63vw,330px);
    }

    .feature-type {
        padding: 0;
    }

    .feature h1 {
        font-size: clamp(42px,8vw,57px);
    }

    .feature p {
        margin: .8em 0 1em;
    }

    .cards {
        gap: 22px;
    }

    .card-cover {
        height: clamp(130px,28vw,190px);
    }

    .story {
        margin: 28px auto;
    }

    .category-head {
        margin: 28px 0;
    }

    .standfirst {
        font-size: 1.05rem;
    }

}

@media(max-width:490px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-cover {
        height: clamp(160px,50vw,235px);
    }

    .meta {
        gap: 8px;
    }

    .sections {
        column-gap: 16px;
    }

    .card-type {
        padding-top: 13px;
    }

    .masthead p {
        max-width: 18ch;
    }

    .identity {
        font-size: 42px;
    }

    .story-cover {
        height: 190px;
    }

}

@media(prefers-reduced-motion:no-preference) {
    a {
        transition: color .15s;
    }

}

/* Ufuk places the lead story in a wide news desk layout. */
.theme-ufuk {
    --paper: #fff;
    --ink: #192936;
    --muted: #536674;
    --line: #cfdbe2;
    --serif: "Archivo Narrow","Arial Narrow",var(--sans);
}

.theme-ufuk .paper {
    width: min(1320px,calc(100% - clamp(32px,6vw,100px)));
}

.theme-ufuk .masthead {
    border-top: .55rem solid var(--accent);
    border-bottom: 0;
    padding-block: clamp(20px,3vw,40px);
}

.theme-ufuk .identity {
    font-weight: 800;
    letter-spacing: -.065em;
}

.theme-ufuk .sections {
    padding-inline: 18px;
    background: var(--ink);
    border: 0;
    color: #fff;
}

.theme-ufuk .sections a[aria-current],.theme-ufuk .sections a:hover {
    color: #fff;
    border-color: #fff;
}

.theme-ufuk .feature {
    gap: clamp(22px,4vw,64px);
    border-block: 1px solid var(--line);
    padding-block: 22px;
    grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
}

.theme-ufuk .feature-type { grid-column: 1; grid-row: 1 }
.theme-ufuk .feature-cover { grid-column: 2; grid-row: 1 }

.theme-ufuk :is(.feature,.story,.category-head) h1,
.theme-ufuk .card h2 {
    font-weight: 750;
    letter-spacing: -.042em;
}

.theme-ufuk .cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px }
.theme-ufuk .card { border-bottom: 3px solid var(--ink) }
.theme-ufuk .prose p { font-family: Georgia,serif }

/* Defter reads as a narrow journal with compact illustrated entries. */
.theme-defter {
    --paper: #f6f2e8;
    --ink: #322d28;
    --muted: #605851;
    --line: #cfc8ba;
    --serif: "Baskervville","Palatino Linotype",Georgia,serif;
}

.theme-defter .paper { width: min(880px,calc(100% - 40px)) }
.theme-defter .masthead {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}
.theme-defter .masthead p { max-width: 58ch }
.theme-defter .symbol { display: none }
.theme-defter .sections { justify-content: center }
.theme-defter .feature {
    grid-template-columns: minmax(0,.57fr) minmax(0,1fr);
    gap: clamp(20px,4vw,48px);
}
.theme-defter .feature-cover { height: clamp(190px,24vw,290px) }
.theme-defter .cards { display: flex; flex-direction: column; gap: 0 }
.theme-defter .card {
    display: grid;
    grid-template-columns: minmax(110px,.35fr) minmax(0,1fr);
    gap: clamp(18px,4vw,40px);
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-block: 24px;
}
.theme-defter .card-cover { height: clamp(95px,15vw,160px) }
.theme-defter .card-type { padding: 0 }
.theme-defter .story header { max-width: 680px; border-left: 4px solid var(--accent); padding-left: 20px }
.theme-defter .story-cover { max-width: 680px; height: clamp(155px,24vw,225px) }
.theme-defter .prose { max-width: 640px }

@media(max-width:720px) {
    .theme-ufuk .feature,.theme-defter .feature { grid-template-columns: 1fr }
    .theme-ufuk .feature-type,.theme-ufuk .feature-cover { grid-column: auto; grid-row: auto }
    .theme-ufuk .cards { grid-template-columns: repeat(2,minmax(0,1fr)) }
    .theme-defter .feature-cover { height: clamp(145px,42vw,260px) }
}

@media(max-width:490px) {
    .theme-ufuk .cards { grid-template-columns: 1fr }
    .theme-defter .card { grid-template-columns: 80px minmax(0,1fr); gap: 14px }
    .theme-defter .card-cover { height: 86px }
    .theme-defter .card h2 { font-size: 1.43rem }
    .masthead { flex-wrap: wrap }
}
