/* Bricolage Grotesque, self-hosted (SIL Open Font License 1.1, fonts/OFL.txt). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: a forest hero that is the app icon's own scene (an iPhone resting on the easel, legs standing on the hero's floor), then quiet mist-green bands in one 1120px column; the footer goes back to forest. */
:root {
  /* From the app icon. The same in both themes. */
  --forest: #3A5A47;
  --forest-deep: #28412F;
  --forest-tint: #4B8B65;
  --pine: #C9925A;
  --pine-shade: #A8743F;
  --on-forest: #F3F1E9;
  --on-forest-2: rgba(243, 241, 233, .78);
  --on-forest-line: rgba(243, 241, 233, .3);
  --bezel: #0D120F;

  /* The page */
  --bg: #EEF3EF;
  --bg-2: #E3EBE5;
  --surface: #FFFFFF;
  --ink: #16221A;
  --ink-2: #4A5B50;
  --line: #D3DED6;
  --line-strong: #AFC1B5;
  --link: #2E6B4A;
  --pine-ink: #87582A;
  --btn: #3A5A47;
  --btn-ink: #FFFFFF;
  --sys-blue: #007AFF;
  --ok: #34A853;
  --bad: #B83A2E;
  --shadow: rgba(22, 34, 26, .16);
  --focus: #87582A;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1611;
    --bg-2: #121D16;
    --surface: #18241C;
    --ink: #E6EDE8;
    --ink-2: #A0B1A6;
    --line: #26362C;
    --line-strong: #3A4E41;
    --link: #8BCBA4;
    --pine-ink: #DCA672;
    --btn: #C9925A;
    --btn-ink: #1C140B;
    --sys-blue: #0A84FF;
    --ok: #4CC27A;
    --bad: #F08377;
    --shadow: rgba(0, 0, 0, .5);
    --focus: var(--pine);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1611;
  --bg-2: #121D16;
  --surface: #18241C;
  --ink: #E6EDE8;
  --ink-2: #A0B1A6;
  --line: #26362C;
  --line-strong: #3A4E41;
  --link: #8BCBA4;
  --pine-ink: #DCA672;
  --btn: #C9925A;
  --btn-ink: #1C140B;
  --sys-blue: #0A84FF;
  --ok: #4CC27A;
  --bad: #F08377;
  --shadow: rgba(0, 0, 0, .5);
  --focus: var(--pine);
  color-scheme: dark;
}

/* No grey box over what's tapped on iOS: buttons and rows shrink a little
   while pressed, and links dim, instead (press.js lets iOS show it). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* Focus rings at 3:1 or more on every surface: the darker pine on the
   light page and its white cards, cream on the forest. */
