/* Digext "Your shelf": the stylesheet of the pages outside the home and the ad pages: privacy, terms, support, card/,
   og-preview and the two social images (assets/shelf/pages/og-*.html). Stacked rounded sheets, colour-blocked from the app
   and the ads. Light = the ads' day sky. Dark = the app's night.
   The tokens, sheets, type, brand, buttons, badges, the Mac rule, the shelf tiles and the footer are copies of the same rules
   in /assets/shelf/shelf.css (the home and ad pages). Change both together. */
:root {
  color-scheme: light;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --paste: #FF4B4B; --paste-small: #D42A2A; --kept: #3FE0A6; --night: #050506;
  --gap: 8px; --r-sheet: 30px; --pad: 40px;
  /* light */
  --page: #EEF2FB; --ink: #0A0C12; --ink-2: #3D4556; --ink-3: #4F586B; --line: rgba(10,12,18,.13);
  --sky: linear-gradient(180deg, #CCD7FA 0%, #C3E3F6 46%, #DCE7FB 100%);
  --paper: #F8F9FD; --pill: rgba(255,255,255,.62); --pill-on: #0A0C12; --pill-on-ink: #fff;
  --glass: rgba(14,15,20,.82); --glass-edge: rgba(255,255,255,.14);
  --shadow: 0 30px 60px -24px rgba(22,34,80,.55), 0 8px 18px -8px rgba(22,34,80,.3);
  --badge-ring: transparent;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --page: #000; --ink: #F5F6F8; --ink-2: #C3C8D2; --ink-3: #9AA1AF; --line: rgba(255,255,255,.15);
  --sky: var(--night); --paper: #101116; --pill: rgba(255,255,255,.1); --pill-on: #F5F6F8; --pill-on-ink: #0A0C12;
  --glass: rgba(26,27,32,.78); --glass-edge: rgba(255,255,255,.13);
  --shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -30px #000; --badge-ring: rgba(255,255,255,.55);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #000; --ink: #F5F6F8; --ink-2: #C3C8D2; --ink-3: #9AA1AF; --line: rgba(255,255,255,.15);
  --sky: var(--night); --paper: #101116; --pill: rgba(255,255,255,.1); --pill-on: #F5F6F8; --pill-on-ink: #0A0C12;
  --glass: rgba(26,27,32,.78); --glass-edge: rgba(255,255,255,.13);
  --shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -30px #000; --badge-ring: rgba(255,255,255,.55);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #5B8CFF; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font: 500 11px/1.4 var(--font-mono); color: var(--ink-3); letter-spacing: 0; }

/* ---- sheets ------------------------------------------------------------- */
.sheet { position: relative; margin: var(--gap); border-radius: var(--r-sheet); overflow: hidden; isolation: isolate; }
.sheet + .sheet { margin-top: 0; }
.sheet__in { max-width: 1560px; margin: 0 auto; padding: clamp(44px, 6vw, 96px) var(--pad); }
.sheet--sky { background: var(--sky); }
.sheet--paper { background: var(--paper); }
.sheet--foot { background: #0A0C12; color: #F5F6F8; --ink: #F5F6F8; --ink-2: #C3C8D2; --ink-3: #9AA1AF; --line: rgba(255,255,255,.14); }
/* the app's starfield (dots only, no noise): on every night surface */
.stars::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 31% 64%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 47% 9%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(.9px .9px at 63% 41%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 78% 77%, rgba(255,255,255,.65) 50%, transparent 51%), radial-gradient(1px 1px at 91% 23%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(.8px .8px at 22% 88%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 55% 93%, rgba(255,255,255,.45) 50%, transparent 51%);
  background-size: 520px 420px, 520px 420px, 520px 420px, 520px 420px, 290px 330px, 290px 330px, 290px 330px, 290px 330px; }
.sheet--sky.stars::before { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet--sky.stars::before { display: block; } }
:root[data-theme="dark"] .sheet--sky.stars::before { display: block; }

/* ---- type ----------------------------------------------------------------- */
.h1, .h2 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(3.3rem, 5.7vw, 6.4rem); line-height: .95; letter-spacing: -.045em; }
.h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); line-height: .98; letter-spacing: -.04em; }
.support { margin: 0; font: 700 clamp(1.2rem, 1rem + .9vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -.025em; }
.lead { margin: 0; color: var(--ink-2); font-size: clamp(.97rem, .9rem + .3vw, 1.13rem); line-height: 1.42; max-width: 34em; }
.fine { margin: 0; font-size: .82rem; line-height: 1.35; color: var(--ink-3); }
/* The app's red Paste button, set in the headline. A capsule, like the real control. Headline sizes only (3.3:1). */
.paste { display: inline-block; background: var(--paste); color: #fff; border: 0; border-radius: 999px; padding: .03em .24em .09em; margin: 0 .02em 0 .08em; font: inherit; letter-spacing: inherit; line-height: inherit; vertical-align: baseline; box-shadow: inset 0 -.04em 0 rgba(0,0,0,.12), 0 .08em .3em -.1em rgba(200,20,20,.6); }
.h1 .paste:first-child { margin-left: -.04em; }

/* ---- brand, nav, buttons --------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 22.5%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav { display: none; }
.pillbtn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--pill-on); color: var(--pill-on-ink); font: 650 .9rem/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.roundbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; cursor: pointer; }
.roundbtn svg { width: 18px; height: 18px; }
.topbar__r { display: flex; gap: 8px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badge, .store-badge-mac { display: inline-block; border-radius: 9px; line-height: 0; box-shadow: 0 0 0 1px var(--badge-ring); }
.store-badge img, .store-badge-mac img { height: 52px; width: auto; }
/* Mac link rule: never on phone layouts; tablet and desktop only, by width. */
.store-badge-mac, .mac-note, .mac-only { display: none; }
@media (min-width: 768px) { .store-badge-mac { display: inline-block; } .mac-note, .mac-only { display: inline; } }

/* ---- glass and the shelf: the app's own rows (used by the social image) ---- */
.glass { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 18px; -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 18px 36px -18px rgba(8,12,40,.6); color: #F5F6F8; }
.shelf { padding: 12px 12px 14px; }
.shelf__h { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; font: 700 .86rem/1 var(--font-text); color: #F5F6F8; }
.shelf__row { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px 10px; list-style: none; margin: 0; padding: 0; }
.tile { display: block; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.tile .cover { display: block; position: relative; aspect-ratio: 1; border-radius: 9%; overflow: hidden; background: #111; }
.tile .cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); pointer-events: none; }
.tile .cover img { width: 100%; height: 100%; object-fit: cover; }
.tile .t { display: flex; gap: 5px; align-items: flex-start; margin-top: 6px; font: 600 12px/1.2 var(--font-text); color: var(--tint, #E8E9EE); }
.tile .t svg { flex: none; width: 11px; height: 11px; margin-top: 1.5px; }
.tile .t span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- footer ------------------------------------------------------------------ */
.foot .sheet__in { padding-block: 36px; display: grid; gap: 22px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.foot .mono { margin: 0; }

@media (max-width: 699px) {
  :root { --r-sheet: 22px; --pad: 16px; --gap: 6px; }
  .h1 { font-size: clamp(2.75rem, 14vw, 3.6rem); }
  .store-badge img { height: 50px; }
  .brand img { width: 38px; height: 38px; }
}

/* ---- the page bar (legal pages, og-preview): on the page background, above the first sheet, its content on the sheets'
   content edge. The seven page links need 860 px; below that the wordmark, the theme button and the Get Digext pill have
   the bar to themselves (the links are repeated in the footer). ---- */
.pagebar { padding: 0 var(--gap); }
.pagebar .topbar { max-width: 1560px; margin: 0 auto; padding: 12px var(--pad) 4px; }
.pagebar .roundbtn, .pagebar .nav { box-shadow: inset 0 0 0 1px var(--line); }
.pagebar .brand, .pagebar .topbar__r { flex: none; }
@media (min-width: 860px) {
  .nav { display: flex; gap: 0; padding: 4px; border-radius: 99px; background: var(--pill); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .nav a { padding: 9px 10px; border-radius: 99px; font: 600 .86rem/1 var(--font-text); text-decoration: none; white-space: nowrap; }
  .nav a:hover, .nav a[aria-current] { background: var(--pill-on); color: var(--pill-on-ink); }
}
@media (min-width: 1100px) { .nav { gap: 2px; } .nav a { padding: 9px 15px; } }
@media (max-width: 359px) { .pagebar .topbar { gap: 8px; } .pagebar .topbar__r { gap: 6px; } .pagebar .pillbtn { padding: 0 14px; } }

/* ---- legal pages: the title on the sky (stars in dark), then the text on paper in one reading column ---- */
.legal-head .sheet__in { padding-block: clamp(44px, 6vw, 72px); display: grid; gap: 16px; justify-items: start; }
.kicker { margin: 0; font: 600 13px/1.3 var(--font-mono); color: var(--ink-3); }
.legal-head .h2 { color: var(--ink); }
.legal-date { margin: 0; font-size: 13px; }
.legal-head .lead { max-width: 38em; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.prose section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2 { margin: 0 0 10px; font: 800 1.3rem/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---- the link card (/card/): the ChatGPT hand-off page's layout. The sheets fill the window and the sky one grows. ---- */
body.linkcard { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.linkcard main { flex: 1 0 auto; display: flex; flex-direction: column; }
.linkcard .foot { margin-top: 0; }
.lc-hero { flex: 1 0 auto; display: flex; }
.lc-hero .sheet__in { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 22px 40px; }
.lc-brand { display: grid; justify-items: center; gap: 14px; font: 800 1.15rem/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
/* app-icon.png is the icon on Apple's icon grid: the squircle is about 84% of the file, with transparent margins. So the image
   is set at 105 px for an 88 px icon (86 px for 72, 124 px for 104: the hand-off page's sizes), and its shadow follows the
   squircle (filter), never the square box. */
.lc-brand img { width: 105px; height: 105px; margin: -9px 0 -9px; filter: drop-shadow(0 12px 14px rgba(22,34,80,.28)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lc-brand img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); } }
:root[data-theme="dark"] .lc-brand img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); }
.lc-hero .h1 { margin-top: 26px; font-size: clamp(2.3rem, 11.6vw, 3.5rem); white-space: nowrap; }
.lc-hero .support { margin-top: 12px; }
.lc-hero .lead { margin-top: 14px; max-width: 22em; text-wrap: balance; }
.lc-hero .badges { justify-content: center; margin-top: 24px; }
.lc-hero .fine { margin-top: 14px; }
.lc-more .sheet__in { display: grid; justify-items: center; gap: 14px; padding: 26px 22px 30px; }
.lc-label { margin: 0; font-size: 12px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border-radius: 99px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--line); font: 650 .9rem/1 var(--font-text); text-decoration: none; white-space: nowrap; }
.social:hover { background: var(--pill-on); color: var(--pill-on-ink); box-shadow: none; }
.social svg, .lc-row svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.social svg { width: 20px; height: 20px; }
.lc-rows { width: 100%; max-width: 520px; list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lc-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; text-align: left; }
.lc-row__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }
.lc-row__icon svg { width: 18px; height: 18px; }
.lc-row__copy { flex: 1; min-width: 0; }
.lc-row b { display: block; font: 700 1rem/1.25 var(--font-display); letter-spacing: -.01em; }
.lc-row__meta { display: block; margin-top: 2px; color: var(--ink-3); font-size: .86rem; line-height: 1.3; }
.lc-row .chev { width: 14px; height: 14px; color: var(--ink-3); }
.linkcard .foot .sheet__in { padding: 20px 22px; }
.linkcard .foot__links { justify-content: center; }
@media (max-width: 519px) { .linkcard .foot__links li:first-child { flex-basis: 100%; text-align: center; } }
@media (max-width: 359px) { .lc-hero .sheet__in { padding: 26px 14px 30px; } .lc-brand img { width: 86px; height: 86px; margin-block: -8px; } .lc-hero .h1 { margin-top: 20px; } }
@media (min-width: 700px) {
  .lc-hero .sheet__in { padding: 56px 40px 60px; }
  .lc-brand { font-size: 1.3rem; } .lc-brand img { width: 124px; height: 124px; margin-block: -11px; }
  .lc-hero .h1 { margin-top: 32px; font-size: clamp(3.6rem, 6.2vw, 5.4rem); }
  .lc-hero .support { margin-top: 16px; }
  .lc-hero .lead { margin-top: 18px; font-size: 1.16rem; }
  .lc-hero .badges { margin-top: 30px; }
  .lc-hero .fine { font-size: .92rem; }
  .lc-more .sheet__in { padding: 34px 40px 38px; }
}

/* ---- the link preview simulator (og-preview.html) ---- */
.ogp .sheet__in { display: grid; gap: clamp(32px, 4vw, 48px); }
.ogp__head { display: grid; gap: 12px; }
.ogp__head code { font: 500 .9em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }
.ogp__grid { display: grid; gap: 44px; }
.ogp__row { display: grid; gap: 14px; }
.ogp__row > .mono { font-size: 12px; }
.ogp__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: start; }
.pv-large { width: 100%; max-width: 380px; border-radius: 14px; overflow: hidden; background: var(--page); border: 1px solid var(--line); }
.pv-large .img, .pv-slack .img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #000; }
.pv-large .meta { padding: 12px 14px 14px; }
.pv-domain { font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); }
.pv-large .title { margin: 3px 0 0; font-size: 15px; font-weight: 650; line-height: 1.3; }
.pv-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.pv-large .pv-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-slack { width: 100%; max-width: 460px; display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: var(--page); border: 1px solid var(--line); }
.pv-slack .bar { background: var(--line); border-radius: 4px; }
.pv-slack .body { display: grid; gap: 6px; min-width: 0; }
.pv-slack .title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.pv-slack .img { margin-top: 4px; max-width: 360px; border-radius: 8px; }
.ogp__note { margin: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--page); color: var(--ink-2); font-size: .9rem; line-height: 1.55; max-width: 72ch; }

/* ---- the social images (assets/shelf/pages/og-*.html): 1200 x 630, always light, the day sky fills the frame ---- */
html.og, .og body { width: 1200px; height: 630px; margin: 0; overflow: hidden; }
.og body { position: relative; background: var(--sky); }
.og .brand { position: absolute; left: 64px; top: 52px; gap: 14px; font-size: 30px; }
.og .brand img { width: 44px; height: 44px; }
.og-cover .h1 { position: absolute; left: 64px; top: 186px; font-size: 104px; line-height: .95; letter-spacing: -.045em; white-space: nowrap; }
.og-cover .support { position: absolute; left: 66px; top: 418px; font-size: 34px; }
.og-cover .og__screen { position: absolute; left: 836px; top: 70px; width: 300px; aspect-ratio: 600 / 1304; border-radius: calc(300px * .1545); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(11,13,20,.10), 0 28px 60px -28px rgba(20,30,70,.45); }
.og-cover .og__screen img { width: 100%; height: 100%; object-fit: cover; }
.og-cover .og__credit { position: absolute; left: 66px; bottom: 40px; margin: 0; font-size: 13px; color: var(--ink-3); }
.og-card .og__center { position: absolute; left: 0; right: 0; top: 96px; bottom: 0; display: grid; justify-items: center; align-content: center; text-align: center; }
.og-card .h1 { font-size: 128px; line-height: .95; letter-spacing: -.045em; white-space: nowrap; }
.og-card .support { margin-top: 14px; font-size: 36px; }
.og-card .shelf { margin-top: 30px; padding: 16px 18px 18px; border-radius: 26px; text-align: left; }
.og-card .shelf__h { margin-bottom: 12px; font-size: 19px; }
.og-card .shelf__row { grid-template-columns: repeat(4, 150px); gap: 14px 20px; }
.og-card .tile .t { margin-top: 8px; font-size: 16px; gap: 6px; letter-spacing: -.01em; }
.og-card .tile .t span { white-space: nowrap; }
.og-card .tile .t svg { width: 14px; height: 14px; margin-top: 2px; }

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

/* Privacy, terms and support at desktop width: one centred reading column, like a document (owner, 2026-11-12:
   "should the width of text be restricted at full desktop width, like google docs"). The title and the text share
   one column of about 44rem, centred in the sheet; the coloured sheets stay full width like the rest of the site. */
.legal-head .sheet__in,
.sheet--paper:has(> .sheet__in > .prose) > .sheet__in { max-width: calc(44rem + 2 * var(--pad)); }

/* ...and from 900 px the two boxes hug that column like a document page (owner, 2026-11-12: "the box around the text
   should be tigher no?"): the title sheet and the text sheet are the column plus 64 px each side, centred; the footer
   stays full width. Tablets and phones keep the full-width sheets. */
@media (min-width: 900px) {
  .legal-head,
  .sheet--paper:has(> .sheet__in > .prose) { max-width: calc(44rem + 128px); margin-inline: auto; }
  .legal-head .sheet__in,
  .sheet--paper:has(> .sheet__in > .prose) > .sheet__in { max-width: none; padding-inline: 64px; }
}
