/* Privacy, Support, Terms and 404: the home page's paper, Instrument Serif and hairlines, set for reading.
   Loaded after table.css, which brings the tokens, the masthead, the footer and the base styles. */

/* Masthead: the same bar as the home page, with the pages' own links and the sign-up always on show. */
.mast__nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.mast__nav a { padding: 10px 0; color: var(--body); text-decoration: none; }
.mast__nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--draft); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .mast__nav a:hover { color: var(--ink); } }
.mast__nav .optional { display: none; }
@media (min-width: 720px) { .mast__nav .optional { display: inline; } }
.is-page .mast__cta { margin-left: 20px; opacity: 1; visibility: visible; transition: background 150ms ease, color 150ms ease; }
@media (max-width: 559px) { .is-page .mast__cta { display: none; } } /* phones: wordmark and links; the footer has the rest */

/* The reading column */
.page { padding: calc(var(--mast) + 72px) var(--gut-r) 120px var(--gut); }
.page .wrap { max-width: 720px; margin: 0 auto; }
.page h1 { margin: 0; font: 400 clamp(48px, 8vw, 96px)/0.96 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.page h1 em { font-style: italic; }
.page .updated { margin: 18px 0 48px; font: 500 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.page h2 { margin: 64px 0 16px; padding-top: 20px; border-top: 1px solid var(--hair); font: 400 clamp(28px, 3.4vw, 36px)/1.05 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.page p, .page li { max-width: 68ch; color: var(--body); }
.page p { margin: 0 0 14px; }
.page ul { margin: 0 0 14px; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page li::marker { color: var(--draft); }
.page strong { color: var(--ink); font-weight: 600; }
.page a { color: var(--ink); text-decoration-color: var(--draft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .page a:hover { text-decoration-thickness: 2px; } }

/* The short version: set between two dashed draft rules, the home page's mark for "this is the draft". */
.callout { margin: 0 0 40px; padding: 22px 0; border-top: 1px dashed var(--draft); border-bottom: 1px dashed var(--draft); }
.callout p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); }
.callout p + p { margin-top: 10px; font-size: 17px; color: var(--body); }

/* Questions: serif rows between hairlines, a drawn plus that turns into a minus. */
.faq { margin: 0 0 8px; border-bottom: 1px solid var(--hair); }
.page h2 + .faq { margin-top: 4px; }
.faq details { border-top: 1px solid var(--hair); }
.page h2 + .faq details:first-child { border-top: 0; }
.faq summary { position: relative; padding: 18px 44px 18px 0; list-style: none; cursor: pointer; font: 400 22px/1.25 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--deep); transition: transform 200ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > *:not(summary) { margin: 0 0 20px; }

/* A plain sentence under the title (Support, 404) instead of a date line */
.page .page__lede { margin: 20px 0 40px; font-size: 19px; }

/* 404's way back */
.page .button { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 980px; background: var(--ink); color: #fff; font: 600 17px/1 var(--sans); text-decoration: none; transition: transform 150ms var(--ease), background 150ms ease; }
.page .button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .page .button:hover { background: #30333b; } }

@media (prefers-reduced-motion: reduce) { .faq summary::before, .faq summary::after, .page .button { transition: none; } }