.hero :focus-visible, .foot :focus-visible { outline-color: var(--on-forest); }
/* Paragraphs don't end on a word alone, where the browser can help it. */
p, .r-text > span, .needs li > span, .points li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pine { background: var(--pine); color: #1C140B; }
.btn-ghost { color: var(--on-forest); border-color: var(--on-forest-line); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-secondary { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero {
  color: var(--on-forest);
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  overflow: hidden;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-forest); text-decoration: none; font: 700 23px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; outline: 1px solid rgba(255, 255, 255, .18); outline-offset: -1px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--on-forest-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links .gh { display: inline-flex; align-items: center; gap: 7px; color: var(--on-forest); }
.nav-links .gh svg { width: 20px; height: 20px; }
@media (max-width: 719px) {
  .nav-links { gap: 18px; }
  .nav-links .section-link { display: none; }
  /* On a phone GitHub is just its mark, which leaves room for Donate. */
  .nav-links .gh { min-width: 38px; min-height: 38px; justify-content: center; }
  .nav-links .gh-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* An iPhone with Display Zoom on is 320 points wide. */
@media (max-width: 359px) { .nav-links { gap: 10px; } .nav-links .gh { min-width: 28px; } }
/* Donate, the nav's last item on every page: an outlined pill with the
   easel's pine heart, so it reads as a button without competing with the
   hero's. It opens /donate (public/_redirects). */
.nav-links .donate {
  display: inline-flex; align-items: center; gap: 6px;
  box-sizing: border-box; min-height: 38px; padding: 0 15px 0 12px; border-radius: 999px;
  border: 1px solid var(--on-forest-line); color: var(--on-forest);
  transition: border-color .15s ease, transform .15s ease;
}
.nav-links .donate:active { transform: scale(.97); }
.nav-links .donate svg { width: 16px; height: 16px; flex: none; fill: var(--pine); }

.hero-grid { display: grid; gap: 36px; padding-top: 28px; }
.hero-grid > *, .install-grid > *, .faq-grid > * { min-width: 0; }
.hero-copy { padding-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--on-forest-line);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);
  font-weight: 800; font-stretch: 88%; line-height: .98; letter-spacing: -.028em;
  max-width: 11em;
  isolation: isolate;
}
.hero h1 .tray { position: relative; white-space: nowrap; }
.hero h1 .tray::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.02em;
  height: .13em; border-radius: 1em; background: var(--pine); z-index: -1;
}
.hero h1 .tray-text { position: relative; z-index: 1; }
.lede { margin-top: 22px; max-width: 33em; color: var(--on-forest-2); font-size: clamp(1.06rem, .98rem + .4vw, 1.25rem); line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--on-forest-2); }

.scene { margin: 0; width: min(100%, 330px); justify-self: center; }
.scene svg { display: block; width: 100%; height: auto; }
.leg { stroke: var(--pine); stroke-width: 24; stroke-linecap: round; fill: none; }
.leg-back { stroke: var(--pine-shade); stroke-width: 16; stroke-linecap: round; fill: none; }
.wood { fill: var(--pine); }
.wood-shade { fill: var(--pine-shade); }
.bezel { fill: var(--bezel); }
.phone { transform-box: fill-box; animation: settle .6s cubic-bezier(.2, .75, .25, 1) .1s both; }
@keyframes settle { from { transform: translateY(-26px); } to { transform: none; } }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: 24px; padding-top: 40px; }
  .hero-copy { align-self: center; padding-bottom: 48px; }
  .scene { justify-self: end; width: min(100%, 460px); }
}

/* Bands */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.alt { background: var(--bg-2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-ink); margin-bottom: 14px; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.05rem); font-weight: 750; font-stretch: 92%; line-height: 1.04; letter-spacing: -.022em; max-width: 17em; }
.section-lede { margin-top: 18px; max-width: 36em; color: var(--ink-2); font-size: 1.125rem; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }

/* How it works: Atelier's own install bar, three times */
.pipeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 860px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.pipeline li { display: grid; gap: 18px; align-content: start; min-width: 0; }
.bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 32px -24px var(--shadow);
  max-width: 360px;
}
.tile { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(140deg, #5E86F9, #9C62F2); }
.tile svg { width: 22px; height: 22px; }
.bar-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.bar-text strong { font-size: 15px; font-weight: 600; }
.bar-text span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { flex: none; width: 28px; height: 28px; }
.ring .track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring .fill { fill: none; stroke: var(--sys-blue); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 14px 14px; }
.ring.spin { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring .done { fill: var(--ok); }
.step-title { display: flex; align-items: baseline; gap: 10px; }
.step-title .n { font-family: var(--display); font-weight: 800; color: var(--pine-ink); }
.pipeline p { color: var(--ink-2); max-width: 30em; }

/* Features */
.features { margin-top: 56px; display: grid; gap: 36px 44px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { border-top: 1px solid var(--line-strong); padding-top: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.f-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--pine-ink); background: color-mix(in srgb, var(--pine) 18%, transparent); margin-bottom: 4px; }
.f-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-2); }
/* On a phone, each icon sits beside its title, and the text runs under
   both. */
@media (max-width: 639px) {
  .features { gap: 30px; margin-top: 44px; }
  .feature { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center; padding-top: 20px; }
  .f-icon { margin-bottom: 0; }
  .feature p { grid-column: 1 / -1; }
}
.also { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.also strong { color: var(--ink); font-weight: 600; }

/* Screens */
.shots {
  margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 72%);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin;
}
/* Until the three fit side by side, the screenshots swipe off the screen's
   edges, past the column's gutters, and rest lined up with the text. */
@media (max-width: 819px) {
  .shots {
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))) calc(-1 * max(20px, env(safe-area-inset-right, 0px)));
    padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
  }
}
@media (min-width: 820px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 32px; } }
.shot { margin: 0; scroll-snap-align: start; min-width: 0; }
.device { background: var(--bezel); padding: 7px; border-radius: 42px; max-width: 290px; box-shadow: 0 34px 60px -34px var(--shadow); }
.device img { display: block; width: 100%; height: auto; border-radius: 35px; }
.shot figcaption { margin-top: 16px; max-width: 290px; color: var(--ink-2); font-size: 15px; }
.shot figcaption strong { color: var(--ink); font-weight: 600; }

