/* getshall.com — SHALL
 *
 * One stylesheet, no external requests of any kind. No fonts fetched, no
 * analytics, no third-party anything. The product's claim is that nothing
 * leaves the device it does not have to; a site that phones home while making
 * that claim would be the joke that writes itself.
 *
 * The palette is not invented here. It is the one the keyboard already ships:
 * warm greys and a near-black, no hue anywhere. The app icon — a caret bar on
 * warm white, mirrored on near-black — is the only mark.
 */

:root {
    /* Light — the warm-white ground of the icon's left half. */
    --ground:        #F4F3EF;
    --raised:        #FDFCFA;
    --ink:           #1C1B19;
    --ink-secondary: #56534D;
    --ink-tertiary:  #85817A;
    --rule:          #DFDBD4;
    --rule-strong:   #C9C4BC;
    --mark:          #141312;

    --measure: 34rem;
    --gutter: 1.5rem;

    --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
    --step-0:  clamp(1.0rem, 0.97rem + 0.16vw, 1.12rem);
    --step-1:  clamp(1.2rem, 1.13rem + 0.34vw, 1.42rem);
    --step-2:  clamp(1.5rem, 1.36rem + 0.68vw, 1.95rem);
    --step-3:  clamp(2.0rem, 1.72rem + 1.4vw, 2.9rem);
    --step-4:  clamp(2.6rem, 2.0rem + 2.9vw, 4.4rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark — the near-black ground of the icon's right half. */
        --ground:        #141312;
        --raised:        #1C1B19;
        --ink:           #F4F3EF;
        --ink-secondary: #A8A49C;
        --ink-tertiary:  #7A7770;
        --rule:          #2E2C29;
        --rule-strong:   #3A3835;
        --mark:          #F4F3EF;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    /* The system stack, deliberately. On the platform this product ships for,
     * -apple-system is SF — the same typeface the app draws with. Nothing is
     * downloaded to achieve that. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: var(--step-0);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Skeleton ---------- */

.wrap {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--wide { max-width: calc(52rem + 2 * var(--gutter)); }

/* ---------- Masthead ---------- */

.masthead {
    border-bottom: 1px solid var(--rule);
    background: var(--ground);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.05rem;
    flex-wrap: wrap;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: var(--step-0);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wordmark:hover { color: var(--ink); }

/* The mark, drawn rather than fetched: the icon's two bars, one on each
 * ground, at the size a favicon would be. */
.wordmark__mark {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 5px;
    border: 1px solid var(--rule-strong);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    font-size: var(--step--1);
}

.nav a {
    color: var(--ink-secondary);
    text-decoration: none;
    padding-block: 0.2rem;
    border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--rule-strong);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
    line-height: 1.14;
    letter-spacing: -0.028em;
    font-weight: 600;
    text-wrap: balance;
    margin: 0;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.018em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-secondary); }

strong { font-weight: 600; }

code, pre {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.885em;
}

code {
    background: var(--raised);
    border: 1px solid var(--rule);
    border-radius: 5px;
    padding: 0.12em 0.38em;
    word-break: break-word;
}

pre {
    background: var(--raised);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    line-height: 1.5;
    margin: 0 0 1.4em;
}

pre code { background: none; border: 0; padding: 0; }

blockquote {
    margin: 0 0 1.4em;
    padding-left: 1.1rem;
    border-left: 2px solid var(--rule-strong);
    color: var(--ink-secondary);
}

hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 2.75rem 0;
}

ul, ol { margin: 0 0 1.3em; padding-left: 1.25rem; }
li { margin-bottom: 0.5em; }
li > ul, li > ol { margin-top: 0.5em; margin-bottom: 0.4em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-size: var(--step--1);
}

th, td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

th { font-weight: 600; }

.scroller { overflow-x: auto; }

/* ---------- Document pages (privacy, support) ---------- */

.doc { padding-block: 3.5rem 4.5rem; }

.doc h1 { margin-bottom: 0.65rem; }
.doc h2 { margin-top: 3rem; margin-bottom: 0.85rem; }
.doc h3 { margin-top: 2.1rem; margin-bottom: 0.6rem; }
.doc h2 + h3 { margin-top: 1.4rem; }

.doc__meta {
    color: var(--ink-tertiary);
    font-size: var(--step--1);
    margin-bottom: 2.75rem;
}

.doc__meta p { margin-bottom: 0.3em; }

.doc__lede {
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--ink-secondary);
    letter-spacing: -0.015em;
    margin-bottom: 2.25rem;
}

/* ---------- Landing ---------- */

.hero { padding-block: clamp(4rem, 12vh, 7.5rem) clamp(3rem, 8vh, 5rem); }

.hero h1 {
    font-size: var(--step-4);
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.hero__lede {
    font-size: var(--step-1);
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--ink-secondary);
    max-width: 30rem;
    margin-bottom: 2rem;
}

.eyebrow {
    display: inline-block;
    font-size: var(--step--1);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 1.5rem;
}

.section {
    padding-block: clamp(3rem, 7vh, 4.5rem);
    border-top: 1px solid var(--rule);
}

.section__head { margin-bottom: 2.25rem; }
.section__head h2 { margin-bottom: 0.7rem; }
.section__head p { color: var(--ink-secondary); margin-bottom: 0; max-width: 32rem; }

.grid {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
    grid-template-columns: 1fr;
    margin-bottom: 1.6rem;
}

.grid:last-child { margin-bottom: 0; }

@media (min-width: 44rem) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
    background: var(--ground);
    padding: 1.6rem 1.5rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-secondary); font-size: var(--step--1); margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 1.6rem; counter-reset: step; }
.steps:last-child { margin-bottom: 0; }

.steps li {
    counter-increment: step;
    padding: 1.25rem 0 1.25rem 3rem;
    border-bottom: 1px solid var(--rule);
    position: relative;
    margin: 0;
}

.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li:first-child { padding-top: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    font-size: var(--step--1);
    font-variant-numeric: tabular-nums;
    color: var(--ink-secondary);
}

.steps li:first-child::before { top: 0; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-secondary); font-size: var(--step--1); margin-bottom: 0; }

.note {
    margin-bottom: 1.6rem;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--raised);
    padding: 1.4rem 1.5rem;
}

.note:last-child { margin-bottom: 0; }
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-bottom: 0.5rem; }

.linkrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    font-size: var(--step-0);
}

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

.foot {
    border-top: 1px solid var(--rule);
    padding-block: 2.25rem 3rem;
    color: var(--ink-tertiary);
    font-size: var(--step--1);
}

.foot__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.9rem 2rem;
}

.foot a { color: var(--ink-secondary); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }

/* ---------- Accessibility ---------- */

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--raised);
    color: var(--ink);
    padding: 0.7rem 1rem;
    border: 1px solid var(--rule-strong);
    border-radius: 0 0 8px 0;
    z-index: 10;
}

.skip:focus { left: 0; }

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