/*
 * ChargeSpec marketing site.
 * Mirrors the app's design system (projects/chargespec/DESIGN.md,
 * "Triplicate Work Order"): canary ply by day, carbon ply by night,
 * white-ply boxes with 1.5px printed rules, 2px corners, no shadows,
 * Archivo variable at two widths (100 to read, 75 for printed captions),
 * tabular figures on every number.
 */

@font-face {
    font-family: "Archivo";
    src: url("/chargespec/fonts/archivo-var.woff2") format("woff2");
    font-weight: 400 900;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    /* Light: the canary ply */
    --ground: #F4E27A;     /* canary */
    --ply: #FBF8EE;        /* white-ply */
    --pink: #F2C7CF;       /* pink-ply */
    --ink: #1B1C1F;
    --ink-soft: #4D4733;
    --on-pink: #1B1C1F;
    --answer: #1B1C1F;     /* computed figures */
    --ballpoint: #1A52A8;  /* values a person wrote */
    --serial: #A8201A;
    --warn: #7A4A00;
    --pass: #1B5E33;
    --rule: #1B1C1F;
    --focus: #1A52A8;
    --sel-bg: #1B1C1F;
    --sel-fg: #FBF8EE;
    --btn-bg: #1B1C1F;
    --btn-fg: #FBF8EE;

    --rule-w: 1.5px;
    --radius: 2px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --measure: 40rem;
    --wide: 72rem;

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark: the carbon ply */
        --ground: #121314;     /* carbon */
        --ply: #1C1D20;        /* carbon-box */
        --pink: #3A2328;       /* carbon-pink */
        --ink: #ECE7D6;        /* paper */
        --ink-soft: #B8B19C;   /* paper-soft */
        --on-pink: #F6CDD5;    /* pink-ink */
        --answer: #F4E27A;     /* canary-ink */
        --ballpoint: #8EB8FF;
        --serial: #FF8A7A;
        --warn: #FFB866;
        --pass: #7FD69A;
        --rule: #8C8676;       /* carbon-rule: rules only, never text */
        --focus: #8EB8FF;
        --sel-bg: #F4E27A;
        --sel-fg: #121314;
        --btn-bg: #F4E27A;
        --btn-fg: #121314;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-color: var(--ink-soft) var(--ground);
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 400;
    font-stretch: 100%;
    line-height: 1.55;
    overflow-x: clip;
}

::selection {
    background: var(--sel-bg);
    color: var(--sel-fg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    text-wrap: balance;
    color: var(--ink);
}

p,
ul,
ol,
dl,
figure {
    margin: 0;
}

p {
    text-wrap: pretty;
}

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

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

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius);
}

