:root {
    --yellow: #ffd000;
    --ink: #111;
    --muted: #666;
    --paper: #f5f3ec;
    --red: #eb272a
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--paper);
    color: var(--ink)
}

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

button,
input,
select {
    font: inherit
}

button,
a,
input,
select,
summary {
    outline-offset: 5px
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #b66a00
}

.skip {
    position: absolute;
    top: -80px
}

.skip:focus {
    top: 15px;
    background: white;
    padding: 12px;
    z-index: 20
}

header {
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: white;
    gap: 24px;
    border-bottom: 1px solid #333
}

.brand {
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1.5px
}

.brand span {
    color: #999
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 5px;
    color: #aaa
}

nav {
    display: flex;
    gap: 28px;
    font-size: 13px
}

nav a:hover {
    color: var(--yellow)
}

.edition {
    font-size: 11px;
    color: var(--yellow);
    letter-spacing: 1px
}

.hero {
    background: #111;
    color: white;
    padding: 65px 8% 65px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 70px;
    align-items: center
}

.eyebrow {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 22px
}

.hero .eyebrow {
    color: var(--yellow)
}

h1 {
    font-size: clamp(40px, 5.6vw, 80px);
    line-height: 1.03;
    letter-spacing: -4px;
    margin: 0 0 26px;
    font-weight: 800
}

h1 em {
    font-style: normal;
    color: var(--yellow)
}

.intro {
    color: #bababa;
    line-height: 1.7;
    font-size: 17px;
    max-width: 490px
}

.actions {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin: 32px 0 50px
}

.button {
    padding: 17px 22px;
    display: inline-flex;
    gap: 25px;
    justify-content: space-between;
    font-weight: bold;
    font-size: 12px
}

.yellow {
    background: var(--yellow);
    color: #111
}

.buy-now {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    background: var(--yellow);
    color: #111;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 6px 20px #0004
}

.buy-now[hidden] {
    display: none
}

.buy-now:hover {
    background: #ffe15c
}

.dark {
    background: #111;
    color: white
}

.textlink {
    font-size: 12px;
    border-bottom: 1px solid #777;
    padding-bottom: 7px
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid #333;
    padding-top: 25px
}

.hero-stats strong {
    font-size: 30px;
    display: block
}

.hero-stats small {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: #aaa;
    display: block;
    margin-top: 8px
}

.cover-wrap {
    position: relative;
    max-width: 330px;
    justify-self: center;
    transform: rotate(3deg)
}

.cover-wrap img {
    width: 100%;
    display: block;
    box-shadow: 18px 22px 0 #282720;
    border: 1px solid #444
}

.cover-caption {
    display: block;
    margin-top: 35px;
    font-size: 8px;
    letter-spacing: 2px;
    color: #aaa
}

.ticker {
    background: var(--yellow);
    padding: 23px 5%;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.ticker span {
    font-size: 17px
}

main>section:not(.hero) {
    padding: 75px 8%;
    border-bottom: 1px solid #d8d6cf
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 32px
}

h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    letter-spacing: -1.8px;
    margin: 0
}

.section-head>p {
    max-width: 340px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0
}

.country-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0
}

.country-tabs button {
    padding: 12px 18px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold
}

.country-tabs button[aria-pressed=true] {
    background: #111;
    color: white;
    border-color: #111
}

.market {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border: 1px solid #ddd
}

.market-info {
    padding: 35px;
    border-right: 1px solid #ddd
}

.market h3 {
    font-size: 30px;
    margin: 0 0 23px;
    letter-spacing: -1px
}

.market-total {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 12px 0
}

.label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--muted)
}

.market-info>p {
    line-height: 1.7;
    font-size: 14px;
    color: #555
}

.market-chart {
    padding: 35px
}

.chart-row {
    margin: 19px 0;
    font-size: 12px
}

.row-label {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px
}

.track {
    background: #eeede8;
    height: 12px
}

.fill {
    height: 100%;
    min-width: 2px
}

.footnote {
    font-size: 11px;
    line-height: 1.7;
    color: #666
}

