:root {
    --ink: #232019;
    --paper: #f5f2e9;
    --gold: #d8a03c;
    --red: #b4452c;
    --muted: #766f61;
    --faint: #aaa18e;
    --hairline: rgba(35, 32, 25, 0.15);
    --display: 'Anton', Impact, sans-serif;
    --body: 'Archivo', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

::selection {
    color: var(--ink);
    background: rgba(216, 160, 60, 0.4);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--paper);
    background: var(--ink);
    font: 700 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.directory {
    min-height: 100vh;
}

.masthead {
    position: relative;
    min-height: clamp(480px, 62vh, 680px);
    overflow: hidden;
    color: var(--paper);
    background: var(--ink);
}

.masthead::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(245, 242, 233, .18) 25%);
}

.masthead-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 64px));
    min-height: inherit;
    margin: 0 auto;
    padding: 28px 0 54px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    font: 400 23px/1 var(--display);
}

.wordmark-name {
    font: 400 18px/1 var(--display);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.domain {
    position: absolute;
    top: 37px;
    right: 0;
    margin: 0;
    color: #9b937f;
    font: 600 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.intro {
    position: absolute;
    right: 0;
    bottom: 58px;
    left: 0;
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--gold);
    font: 700 10px/1.4 var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    max-width: 800px;
    margin: 0;
    font: 400 clamp(76px, 11vw, 150px)/.83 var(--display);
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.lede {
    position: absolute;
    right: 0;
    bottom: 3px;
    width: min(310px, 28%);
    margin: 0;
    color: #c7c0ae;
    font-size: 15px;
    line-height: 1.55;
}

.briefings,
.projects {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.briefings {
    padding: 78px 0 0;
}

.projects {
    padding: 78px 0 96px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}

.section-heading h2 {
    margin: 0;
    font: 700 11px/1 var(--mono);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section-heading span {
    color: var(--muted);
    font: 600 10px/1 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 70px;
    align-items: center;
    min-height: 174px;
    padding: 25px 14px 25px 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    transition: background-color 160ms ease, padding 160ms ease;
}

a.project:hover,
a.project:focus-visible {
    padding-left: 14px;
    background: rgba(216, 160, 60, .1);
    outline: none;
}

.project-number,
.project-url,
.project-status {
    color: var(--muted);
    font: 600 10px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-copy {
    display: grid;
    grid-template-columns: minmax(190px, .65fr) minmax(280px, 1fr);
    align-items: baseline;
    gap: 14px 36px;
}

.project-name {
    font: 400 clamp(38px, 5vw, 64px)/1 var(--display);
    letter-spacing: -.015em;
    text-transform: uppercase;
}

.project-description {
    max-width: 430px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.project-url {
    grid-column: 2;
}

.project-arrow {
    justify-self: end;
    color: var(--ink);
    font: 400 34px/1 var(--body);
    transition: color 160ms ease, transform 160ms ease;
}

a.project:hover .project-arrow,
a.project:focus-visible .project-arrow {
    color: var(--red);
    transform: translate(3px, -3px);
}

.project-next {
    color: var(--faint);
    cursor: default;
}

.project-next .project-description,
.project-next .project-number {
    color: var(--faint);
}

.project-status {
    justify-self: end;
    color: var(--faint);
}

.briefing-card {
    display: grid;
    grid-template-columns: minmax(170px, .36fr) minmax(0, 1fr) 70px;
    align-items: center;
    min-height: 226px;
    padding: 34px 14px 34px 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    transition: background-color 160ms ease, padding 160ms ease;
}

.briefing-card:hover,
.briefing-card:focus-visible {
    padding-left: 14px;
    background: rgba(180, 69, 44, .07);
    outline: none;
}

.briefing-label,
.briefing-date {
    color: var(--red);
    font: 700 10px/1.4 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.briefing-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.briefing-title {
    max-width: 790px;
    font: 400 clamp(42px, 6vw, 76px)/.96 var(--display);
    letter-spacing: -.015em;
    text-transform: uppercase;
}

.briefing-description {
    max-width: 680px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.briefing-card:hover .project-arrow,
.briefing-card:focus-visible .project-arrow {
    color: var(--red);
    transform: translateX(4px);
}

.news-page {
    min-height: 100vh;
}

.news-shell,
.news-stories,
.watch-list-inner {
    width: min(1040px, calc(100% - 64px));
    margin: 0 auto;
}

.news-hero {
    min-height: min(760px, 88vh);
    color: var(--paper);
    background: var(--ink);
}

.news-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
}

.news-home-link {
    color: #b8b09d;
    font: 600 10px/1 var(--mono);
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.news-home-link:hover,
.news-home-link:focus-visible {
    color: var(--gold);
}

.news-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: end;
    gap: 50px;
    padding: clamp(100px, 15vh, 150px) 0 64px;
}

.news-heading > .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -20px;
}

.news-heading h1 {
    font-size: clamp(76px, 10vw, 132px);
}

.news-deck {
    padding-bottom: 7px;
    color: #c7c0ae;
    font-size: 15px;
    line-height: 1.65;
}

.news-period {
    margin: 0 0 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(245, 242, 233, .25);
    color: var(--gold);
    font: 700 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.news-deck p:last-child {
    margin: 0;
}

.news-stories {
    padding: 58px 0 100px;
}

.news-story {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 30px;
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--hairline);
}

.story-rail {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
}

.story-rank {
    color: var(--red);
    font: 400 52px/1 var(--display);
}

.story-rail time {
    color: var(--muted);
    font: 600 10px/1 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.story-main h2 {
    max-width: 790px;
    margin: 0 0 27px;
    font: 400 clamp(42px, 6vw, 72px)/.98 var(--display);
    letter-spacing: -.015em;
    text-transform: uppercase;
}

.story-summary {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.68;
}

.story-why {
    max-width: 760px;
    margin-top: 36px;
    padding: 24px 26px;
    border-left: 4px solid var(--gold);
    background: rgba(216, 160, 60, .1);
}

.story-why h3,
.story-sources h3 {
    margin: 0 0 12px;
    color: var(--red);
    font: 700 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-why p {
    margin: 0;
    color: #514c42;
    font-size: 15px;
    line-height: 1.65;
}

.story-sources {
    max-width: 760px;
    margin-top: 30px;
}

.story-sources ul {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.story-sources a {
    color: var(--muted);
    font: 600 11px/1.55 var(--mono);
    text-underline-offset: 4px;
}

.story-sources a:hover,
.story-sources a:focus-visible {
    color: var(--red);
}

.watch-list {
    padding: 86px 0 100px;
    color: var(--paper);
    background: var(--red);
}

.watch-list .eyebrow {
    color: #f3cf87;
}

.watch-list h2 {
    max-width: 760px;
    margin: 0 0 42px;
    font: 400 clamp(58px, 8vw, 104px)/.9 var(--display);
    text-transform: uppercase;
}

.watch-list ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin: 0;
    padding: 0;
    counter-reset: watch;
    list-style: none;
}

.watch-list li {
    position: relative;
    min-height: 126px;
    padding: 22px 0 22px 50px;
    border-top: 1px solid rgba(245, 242, 233, .35);
    font-size: 14px;
    line-height: 1.6;
    counter-increment: watch;
}

.watch-list li::before {
    content: counter(watch, decimal-leading-zero);
    position: absolute;
    top: 25px;
    left: 0;
    color: #f3cf87;
    font: 700 10px/1 var(--mono);
}

.news-state {
    display: grid;
    min-height: 100vh;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 40px;
    color: var(--paper);
    background: var(--ink);
    text-align: center;
}

.news-state h1 {
    font-size: clamp(58px, 10vw, 112px);
}

.news-state p,
.news-state a {
    font: 700 10px/1.4 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.news-state a {
    color: var(--gold);
    text-underline-offset: 5px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px max(32px, calc((100% - 1180px) / 2));
    color: #9b937f;
    background: var(--ink);
    font: 600 9px/1.4 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.boot-splash {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: var(--muted);
    font: 700 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.boot-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    font: 400 25px/1 var(--display);
}

.not-found {
    min-height: 100vh;
    padding: 12vh max(32px, calc((100% - 1180px) / 2));
    color: var(--paper);
    background: var(--ink);
}

.not-found h1 {
    margin-bottom: 46px;
}

.not-found a {
    color: var(--gold);
    font: 700 11px/1 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-underline-offset: 6px;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 14px 52px 14px 16px;
    color: var(--paper);
    background: var(--red);
    font: 600 12px/1.4 var(--body);
}

#blazor-error-ui a {
    margin-left: 8px;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 5px;
    right: 7px;
    border: 0;
    color: var(--paper);
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 780px) {
    .masthead-inner,
    .briefings,
    .projects {
        width: min(100% - 40px, 1180px);
    }

    .masthead {
        min-height: 590px;
    }

    .masthead-inner {
        padding-top: 22px;
    }

    .domain {
        top: 32px;
    }

    .intro {
        bottom: 45px;
    }

    h1 {
        font-size: clamp(64px, 20vw, 108px);
    }

    .lede {
        position: static;
        width: min(100%, 360px);
        margin-top: 28px;
    }

    .projects {
        padding: 54px 0 70px;
    }

    .briefings {
        padding-top: 54px;
    }

    .briefing-card {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 18px;
        padding: 30px 4px 34px 0;
    }

    .briefing-label {
        grid-column: 1 / -1;
    }

    .briefing-title {
        font-size: clamp(40px, 12vw, 60px);
    }

    .project {
        grid-template-columns: 42px minmax(0, 1fr) 34px;
        min-height: 164px;
        padding-right: 4px;
    }

    .project-copy {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .project-name {
        font-size: clamp(35px, 11vw, 54px);
    }

    .project-description {
        max-width: 400px;
        padding-right: 8px;
        font-size: 13px;
    }

    .project-url {
        margin-top: 4px;
    }

    .project-arrow {
        font-size: 28px;
    }

    .news-shell,
    .news-stories,
    .watch-list-inner {
        width: min(100% - 40px, 1040px);
    }

    .news-hero {
        min-height: 680px;
    }

    .news-heading {
        display: block;
        padding: 110px 0 54px;
    }

    .news-heading > .eyebrow {
        margin-bottom: 20px;
    }

    .news-heading h1 {
        font-size: clamp(66px, 18vw, 106px);
    }

    .news-deck {
        max-width: 500px;
        margin-top: 42px;
    }

    .news-stories {
        padding-top: 28px;
    }

    .news-story {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
        padding: 48px 0 54px;
    }

    .story-rank {
        font-size: 38px;
    }

    .story-main h2 {
        font-size: clamp(36px, 10vw, 56px);
    }

    .story-summary {
        font-size: 16px;
    }

    .watch-list ol {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .masthead-inner,
    .briefings,
    .projects {
        width: min(100% - 28px, 1180px);
    }

    .wordmark-name,
    .domain {
        display: none;
    }

    .masthead {
        min-height: 560px;
    }

    .project {
        grid-template-columns: 32px minmax(0, 1fr) 26px;
    }

    .project-number {
        align-self: start;
        padding-top: 8px;
    }

    .news-shell,
    .news-stories,
    .watch-list-inner {
        width: min(100% - 28px, 1040px);
    }

    .news-home-link {
        max-width: 130px;
        text-align: right;
    }

    .news-story {
        display: block;
    }

    .story-rail {
        align-items: baseline;
        flex-direction: row;
        margin-bottom: 20px;
    }

    .story-why {
        padding: 21px 20px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