/* Install: on the home page, Get Atelier's ways to install it, one row
   each (#152). The ones still to build are outlined, with a grey icon, and
   say Coming soon or Planned; the ones that work are filled rows that open
   their pages. */
.install-grid { display: grid; gap: 48px; }
@media (min-width: 920px) { .install-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.route {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 16px 18px 16px 14px; border-radius: 22px; border: 1px solid var(--line-strong);
  color: inherit; text-decoration: none;
}
a.route {
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  background: var(--surface); border-color: var(--line);
  box-shadow: 0 18px 32px -24px var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
a.route:active { transform: scale(.985); }
.r-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--pine-ink); background: color-mix(in srgb, var(--pine) 18%, transparent); }
.route:not(a) .r-icon { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.r-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.r-text { display: grid; gap: 4px; min-width: 0; }
.r-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.r-head strong { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.r-text > span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.soon { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.chev { align-self: center; width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* AltStore PAL where Apple allows it: first and recommended, a filled row
   with a pine border and icon, but no chevron, as it's only planned. Then
   Until then, over the ways that work today. */
.route-pal { background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--pine) 75%, transparent); box-shadow: 0 18px 32px -24px var(--shadow); }
.route.route-pal .r-icon { color: var(--pine-ink); background: color-mix(in srgb, var(--pine) 18%, transparent); }
.r-text > .r-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; color: var(--pine-ink); }
/* The Apple ID row: first and recommended on iOS 27, with the same pine
   border. iOS keeps its case in the uppercase label. */
a.route.route-pick { border: 1.5px solid color-mix(in srgb, var(--pine) 75%, transparent); }
.r-label .as-is { text-transform: none; }
/* On a phone, each way's icon and chevron sit beside its name (and its
   label, when it has one), and its text runs the row's full width. */
@media (max-width: 519px) {
  .route, a.route { grid-template-columns: 40px minmax(0, 1fr) 20px; column-gap: 12px; row-gap: 4px; align-items: center; padding: 14px 16px; }
  .route .r-text { display: contents; }
  .route .r-icon { width: 40px; height: 40px; border-radius: 11px; grid-column: 1; grid-row: 1; }
  .route .r-icon svg { width: 22px; height: 22px; }
  .route .r-head { grid-column: 2; grid-row: 1; }
  .route .chev { grid-column: 3; grid-row: 1; }
  .route:has(.r-label) .r-icon, .route:has(.r-label) .chev { grid-row: 1 / span 2; }
  .route .r-label { grid-column: 2; grid-row: 1; align-self: end; }
  .route:has(.r-label) .r-head { grid-row: 2; align-self: start; }
  .route .r-text > span:last-child { grid-column: 1 / -1; margin-top: 6px; }
}
.routes-label { margin: 14px 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* The sideload and certificate pages (sideload.html, certificate.html):
   the hero's forest without the easel, around the page's title, then what
   you need and the three steps, closer under the title than a band of the
   home page. */
.page-hero .page-head { padding-block: 10px clamp(44px, 7vw, 72px); max-width: 38em; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--on-forest-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.4rem, 1.7rem + 2.8vw, 3.7rem); font-weight: 800; font-stretch: 88%; line-height: 1; letter-spacing: -.026em; }
.page-hero .lede { margin-top: 18px; }
.page-body { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.needs-title { font-size: 1.05rem; }
.needs { list-style: none; margin: 12px 0 0; padding: 0; }
.needs + .needs-title { margin-top: 36px; }
.needs li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-block: 13px; border-top: 1px solid var(--line); color: var(--ink-2); }
.needs li strong { color: var(--ink); font-weight: 600; }
.needs svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--forest-tint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps > li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding-block: 26px; border-top: 1px solid var(--line-strong); }
.steps > li:last-child { border-bottom: 1px solid var(--line-strong); }
.steps .n { font: 800 46px/.9 var(--display); color: var(--pine-ink); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.steps .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
/* A narrower number on a phone, for the release and the source's buttons. */
@media (max-width: 599px) {
  .steps > li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .steps .n { font-size: 38px; }
}
.text-link { font-weight: 600; text-decoration: none; }
/* A file name can be longer than a phone is wide, such as
   PlugIns/AtelierLiveActivity.appex, so it breaks where it has to rather
   than push the page sideways. */
.file { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }

/* Step 1: the newest release (sideload.js fills it in), then Atelier's
   source, its address with Copy and a button for each store. */
.release {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  padding: 12px 16px 12px 12px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 32px -24px var(--shadow);
}
.release img { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.release-name { display: grid; min-width: 0; line-height: 1.3; }
.release-name strong { font-size: 17px; font-weight: 600; }
.release-name span { font-size: 14px; color: var(--ink-2); }
.facts { margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.facts div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.facts dt { min-width: 5.2em; }
.facts dd { margin: 0; min-width: 0; font: 13px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
/* The SHA-256's row keeps its place until sideload.js fills it in, so
   nothing under it moves. */
.facts .pending { visibility: hidden; }
.facts button { border: 0; background: none; padding: 0; font: 600 14px/1.5 var(--body); color: var(--link); cursor: pointer; }
.sub-title { margin: 30px 0 0; font-size: 1.05rem; scroll-margin-top: 24px; }
.steps .sub-title + p { margin-top: 6px; }
.url-box { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
/* The address fades out under Copy, so it reads as longer than the box. */
.url-box code { flex: 1; min-width: 0; font: 14px/1.4 var(--mono); white-space: nowrap; overflow-x: auto; padding-block: 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.add-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Step 2: the one thing to get right, the certificate (#24). */
.callout {
  margin-top: 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--pine) 15%, transparent);
}
.callout svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--pine-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { display: block; color: var(--ink); font-weight: 600; }
.steps .callout p { margin-top: 2px; font-size: 15px; }

/* The certificate page (certificate.html, #152). Step 1: the two files on
   their rows with Choose Files under them, the password, and the
   certificate they make, as Atelier's Certificates list shows it. */
.steps > li.later .n, .steps > li.later h3 { opacity: .45; }
/* Open this page in Safari on your iPhone, over step 1. */
.callout.notice { margin: 0 0 16px; }
.picker { margin-top: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 32px -24px var(--shadow); }
.picker-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.picker-row:first-child { border-top: 0; }
.picker-row > svg:first-child { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.picker-row .what { display: grid; min-width: 0; line-height: 1.3; }
.picker-row .what strong { font-size: 15px; font-weight: 600; }
.picker-row .what span { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-row.chosen .what span { font: 13px/1.4 var(--mono); color: var(--ink); }
.tick { width: 22px; height: 22px; }
.tick circle { fill: var(--ok); }
.tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.picker-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.picker-foot span { font-size: 14px; color: var(--ink-2); }
.field { margin-top: 16px; display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
/* 17px, so iOS doesn't zoom in on it. */
.field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 17px var(--body); }
.field input::placeholder { color: var(--ink-2); opacity: .8; }
.field.problem input { border-color: var(--bad); }
.problem-text { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--bad); }
.steps .problem-text { color: var(--bad); }
.problem-text svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cert { margin-top: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 32px -24px var(--shadow); }
.cert-text { display: grid; gap: 2px; min-width: 0; }
.cert-text > strong { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cert-text > span { font-size: 14px; color: var(--ink-2); }
.cert-checks { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cert-checks > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.cert-checks > li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.cert-checks > li.note::before { background: var(--line-strong); }
.cert-checks > li.bad { color: var(--bad); }
.cert-checks > li.bad::before { background: var(--bad); }
.cert-checks strong { color: var(--ink); font-weight: 600; }
.cert-devices { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.cert-devices li { display: grid; gap: 2px; color: var(--ink); }
.cert-devices .udid { font: 12px/1.4 var(--mono); color: var(--ink-2); }
.cert-hint { margin: 6px 0 0; font-size: 13px; }
.cert-fold summary { margin-top: 4px; cursor: pointer; color: var(--pine-ink); font-weight: 600; }

/* Step 2: the release or the chosen IPA, Include Certificate as Install a
   Copy names it in Atelier, and Atelier's install bar while it signs,
   uploads and waits for iOS. */
.release-help { margin-top: 12px; font-size: 15px; }
.toggle { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.toggle label { display: grid; gap: 2px; min-width: 0; cursor: pointer; }
.toggle strong { font-size: 16px; font-weight: 600; }
.toggle span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.switch { appearance: none; -webkit-appearance: none; margin: 0; position: relative; width: 51px; height: 31px; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background-color .2s ease; }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.switch:checked { background: var(--ok); }
.switch:checked::before { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: default; }
.go { margin-top: 18px; }
.go .btn { box-sizing: border-box; width: 100%; max-width: 420px; }
.go .bar { max-width: 420px; }
.bar img { flex: none; width: 42px; height: 42px; border-radius: 10px; }
.go .again { margin-top: 12px; }
.go-note { margin-top: 12px; max-width: 420px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:active { transform: none; }
/* On a computer: the code the iPhone scans, beside how, then the install
   bar. The code stays dark on white in dark mode, as cameras read it best. */
.scan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; max-width: 560px; padding: 14px 18px 14px 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 32px -24px var(--shadow); }
.qr { position: relative; width: 172px; height: 172px; border-radius: 12px; background: #fff; color: #0D120F; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr svg path { fill: currentColor; }
.qr.gone svg { opacity: .1; }
.qr-gone { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.3; color: #16221A; }
.scan-text { display: grid; gap: 6px; min-width: 0; }
.scan-text strong { font-size: 16px; font-weight: 600; }
.scan-steps { margin: 0; padding-left: 1.15em; display: grid; gap: 5px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.scan-steps li::marker { color: var(--pine-ink); font-weight: 600; }
.scan + .bar, .scan + .bar + .btn { margin-top: 12px; }
.go .scan + .bar { max-width: 560px; }
@media (max-width: 519px) {
  .scan { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 16px; }
  .scan-text { justify-self: stretch; }
}

/* The signing services page (signing-services.html): what goes in
   AtelierCertificate.plist, key by key, the points to get right when
   signing, and keys and addresses in running text. */
.keys { margin: 16px 0 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.keys div { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 4px 14px; padding: 11px 16px; border-top: 1px solid var(--line); }
.keys div:first-child { border-top: 0; }
.keys dt { display: grid; align-content: start; gap: 1px; min-width: 0; }
.keys dt code { font: 600 14px/1.45 var(--mono); color: var(--ink); }
.keys dt span { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.keys dd { margin: 0; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
/* On a phone, each key over what it holds. */
@media (max-width: 599px) {
  .keys div { grid-template-columns: minmax(0, 1fr); }
  .keys dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
}
.steps p.small { margin-top: 12px; font-size: 15px; }
/* Step 3 of the Apple ID page: rootshell's settings, then the line. */
.steps h3 + p + p { margin-top: 10px; }
.steps .callout + p { margin-top: 12px; font-size: 15px; }
.points { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.points li { padding-left: 2px; }
.points li::marker { color: var(--pine-ink); }
code.key { font: .86em/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.install-grid > div > .callout { margin-top: 28px; }
.install-grid > div > .callout p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
/* The Apple ID page on an iPhone with an older iOS: over You'll need. */
.install-grid > div > .callout.notice { margin: 0 0 28px; }
/* On the home page, under Get Atelier's text: the way to this page. */
.aside-link { margin-top: 22px; font-size: 15px; color: var(--ink-2); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 920px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; } }
.faq-list details { border-top: 1px solid var(--line-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 19px; font-size: 1.1rem; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 28px/0.8 var(--display); color: var(--pine-ink); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 20px; max-width: 38em; color: var(--ink-2); }
/* How to say Atelier: its respelling and IPA each stay on one line. */
.faq-list .say { white-space: nowrap; }
.faq-list b.say { font-weight: 600; color: var(--ink); }
.faq-list .say-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 10px; font-size: 1.1rem; line-height: 1.4; }

/* Donate, the home page's last band: its title, and beside it on a wide
   screen, as the FAQ's questions are, why, the button and where it goes. */
.donate-grid { display: grid; }
.donate-grid > * { min-width: 0; }
@media (min-width: 920px) {
  .donate-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; }
  .donate-grid .section-lede { margin-top: 0; }
}
/* What donations go towards next, as wide as the text above it. */
.milestone {
  box-sizing: border-box; max-width: 40.5rem; margin-top: 26px;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px;
  padding: 14px 18px 16px 14px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 32px -24px var(--shadow);
}
.milestone-text { display: grid; gap: 2px; min-width: 0; }
.milestone-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pine-ink); }
.milestone-text strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.milestone-text span:last-child { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.donate-row .btn svg { fill: currentColor; }
.donate-note { font-size: 15px; color: var(--ink-2); }

/* Footer */
.foot { background: var(--forest-deep); color: var(--on-forest-2); font-size: 15px; }
.foot .wrap { display: grid; gap: 28px; padding-block: 52px max(40px, env(safe-area-inset-bottom, 0px)); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot .brand { font-size: 21px; }
/* 44 points tall each, with the rows touching, so wrapped links are as
   easy to tap as buttons; the margin keeps the spacing around them. */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: -10.5px; }
.foot-links a { padding-block: 10.5px; color: var(--on-forest); text-decoration: none; }
.fine { font-size: 13px; line-height: 1.6; border-top: 1px solid var(--on-forest-line); padding-top: 22px; }
.fine a { color: var(--on-forest); }

/* Link pages (install.html, source.html, viewapp.html and search.html):
   Atelier's icon, or the app's or source's above an arrow to Atelier's,
   what the link does and one button, in the middle of the page. */
.install-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.install-main {
  box-sizing: border-box; width: 100%; max-width: 460px; text-align: center;
  padding: max(40px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.install-icons { display: grid; justify-items: center; }
.install-icon { display: block; width: 84px; height: 84px; border-radius: 22.5%; box-shadow: 0 18px 30px -18px var(--shadow); }
/* An app's icon can be white, so it gets an edge, as on the home screen's
   wallpaper. */
.install-app-icon { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 22.5%; box-shadow: 0 18px 30px -18px var(--shadow); outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px; }
.install-arrow { margin: 8px 0; color: var(--pine-ink); }
.install-arrow svg { display: block; }
.install-icons.has-app .install-icon { width: 56px; height: 56px; box-shadow: 0 12px 24px -16px var(--shadow); }
.install-main h1 { margin-top: 24px; font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.3rem); font-weight: 750; font-stretch: 92%; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: break-word; }
.install-meta { margin-top: 8px; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
/* A source's first apps, and how many more it has (source.html). */
.install-apps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.install-apps img { display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 22.5%; outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); outline-offset: -1px; }
.install-apps span { margin-left: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
/* An app's subtitle (viewapp.html). */
.install-subtitle { margin-top: 14px; font-size: 1.05rem; color: var(--ink); }
/* When the app's details come in. */
.install-main.has-app { animation: install-app .3s ease-out; }
@keyframes install-app { from { opacity: 0; } to { opacity: 1; } }
.install-what { margin-top: 12px; color: var(--ink-2); }
.install-what strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.install-main .btn { box-sizing: border-box; width: 100%; margin-top: 28px; }
.install-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.install-more { margin-top: 32px; padding-top: 9.5px; border-top: 1px solid var(--line); display: grid; font-size: 15px; }
/* Each link 44 points tall, as in the footer. */
.install-more a { padding-block: 10.5px; }
/* The page the certificate page's code opens (certificate/install.html):
   why it can't install here, over what it does. */
.install-main .callout { margin-top: 20px; text-align: left; }
.install-main .callout p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
/* The Apple ID page (apple-id.html): step 3's newest release over the
   line to copy into rootshell, the button that copies it and opens
   rootshell on an iPhone or iPad, as wide as the line's box there, and
   what rootshell then asks, each with what to do first. On a computer, the
   code that opens the page on the iPhone sits over step 1. */
.steps .release + .url-box, .steps .release + p.small { margin-top: 12px; }
.steps .go-row { margin-top: 12px; }
/* Step 3 on the Apple ID page: today's line, folded under the Install
   Atelier button. */
.fallback { margin-top: 22px; border-top: 1px solid var(--line-strong); }
.fallback summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px 2px; font-weight: 600; color: var(--ink); }
.fallback summary::-webkit-details-marker { display: none; }
.fallback summary::after { content: "+"; flex: none; font: 400 24px/0.8 var(--display); color: var(--pine-ink); transition: transform .2s ease; }
.fallback[open] summary::after { transform: rotate(45deg); }
.fallback summary + p { margin-top: 10px; }
/* Step 1 on the Apple ID page: under the two apps' buttons. */
.steps .add-row + p { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .fallback summary::after { transition: none; } }
.steps .go-row .btn { box-sizing: border-box; width: 100%; max-width: 420px; }
.points.walk { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.points.walk li::marker { font-weight: 700; }
.points.walk strong { color: var(--ink); font-weight: 600; }
.steps .walk + .callout { margin-top: 18px; }
.scan.on-computer { margin-bottom: 22px; }

/* Stats (stats.html): the site's own counts, for whoever has the key. */
.stats-hero .page-head { padding-block: 6px 30px; max-width: none; }
.stats-hero h1 { margin-top: 0; }
.stats-hero .lede { max-width: 36em; }
.stats-range { display: inline-flex; margin-top: 22px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.stats-range button { border: 0; background: none; color: var(--on-forest-2); font: 600 15px/1 var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.stats-range button[aria-pressed="true"] { background: var(--on-forest); color: var(--forest-deep); }
.stats-body { padding-block: 28px 72px; }
.stats-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 15px; min-width: 0; }
.stats-tile span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.stats-tile strong { display: block; margin-top: 6px; font: 750 30px/1 var(--display); font-stretch: 92%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stats-wide { grid-column: 1 / -1; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; min-width: 0; }
.stats-card h2 { font-size: 1.12rem; font-weight: 700; font-stretch: 100%; letter-spacing: -.005em; line-height: 1.25; }
.stats-note { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.stats-chart-card { margin-top: 12px; }
.stats-chart { margin-top: 14px; display: block; width: 100%; height: 150px; }
.stats-chart rect { fill: var(--forest-tint); }
.stats-chart rect.today { fill: var(--pine); }
.stats-chart line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats-axis { display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stats-axis.per-bar { display: grid; gap: 0; text-align: center; }
.stats-axis span { white-space: nowrap; overflow: hidden; }
.stats-cards { margin-top: 12px; display: grid; gap: 12px; }
/* One column on phones, in reading order; three on wide screens. */
.stats-col { display: contents; }
.stats-ga { order: 1; }
.stats-certificate { order: 2; }
.stats-sideload { order: 3; }
.stats-pages { order: 4; }
.stats-from { order: 5; }
.stats-countries { order: 6; }
.stats-devices { order: 7; }
.stats-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.stats-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 5px; font-size: 15px; line-height: 1.3; }
.stats-rows li > span:first-child { overflow-wrap: anywhere; }
.stats-rows .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.stats-rows .v small { font-weight: 400; color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.stats-rows .b { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.stats-rows .b i { display: block; height: 100%; border-radius: 3px; background: var(--forest-tint); }
.stats-pine .b i { background: var(--pine); }
.stats-rows li.stats-empty { display: block; color: var(--ink-2); }
.stats-sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.stats-sub strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stats-chips span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-privacy { margin-top: 22px; font-size: 14px; color: var(--ink-2); max-width: 44em; }
.stats-key { max-width: 30em; }
.stats-key .btn { margin-top: 18px; }
.stats-problem { margin-top: 0; }
@media (min-width: 720px) {
  .stats-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats-wide { grid-column: auto; }
  .stats-chart { height: 190px; }
}
@media (min-width: 1040px) {
  .stats-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .stats-col { display: grid; gap: 12px; }
}

/* Tap areas: at least 44 points each way, as Apple asks, for the controls
   drawn smaller than that. Each takes taps in an invisible box around
   itself, so nothing looks or moves differently, and no box reaches a
   neighbour's. */
.btn-small, .nav-links .gh, .nav-links .donate, .crumb, .facts button, .actions .text-link, .fallback summary { position: relative; }
.btn-small::after, .nav-links .gh::after, .nav-links .donate::after, .crumb::after, .facts button::after, .actions .text-link::after, .switch::after, .fallback summary::before { content: ""; position: absolute; }
/* Inside the border, so these reach past it by 3 points or more. */
.btn-small::after { inset: -5px 0; }
.nav-links .donate::after { inset: -4px 0; }
.nav-links .gh::after { inset: -11px -8px; }
.crumb::after { inset: -11px -6px; }
.facts button::after { inset: -12px -8px; }
.actions .text-link::after { inset: -9px -4px; }
.switch::after { inset: -7px -4px; }
.fallback summary::before { inset: -1px 0; }

/* Hover, only with a mouse or trackpad: iOS applies :hover on a tap and
   keeps it until the next one. */
@media (hover: hover) and (pointer: fine) {
  .btn-pine:hover { background: #D49E66; }
  .btn-ghost:hover { border-color: var(--on-forest); }
  .btn-secondary:hover { border-color: var(--ink-2); }
  .nav-links a:hover { color: var(--on-forest); }
  .nav-links .donate:hover { border-color: var(--on-forest); }
  a.route:hover { border-color: var(--line-strong); }
  a.route.route-pick:hover { border-color: var(--pine); }
  .crumb:hover { color: var(--on-forest); }
  .text-link:hover { text-decoration: underline; }
  .foot-links a:hover { text-decoration: underline; }
}
/* Pressed, for what doesn't shrink as buttons do: it dims. */
.text-link, .crumb, .brand, .nav-links .gh, .foot-links a, .faq-list summary, .fallback summary, .facts button, .install-more a { transition: opacity .12s ease-out; }
:is(.text-link, .crumb, .brand, .nav-links .gh, .foot-links a, .faq-list summary, .fallback summary, .facts button, .install-more a):active { opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .ring.spin, .install-main.has-app { animation: none; }
  .btn, a.route, .nav-links .donate, .switch, .switch::before, .faq-list summary::after { transition: none; }
}

html { color-scheme: light dark; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