code {
    font-family: var(--font);
    font-stretch: 75%;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.num,
.figure,
.serial,
td {
    font-variant-numeric: tabular-nums;
}

.nowrap {
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: 0.75rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    border-radius: var(--radius);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.wrap {
    width: 100%;
    max-width: var(--wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Printed caption type: condensed caps, the pre-printed form */
.caps {
    font-stretch: 75%;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

/* ---------- Top bar ---------- */

.topbar {
    border-bottom: var(--rule-w) solid var(--rule);
}

.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    width: 44px;
    height: 44px;
    border: var(--rule-w) solid var(--rule);
    border-radius: var(--radius);
}

.wordmark {
    font-size: 1.625rem;
    line-height: 1;
    font-weight: 900;
    font-stretch: 75%;
    letter-spacing: 0.01em;
}

.serial {
    display: flex;
    flex-direction: column;
    color: var(--serial);
    font-size: 0.8125rem;
    line-height: 1.15;
    font-weight: 700;
    font-stretch: 75%;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
}

.site-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.site-nav a[aria-current="page"] {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

/* ---------- Breadcrumb ---------- */

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.crumbs li + li::before {
    content: "\203A";
    padding-inline: 0.5rem;
    color: var(--ink-soft);
}

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

/* ---------- Page heads ---------- */

.page-head {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-head .crumbs {
    margin-bottom: 1.5rem;
}

.page-head h1 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-head .lede {
    max-width: var(--measure);
    margin-top: 1.25rem;
    font-size: 1.1875rem;
}

.hero-grid,
.split,
.band,
.ticket,
.nots,
.footer .wrap {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- Hero ---------- */

.hero {
    padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 7.2vw, 5rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.025em;
    max-width: 13ch;
}

.hero .sub {
    max-width: 34rem;
    margin-top: 1.5rem;
    font-size: clamp(1.125rem, 2vw, 1.3125rem);
    line-height: 1.5;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.cta-note {
    max-width: 30rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

/* Official Google Play badge: unmodified art with its own clear space */
.play-badge {
    display: inline-block;
    padding: 4px;
    margin: -4px;
    border-radius: 8px;
    line-height: 0;
}

.play-badge img {
    width: 188px;
    height: 56px;
}

.hero-shot {
    justify-self: center;
    width: min(100%, 24rem);
}

.phone {
    border: var(--rule-w) solid var(--rule);
    border-radius: var(--radius);
    background: var(--ply);
    overflow: hidden;
}

.hero-shot figcaption,
.shot figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

@media (min-width: 56rem) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 4rem;
    }

    .hero-shot {
        justify-self: end;
    }
}

/* ---------- Strip: the feature graphic's result line ---------- */

.strip {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.strip .box-body {
    padding-block: 1rem;
}

.chain {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0;
    list-style: none;
    font-size: clamp(1.375rem, 3.6vw, 2.25rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--answer);
    font-variant-numeric: tabular-nums;
}

.chain li {
    white-space: nowrap;
}

@media (max-width: 47.99rem) {
    .chain {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5em), max-content));
        gap: 0.25rem 1.5rem;
    }

    .chain li:first-child {
        grid-column: 1 / -1;
    }

    .chain li + li::before {
        display: none;
    }
}

.chain li + li::before {
    content: "\00B7";
    margin-right: 0.75rem;
    color: var(--ink-soft);
    font-weight: 400;
}

.chain .unit {
    font-stretch: 75%;
    text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section + .section {
    padding-top: 0;
}

.section-rule {
    border-top: var(--rule-w) solid var(--rule);
}

.section h2 {
    max-width: 24ch;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.section h2 + * {
    margin-top: 1.25rem;
}

.prose {
    max-width: var(--measure);
}

.prose > * + * {
    margin-top: 1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: 0.5rem;
}

.answer {
    max-width: var(--measure);
    font-size: 1.1875rem;
    line-height: 1.55;
    font-weight: 500;
}

.detail {
    max-width: var(--measure);
    color: var(--ink-soft);
}

.answer + .detail,
.detail + .detail,
.answer + .prose {
    margin-top: 1rem;
}

.split {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 60rem) {
    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: start;
    }
}

/* ---------- Ply boxes ---------- */

.box {
    background: var(--ply);
    color: var(--ink);
    border: var(--rule-w) solid var(--rule);
    border-radius: var(--radius);
}

.box.pink {
    background: var(--pink);
    color: var(--on-pink);
}

.box.pink h2,
.box.pink h3,
.box.pink .box-h,
.box.pink .detail,
.box.pink .shoulder,
.box.pink .shoulder span {
    color: var(--on-pink);
}

.box-h {
    display: flex;
    align-items: stretch;
    min-height: 2.5rem;
    border-bottom: var(--rule-w) solid var(--rule);
    font-size: 1rem;
    line-height: 1.25;
}

.box-h .no {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.75rem;
    padding: 0.5rem;
    border-right: var(--rule-w) solid var(--rule);
}

.box-h .title {
    flex: 1 1 auto;
    align-self: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.box-h .trail {
    align-self: center;
    padding: 0.375rem 0.75rem;
    color: var(--serial);
}

.box.pink .box-h .trail {
    color: var(--on-pink);
}

.box-body {
    padding: 1rem;
}

.box-body > * + * {
    margin-top: 0.75rem;
}

/* The ticket: boxes stacked in chain order */
.ticket {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .ticket.cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket.cols > .span {
        grid-column: 1 / -1;
    }
}

/* Answer row: text, then the NEC citation shoulder behind a hairline */
.row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.shoulder {
    min-width: 6.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--rule);
    font-size: 0.8125rem;
    line-height: 1.3;
    font-weight: 600;
    font-stretch: 75%;
    letter-spacing: 0.04em;
    color: var(--ink);
    list-style: none;
    margin: 0;
}

.shoulder li:first-child {
    color: var(--ink-soft);
}

.shoulder li + li {
    margin-top: 2px;
}

/* ---------- Perforation: the tear between free and Pro ---------- */

.perf {
    position: relative;
    height: 28px;
    margin-block: 1rem;
}

.perf::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: var(--rule-w) dashed var(--rule);
}

.perf .notch {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--rule);
}

.perf .notch:first-child {
    left: calc(var(--gutter) * -1 - 8px);
}

.perf .notch:last-child {
    right: calc(var(--gutter) * -1 - 8px);
}

.perf.bleed::before {
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
}

/* ---------- Stamps: word plus a mark that reads in greyscale ---------- */

.stamp {
    display: inline-flex;
    align-items: stretch;
    min-height: 2.25rem;
    border: 2px solid currentColor;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.stamp .mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
}

.stamp .mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.stamp .word {
    align-self: center;
    padding: 0.25rem 0.625rem;
}

.stamp.pass {
    color: var(--pass);
}

.stamp.pass .mark,
.stamp.pro .mark {
    background: currentColor;
}

.stamp.pass .mark svg,
.stamp.pro .mark svg {
    fill: var(--ply);
}

.stamp.warn {
    color: var(--warn);
}

.stamp.warn .mark {
    overflow: hidden;
}

.stamp .mark svg.hatch {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.stamp.pro {
    color: var(--ink);
}

.box.pink .stamp.pro {
    color: var(--on-pink);
}

.box.pink .stamp.pro .mark svg {
    fill: var(--pink);
}

/* ---------- Worked example ---------- */

.worked {
    display: grid;
    gap: 0;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: var(--rule-w) solid var(--rule);
}

.worked > li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0 1rem;
    padding-block: 1.25rem;
    border-bottom: var(--rule-w) solid var(--rule);
    counter-increment: step;
}

.worked > li::before {
    content: counter(step);
    grid-row: 1 / span 3;
    padding-top: 0.25rem;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.worked .figure {
    display: block;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--answer);
}

.worked .figure small {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
}

.worked p {
    margin-top: 0.375rem;
}

.worked .stamp {
    justify-self: start;
    margin-top: 0.75rem;
}

.worked-caption {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

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

@media (min-width: 60rem) {
    .pair {
        position: sticky;
        top: 1.5rem;
    }
}

/* ---------- "Is not" list ---------- */

.nots {
    display: grid;
    gap: 0;
    margin-top: 1.75rem;
    padding: 0;
    list-style: none;
    border-top: var(--rule-w) solid var(--rule);
    max-width: var(--measure);
}

.nots li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    padding-block: 0.875rem;
    border-bottom: var(--rule-w) solid var(--rule);
}

.nots svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--ink);
    transform: translateY(2px);
}

/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 72rem) {
    .gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ---------- Question links ---------- */

.qlinks {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
    border-top: var(--rule-w) solid var(--rule);
    max-width: var(--measure);
}

.qlinks li {
    border-bottom: var(--rule-w) solid var(--rule);
}

.qlinks a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    min-height: 48px;
    padding-block: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
}

.qlinks a::after {
    content: "\2192";
    flex: 0 0 auto;
    font-weight: 700;
}

.qlinks a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.toc {
    columns: 2 18rem;
    column-gap: 2.5rem;
    max-width: none;
}

.toc li {
    break-inside: avoid;
}

/* ---------- Call to action band ---------- */

.band {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.band h2 {
    max-width: 20ch;
}

@media (min-width: 48rem) {
    .band {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2rem;
    }
}

/* ---------- FAQ ledger ---------- */

.ledger {
    border-top: var(--rule-w) solid var(--rule);
}

.ledger > section {
    padding-block: 1.75rem;
    border-bottom: var(--rule-w) solid var(--rule);
}

.ledger h2 {
    max-width: 30ch;
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ledger h2 + * {
    margin-top: 0.75rem;
}

/* How-it-works steps: boxes with an H2 in the header */
.steps .box-h .title {
    font-size: 1rem;
}

.steps .box-body {
    padding: 1rem;
}

@media (min-width: 48rem) {
    .steps .box-body {
        padding: 1.5rem;
    }
}

.steps .box-body > * + * {
    margin-top: 1rem;
}

blockquote.disclaimer {
    margin: 0;
    padding: 1rem;
    max-width: var(--measure);
    border: var(--rule-w) dashed currentColor;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

/* ---------- Tables (stack below 600px) ---------- */

.table {
    width: 100%;
    max-width: 48rem;
    border-collapse: collapse;
    background: var(--ply);
    color: var(--ink);
    border: var(--rule-w) solid var(--rule);
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    border-bottom: var(--rule-w) solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.table thead th {
    font-size: 0.875rem;
    font-weight: 800;
    font-stretch: 75%;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

@media (max-width: 37.5rem) {
    .table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table,
    .table tbody,
    .table tr,
    .table th,
    .table td {
        display: block;
    }

    .table tr {
        border-bottom: var(--rule-w) solid var(--rule);
    }

    .table tr:last-child {
        border-bottom: 0;
    }

    .table th,
    .table td {
        border-bottom: 0;
        padding-block: 0.5rem;
    }

    .table [data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.8125rem;
        font-weight: 800;
        font-stretch: 75%;
        letter-spacing: 0.075em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }
}

/* ---------- Footer ---------- */

.footer {
    margin-top: clamp(3rem, 7vw, 5rem);
    border-top: var(--rule-w) solid var(--rule);
    padding-block: 2.5rem 3rem;
    font-size: 0.9375rem;
}

.footer .wrap {
    display: grid;
    gap: 2rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.fine {
    display: grid;
    gap: 0.5rem;
    max-width: 52rem;
    color: var(--ink-soft);
    font-size: 0.875rem;
}

/* ---------- The one motion: carbon transfer down the chain ---------- */

@media (prefers-reduced-motion: no-preference) {
    .strip .chain li {
        animation: impress 420ms var(--ease-out) both;
    }

    .strip .chain li:nth-child(2) { animation-delay: 120ms; }
    .strip .chain li:nth-child(3) { animation-delay: 200ms; }
    .strip .chain li:nth-child(4) { animation-delay: 280ms; }
    .strip .chain li:nth-child(5) { animation-delay: 360ms; }

    @keyframes impress {
        from {
            opacity: 0.4;
            transform: scale(0.98);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

@media print {
    .topbar nav,
    .skip-link,
    .play-badge {
        display: none;
    }
}

.worked > li > * {
    grid-column: 2;
}

.big-figure {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--answer);
}

main {
    overflow-x: clip;
}

.box-h .title {
    max-width: none;
}

.hero + .section {
    padding-top: 0;
}

.nots.ruled li {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 40rem) {
    .row {
        grid-template-columns: minmax(0, 1fr);
    }

    .shoulder {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
    }

    .shoulder li + li {
        margin-top: 0;
    }
}

.prose-list {
    max-width: 48rem;
}

.prose-list strong {
    font-weight: 700;
}

.table code {
    font-weight: 600;
}

.nots.prose-list li {
    display: block;
}

.detail + .table,
.table + .detail,
.lede + .detail {
    margin-top: 1rem;
}

.brand {
    flex-wrap: wrap;
}

h1,
h2,
h3 {
    overflow-wrap: break-word;
}

.box-h {
    flex-wrap: wrap;
}

.box-h .title {
    min-width: 0;
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

@media (max-width: 47.99rem) {
    .chain li {
        white-space: normal;
    }
}

.stamp {
    max-width: 100%;
    white-space: normal;
}


.stamp .word {
    min-width: 0;
    overflow-wrap: anywhere;
}
