/* Shared by the guide and feature pages (turn-off-macbook-logo.html and friends, and the
   nl/ and de/ translations). Loaded as guide.css?v=N; bump N when this file changes. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ink: #f5f5f4;
  --ink-2: #a1a1a6;
}
* { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 19px/1.55 var(--font); letter-spacing: -.012em; color: var(--ink); background: #000; -webkit-font-smoothing: antialiased; }
::selection { background: #fff; color: #000; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.nav { max-width: 1040px; margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
/* The wordmark, steady here; it breathes on the home page. */
.brand { --g: .75; position: relative; isolation: isolate; display: inline-block; padding: 4px 0;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; color: #fff; }
.brand::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; height: 260%; z-index: -1;
  transform: translate(-50%, -50%) scale(calc(.85 + var(--g) * .15)); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.32), rgba(255,255,255,.12) 45%, rgba(255,255,255,0));
  opacity: var(--g); filter: blur(2px); }
.button { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #000; font: 500 17px/1.2 var(--font); letter-spacing: -.01em; text-decoration: none; transition: opacity .2s; }
.button:hover { opacity: .86; }
.button.small { font-size: 14px; padding: 7px 14px; }
.button.quiet { background: #2c2c2e; color: var(--ink); }
main { max-width: 680px; margin: 0 auto; padding: 72px 22px 120px; }
.langs { margin: 0 0 28px; font-size: 14px; color: var(--ink-2); }
.langs a { text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs [aria-current] { color: var(--ink); }
h1 { margin: 0; font-size: clamp(40px, 6.4vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
.lead { margin: 22px 0 0; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
h2 { margin: 64px 0 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 32px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
p, li { color: var(--ink-2); }
p { margin: 0; }
main p + p { margin-top: 14px; }
strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
main p + .cta { margin-top: 26px; }
ol, ul { margin: 0; padding-left: 1.3em; }
ol li + li, ul li + li { margin-top: 12px; }
ol li::marker { color: var(--ink); font-weight: 600; }
main p + ol, main p + ul { margin-top: 14px; }
/* Commands: one line, scroll sideways on a phone, with a copy button. */
.cmd { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 12px 12px 16px; border-radius: 12px; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 15px/1.5 var(--mono); color: var(--ink); scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd button { flex: none; appearance: none; border: 0; border-radius: 999px; padding: 6px 12px; background: #3a3a3c; color: #fff; font: 500 13px/1.2 var(--font); cursor: pointer; }
.cmd button:hover { background: #48484a; }
.note { margin-top: 18px; font-size: 16px; }
main p.source { margin-top: 14px; font-size: 15px; }
.more { margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.more h2 { margin-top: 0; font-size: 19px; }
.more ul { list-style: none; padding: 0; }
.more li + li { margin-top: 8px; }
/* Footer, the same as the home page's: who made it, link columns, then the small print. */
footer { padding: 72px 22px 48px; font-size: 14px; color: var(--ink-2); }
footer p { color: var(--ink-2); }
.foot { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 32px; }
.foot h2 { margin: 0 0 12px; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { color: #fff; font-size: 17px; }
.maker p { margin: 8px 0 0; max-width: 22em; line-height: 1.5; }
.maker .by { margin-top: 16px; font-size: 17px; color: var(--ink); }
.foot .by a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.foot .by a:hover { text-decoration-color: currentColor; }
.maker p:not(.by) a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.maker p:not(.by) a:hover { color: var(--ink); text-decoration-color: currentColor; }
/* Email signup in the footer (signup.js). */
.signup { margin-top: 22px; max-width: 24em; }
.signup label { display: block; margin-bottom: 10px; color: var(--ink); }
.signup .row { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .2s; }
.signup .row:focus-within { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.signup input { flex: 1; min-width: 0; appearance: none; border: 0; background: none; padding: 8px 4px 8px 14px; color: var(--ink); font: 16px/1.2 var(--font); outline: none; }
.signup input::placeholder { color: #6e6e73; }
.signup button { flex: none; appearance: none; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--ink); color: #000; font: 500 14px/1.2 var(--font); cursor: pointer; transition: opacity .2s; }
.signup button:hover { opacity: .86; }
.signup button:disabled { opacity: .5; cursor: default; }
.maker .signup-msg { min-height: 1.5em; margin-top: 8px; font-size: 13px; }
.signup.done .row { display: none; }
.signup.done label { display: none; }
.maker .signup.done .signup-msg { margin-top: 0; font-size: 14px; color: var(--ink); }
.fine { max-width: 1040px; margin: 56px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12px; }
.fine p { margin: 0; }
.fine a { color: var(--ink-2); text-decoration: none; }
.fine a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.fine [aria-current] { color: var(--ink); }
/* Japanese, Korean and Chinese: no tight tracking, and break headings at natural phrase boundaries. */
:lang(ja), :lang(ko), :lang(zh) { letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: -.01em; word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p, :lang(ko) li { word-break: keep-all; }
@media (max-width: 760px) {
  body { font-size: 17px; }
  main { padding: 48px 20px 96px; }
  .lead { font-size: 19px; }
  h2 { margin-top: 52px; font-size: 23px; }
  .cmd code { font-size: 14px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .maker { grid-column: 1 / -1; }
}