.reader {
    margin-top: 18px;
    border: 1px solid #ccc;
    padding: 20px;
    background: #faf9f5
}

.reader summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between
}

.search-label {
    display: block;
    font-size: 11px;
    margin: 25px 0 10px
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #bbb;
    background: white
}

#chapter {
    max-height: 650px;
    overflow: auto;
    margin-top: 20px
}

#chapter p {
    font-size: 13px;
    line-height: 1.8
}

#chapter h4 {
    font-size: 13px;
    margin: 28px 0 12px
}

#chapter .table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    min-width: 100%;
    font-size: 11px
}

td,
th {
    padding: 11px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap
}

th {
    background: #eae7de
}

#compare {
    background: #e9e6dc
}

select {
    display: block;
    margin: 12px 0 22px;
    background: white;
    border: 1px solid #bbb;
    padding: 12px;
    max-width: 100%;
    font-size: 12px
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    font-size: 10px
}

.legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px
}

.compare-row {
    display: grid;
    grid-template-columns: 160px 1fr 120px;
    gap: 20px;
    align-items: center;
    margin: 24px 0;
    font-size: 12px
}

.stack {
    display: flex;
    background: #d7d4cb;
    height: 28px
}

.segment {
    height: 100%;
    min-width: 1px;
    cursor: help
}

.compare-total {
    font-size: 11px;
    text-align: right
}

.infographic {
    width: 100%;
    display: block;
    border: 1px solid #d4d1c8
}

.notes h2 {
    margin-bottom: 35px
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px
}

.note-grid h3 {
    font-size: 16px
}

.note-grid p {
    font-size: 12px;
    line-height: 1.9;
    color: #666
}

footer {
    background: #111;
    color: white;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between
}

footer p,
footer>a:not(.brand) {
    font-size: 11px;
    color: #aaa
}

.omd {
    font-size: 42px;
    font-weight: 900;
    color: red;
    letter-spacing: -3px
}

.omd small {
    display: block;
    font-size: 11px;
    letter-spacing: 0;
    text-align: center;
    color: white
}

@media(max-width:760px) {
    header {
        padding: 18px 6%;
        flex-wrap: wrap
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px
    }

    .hero {
        padding: 42px 6%;
        grid-template-columns: 1fr;
        gap: 40px
    }

    h1 {
        letter-spacing: -2px
    }

    .hero-stats {
        gap: 28px
    }

    .cover-wrap {
        max-width: 220px
    }

    .ticker {
        font-size: 10px;
        justify-content: center
    }

    .ticker span {
        display: none
    }

    main>section:not(.hero) {
        padding: 45px 6%
    }

    .section-head {
        display: block
    }

    .section-head>p {
        margin-top: 20px
    }

    .section-head>.button {
        margin-top: 25px
    }

    .market {
        grid-template-columns: 1fr
    }

    .market-info {
        border-right: 0;
        border-bottom: 1px solid #ddd;
        padding: 25px
    }

    .market-chart {
        padding: 25px
    }

    .market-total {
        font-size: 36px
    }

    .country-tabs button {
        flex: 1 1 28%;
        padding: 12px 8px
    }

    .compare-row {
        grid-template-columns: 1fr 100px;
        gap: 9px
    }

    .compare-row .stack {
        grid-row: 2;
        grid-column: 1/3
    }

    .compare-total {
        grid-column: 2;
        grid-row: 1
    }

    .note-grid {
        grid-template-columns: 1fr;
        gap: 10px
    }

    footer {
        flex-wrap: wrap
    }

    .infographic {
        min-height: 200px
    }

    .section-head h2 {
        font-size: 32px
    }
}

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

