/* openTutor site: black and white, ruled like an annual report. Castoro for headings,
   Hanken Grotesk for text, both self-hosted so the page loads nothing from third parties. */

@font-face {
    font-family: "Castoro";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Castoro-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Castoro";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Castoro-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/HankenGrotesk-variable-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Hanken Grotesk";
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/HankenGrotesk-variable-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #111;
    --muted: #5c5c5c;
    --rule: #d4d4d4;
    --serif: "Castoro", "Baskerville", "Times New Roman", serif;
    --sans: "Hanken Grotesk", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

.masthead {
    border-bottom: 3px solid var(--ink);
}

.masthead .wrap {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding-top: 22px;
    padding-bottom: 14px;
}

.wordmark {
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

/* The T-figure mark sits on the wordmark's baseline and scales with its font size. */
.wordmark {
    white-space: nowrap;
}

.wordmark-mark {
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.18em;
    vertical-align: -0.14em;
}

.masthead nav {
    display: flex;
    gap: 1.4rem;
    margin-left: auto;
    font-size: 15px;
}

.masthead nav a {
    white-space: nowrap;
    text-decoration: none;
}

.masthead nav a:hover {
    text-decoration: underline;
}

.opening {
    padding: 88px 0 80px;
}

.opening h1 {
    margin: 0 0 28px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.opening > .wrap > p {
    max-width: 36em;
    margin: 0 0 64px;
    font-size: 20px;
}

.points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.points li {
    padding: 22px 24px 26px 0;
}

.points li + li {
    padding-left: 24px;
    border-left: 1px solid var(--rule);
}

/* The only colour on the page: one spot colour per point, a tinted disc under an offset line drawing. */
.points .icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: 8px 0 18px;
}

.points .icon .tint {
    fill: var(--tint);
}

.points .icon .glyph {
    fill: none;
    stroke: var(--tone);
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-open {
    --tone: #2747c4;
    --tint: #dde5ff;
}

.icon-safe {
    --tone: #12734a;
    --tint: #d3efdf;
}

.icon-free {
    --tone: #c4521f;
    --tint: #fde0cd;
}

.points h2 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15;
}

.points p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .opening {
        padding-top: 48px;
    }

    .points {
        grid-template-columns: 1fr;
    }

    .points li + li {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--rule);
    }
}

/* Phone header: a smaller wordmark so the page heading leads, and nav links padded to a
   44px tap height without making the bar taller. */
@media (max-width: 600px) {
    .masthead .wrap {
        align-items: center;
        gap: 1rem;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .wordmark {
        font-size: 25px;
    }

    .masthead nav {
        gap: 0;
        margin-right: -10px;
    }

    .masthead nav a {
        padding: 12px 10px;
        line-height: 20px;
    }
}

@media (max-width: 380px) {
    .masthead .wrap {
        gap: 10px;
    }

    .wordmark {
        font-size: 21px;
    }

    .masthead nav {
        font-size: 14px;
    }

    .masthead nav a {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media (max-width: 340px) {
    .wordmark {
        font-size: 19px;
    }

    .masthead nav {
        font-size: 13px;
    }

    .masthead nav a {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Footer: the mark and name on the left, the legal links on the right, the description below. */
.colophon {
    border-top: 3px solid var(--ink);
    font-size: 14px;
    color: var(--muted);
}

.colophon .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 24px;
    align-items: baseline;
    padding-top: 22px;
    padding-bottom: 48px;
}

.colophon-brand {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.colophon nav {
    display: flex;
    gap: 22px;
}

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

.colophon p {
    grid-column: 1 / -1;
    max-width: 52em;
    margin: 0;
    line-height: 1.5;
}
