/* Sunicorn: the brand's two tones and two families (sunicorn-brand/brand.typ in super-stack). */
:root {
    --ink: #141414;
    --paper: #F7F6F2;
    --body: #2b2b2b;
    --muted: #555;
    --faint: #888;
    --rule: #e4e0d8;
    --serif: Palatino, "Palatino Linotype", "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
    --sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 18px/1.55 var(--serif);
}
main {
    max-width: 40em;
    margin: 0 auto;
    padding: 1.6rem 1.5rem 5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(5rem, calc(3.5rem + env(safe-area-inset-bottom)));
}
p { margin: 0 0 1em; overflow-wrap: break-word; }
a { color: var(--ink); }
strong { font-weight: bold; }

/* The band: wordmark left, the few links right, a rule under, as on the key documents. */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 2.6rem;
}
.top img { display: block; height: 22.2px; width: auto; }
.top nav { font: .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 1.2rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

.kicker {
    font: .7rem/1.4 var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .8rem;
}
h1 { font-size: 1.85em; font-weight: normal; line-height: 1.2; margin: 0 0 .9rem; }
.lede { font-size: 1.1em; line-height: 1.5; margin: 0 0 1.5rem; }

.part { margin-top: 2.9rem; }
.part > h2 { font-size: 1.3em; font-weight: normal; line-height: 1.25; margin: 0 0 .85rem; }
.part > h2 .n {
    font: .68rem/1 var(--sans);
    color: var(--faint);
    letter-spacing: .06em;
    margin-right: .75rem;
    vertical-align: .3em;
}
h3 { font-size: 1em; font-weight: bold; margin: 1.6rem 0 .5rem; }

ul.l { list-style: none; padding: 0; margin: 0 0 1em; }
ul.l li { position: relative; padding-left: 1.05em; margin: 0 0 .5em; }
ul.l li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

.note { font: .74rem/1.5 var(--sans); color: var(--muted); margin: .5rem 0 1rem; }

/* A strip of facts: a label, a value, a line under it. */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem 1.3rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1.1rem 0;
    margin: 2rem 0 .4rem;
}
.facts div { min-width: 0; }
.facts .k, .fig .k { font: .62rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem; }
.facts .v, .fig .v { font-size: 1.35em; line-height: 1.15; margin: 0 0 .25rem; }
.facts .s, .fig .s { font: .72rem/1.4 var(--sans); color: var(--muted); margin: 0; }

.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; margin: .4rem 0 1.2rem; }
.fig { border-top: 1px solid var(--rule); padding-top: .7rem; }

table.t { width: 100%; border-collapse: collapse; font: .8rem/1.45 var(--sans); margin: .5rem 0 .3rem; }
.t th { text-align: left; font-weight: bold; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.t td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.t .r { text-align: right; padding-left: .9rem; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr.total td { font-weight: bold; border-bottom: 0; }
.t td.m { white-space: nowrap; width: 6.5em; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.15rem;
    margin: .2rem 0 .6rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, color .15s ease;
}
.btn:visited { color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover, .btn:visited:hover { background: var(--paper); color: var(--ink); }
}
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hint { font-size: .95em; color: var(--muted); margin: 0; }
.more { text-decoration: none; border-bottom: 1px solid var(--ink); }

/* The homepage's two practices. */
.practice { border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: 1.4rem; }
.practice:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* The record. */
.group { font: .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 1.6rem 0 .2rem; }
.item { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .55rem; margin-bottom: .3rem; }
.item-head a { text-decoration: none; }
.item-head a:hover { text-decoration: underline; }
.country { font: .6rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(20, 20, 20, .05); padding: .12rem .38rem; }
.role { font-size: .88em; color: var(--muted); }
.when { font: 600 .7rem/1.4 var(--sans); color: var(--faint); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item p { margin: 0; font-size: .95em; color: var(--body); }

.close { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.sign { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.sign img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.sign p { margin: 0; color: var(--muted); font-size: .95em; }
.sign .who { color: var(--ink); margin-bottom: .2rem; }
.close h2 { font-size: 1.3em; font-weight: normal; margin: 0 0 .9rem; }

footer { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font: .74rem/1.6 var(--sans); color: var(--faint); }
footer p { margin: 0 0 .2em; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
    body { font-size: 17px; }
    main { padding-top: 1.2rem; }
    .top { margin-bottom: 2rem; }
    h1 { font-size: 1.55em; }
    .facts { grid-template-columns: 1fr 1fr; }
    .t { font-size: .74rem; }
    .t td.m { width: 5.2em; }
    .when { margin-left: 0; width: 100%; }
}
@media (max-width: 380px) {
    .weeks { grid-template-columns: 1fr; }
}