/* Motion reinforces navigation and changes without delaying interaction. */
@keyframes enter-content {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes grow-chart {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@media(prefers-reduced-motion:no-preference) {
    .hero>div:first-child {
        animation: enter-content .65s ease-out both
    }

    .cover-wrap {
        animation: cover-enter .85s cubic-bezier(.2, .7, .3, 1) both
    }

    @keyframes cover-enter {
        from {
            opacity: 0;
            transform: translateY(18px) rotate(0deg)
        }

        to {
            opacity: 1;
            transform: translateY(0) rotate(3deg)
        }
    }

    .market-info {
        animation: enter-content .28s ease-out both
    }

    .chart-row {
        animation: enter-content .32s ease-out both;
        animation-delay: calc(var(--order, 0)*35ms)
    }

    .fill {
        transform-origin: left;
        animation: grow-chart .55s cubic-bezier(.2, .7, .3, 1) both;
        animation-delay: calc(var(--order, 0)*35ms)
    }

    .compare-row {
        animation: enter-content .3s ease-out both;
        animation-delay: calc(var(--order, 0)*25ms)
    }

    .stack {
        transform-origin: left;
        animation: grow-chart .5s cubic-bezier(.2, .7, .3, 1) both
    }

    .reveal-pending {
        opacity: 0;
        transform: translateY(16px)
    }

    .reveal-visible {
        transition: opacity .55s ease-out, transform .55s ease-out;
        opacity: 1;
        transform: translateY(0)
    }

    .reader[open] #chapter {
        animation: enter-content .25s ease-out both
    }
}

.button,
.country-tabs button {
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease
}

nav a,
.textlink {
    transition: color .18s ease, border-color .18s ease
}

.reader summary span {
    transition: transform .2s ease;
    display: inline-block
}

.reader[open] summary span {
    transform: rotate(45deg)
}

@media(hover:hover) {
    .button:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 0 #0002
    }

    .country-tabs button:hover {
        background: #e5e1d5;
        transform: translateY(-2px)
    }

    .country-tabs button[aria-pressed=true]:hover {
        background: #333
    }

    .textlink:hover {
        color: var(--yellow);
        border-color: var(--yellow)
    }
}

.button:active,
.country-tabs button:active {
    transform: translateY(1px);
    box-shadow: none
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .reveal-pending {
        opacity: 1;
        transform: none
    }
}

.edition-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 18px 6%;
    background: #e8e5db;
    font-size: 12px;
    flex-wrap: wrap
}

.edition-switch span {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #666
}

.edition-switch a {
    padding: 9px 14px;
    border: 1px solid #bbb
}

.edition-switch a[aria-current=page] {
    background: #111;
    color: #ffd000;
    border-color: #111
}

.archive-hero {
    background: #111;
    color: white
}

.archive-hero .eyebrow {
    color: #ffd000
}

.archive-hero h1 {
    max-width: 900px
}

.archive-hero .intro {
    max-width: 650px
}

.archive-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 35px
}

.archive-jumps a {
    border: 1px solid #ccc;
    padding: 11px 16px;
    font-size: 12px
}

.archive-jumps a:hover {
    background: #111;
    color: white
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.archive-card {
    background: white;
    border: 1px solid #d8d6cf;
    padding: 30px;
    scroll-margin-top: 30px
}

.archive-card h3 {
    font-size: 29px;
    letter-spacing: -1px;
    margin: 15px 0 25px
}

.archive-value {
    display: block;
    font-size: 37px;
    letter-spacing: -1px;
    margin-bottom: 10px
}

.archive-card-top {
    border-bottom: 1px solid #ddd;
    padding-bottom: 24px
}

.archive-highlight {
    background: #ffd000;
    padding: 13px;
    font-weight: bold;
    font-size: 13px !important;
    color: #111 !important
}

.archive-card h4 {
    font-size: 13px;
    margin: 23px 0 7px
}

.archive-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.8
}

.archive-source {
    display: inline-block;
    font-size: 11px;
    border-bottom: 1px solid #aaa;
    padding-bottom: 5px;
    margin-top: 15px
}

.archive-missing {
    background: #e9e6dc
}

.notes a {
    text-decoration: underline;
    text-underline-offset: 3px
}

@media(max-width:760px) {
    header nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: 18px;
        row-gap: 14px
    }

    .archive-grid {
        grid-template-columns: 1fr
    }

    .archive-card {
        padding: 24px
    }

    .archive-value {
        font-size: 32px
    }

    .edition-switch {
        gap: 12px
    }

    .edition-switch span {
        width: 100%;
        text-align: center
    }
}
