/* Support and Privacy, in the home page's materials: Barlow, obsidian, crimson to champagne and the squared plate. Their arrangement is their own. */
@font-face { font-family: Barlow; src: url('/assets/fonts/Barlow-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/Barlow-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/Barlow-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/Barlow-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@property --reach { syntax: "<percentage>"; inherits: false; initial-value: 78%; }

:root {
  color-scheme: dark;
  --canvas: #060609;
  --chamber-a: #1c1c27;
  --chamber-b: #111118;
  --ivory: #f5f5f7;
  --read: rgba(245, 245, 247, .86);
  --grey: #a0a0b0;
  --champagne: #f2b880;
  --crimson: #e5354a;
  --hair: rgba(245, 245, 247, .1);
  --rim: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 72%);
  --lit: linear-gradient(135deg, var(--crimson), var(--champagne));
  --halo: 0 0 12px 4px rgba(229, 53, 74, .6), 0 0 6px 2px rgba(229, 53, 74, .95);
  --chosen: 0 0 6px 2px rgba(229, 53, 74, .6);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --gutter: clamp(20px, 3.4vw, 52px);
  font-family: Barlow, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ivory);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 112px; scrollbar-color: rgba(245, 245, 247, .24) var(--canvas); }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ivory); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
::selection { background: rgba(229, 53, 74, .4); color: var(--ivory); }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 16px; border-radius: 7px; background: #dd3046; color: #fff; }
.skip-link:focus { top: 16px; }

/* The home page's bar. It stands on smoke, then on the words passing under it, so its glass has something to bend. */
.masthead {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
  margin: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  padding: 0 12px 0 20px;
  border-radius: 14px;
  background: rgba(6, 6, 9, .66);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}
.masthead::after, .button::after, .hero-copy .text-link::after, .site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; flex-shrink: 0; text-decoration: none; }
.bar-s { width: 23px; height: 30px; background: linear-gradient(45deg, var(--crimson), var(--champagne)); -webkit-mask: url('/assets/lumiere/bar-mark.png') center / contain no-repeat; mask: url('/assets/lumiere/bar-mark.png') center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(229, 53, 74, .35)); }
.bar-name { font-size: 14px; font-weight: 600; letter-spacing: .21em; text-transform: uppercase; }
.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 10px; color: var(--grey); font-size: 12px; font-weight: 600; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease); }
.site-nav a:hover { color: var(--ivory); background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current='page'] { color: var(--ivory); background: rgba(255, 255, 255, .08); box-shadow: var(--chosen); }
.site-nav a[aria-current='page']::after { padding: 1.4px; background: var(--lit); }

body::before { content: ''; position: fixed; z-index: 9; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top, 0px) + 92px); background: linear-gradient(to bottom, var(--canvas) 30%, transparent); pointer-events: none; }

/* The hero: the words beside the lit S, with the opening's smoke behind the S and not behind the words. */
.document-hero {
  position: relative;
  isolation: isolate;
  width: min(1560px, calc(100% - 2 * var(--gutter)));
  min-height: 550px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  padding-block: 64px;
}
.document-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: calc(100% - (100% - 32px) / 4.8);
  width: min(1100px, 90vw);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  background: url('/assets/lumiere/smoke-still.jpg') center / cover;
  opacity: .55;
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent);
  mask: radial-gradient(closest-side, #000 25%, transparent);
  pointer-events: none;
}
.hero-copy h1 { font-size: clamp(48px, 6.1vw, 88px); line-height: 1.03; letter-spacing: -.022em; }
.hero-copy p { max-width: 34ch; margin-top: 28px; color: var(--read); font-size: 21px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 17px; }
.text-link svg { width: 18px; height: 18px; }
.button, .hero-copy .text-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 26px; padding: 0 20px; border-radius: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .19em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: box-shadow .15s var(--ease), transform .1s var(--ease); }
.button { background: #dd3046; color: #fff; }
.hero-copy .text-link { background: rgba(6, 6, 9, .3); color: var(--ivory); }
.button svg, .hero-copy .text-link svg { width: 14px; height: 14px; stroke-width: 2; }
.button:hover, .button:focus-visible, .hero-copy .text-link:hover, .hero-copy .text-link:focus-visible { outline: none; box-shadow: var(--halo); }
.button:hover::after, .button:focus-visible::after, .hero-copy .text-link:hover::after, .hero-copy .text-link:focus-visible::after { padding: 1.4px; background: var(--lit); }
.button:active, .hero-copy .text-link:active { transform: scale(.98); }
.hero-art { justify-self: center; width: min(100%, 420px); }
.lit-s {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(45deg, #d9485c, #ffcdb6);
  -webkit-mask: url('/assets/lumiere/opening-lines.png') center / contain no-repeat, radial-gradient(circle at 50% 49.9%, #000 var(--reach), transparent calc(var(--reach) + 7%));
  -webkit-mask-composite: source-in;
  mask: url('/assets/lumiere/opening-lines.png') center / contain no-repeat, radial-gradient(circle at 50% 49.9%, #000 var(--reach), transparent calc(var(--reach) + 7%));
  mask-composite: intersect;
}
.hero-art { filter: drop-shadow(0 0 16px rgba(229, 53, 74, .55)); }
@media (prefers-reduced-motion: no-preference) {
  .lit-s { animation: light-up .95s .1s cubic-bezier(.33, 0, .2, 1) both; }
  @keyframes light-up { from { --reach: 0%; } to { --reach: 78%; } }
}

/* The reading part: the app's column beside its page. */
.reading-surface { padding: 72px var(--gutter) 100px; }
.reading-layout { max-width: 1560px; margin-inline: auto; display: grid; grid-template-columns: 245px minmax(0, 720px); gap: clamp(48px, 8vw, 140px); align-items: start; }
.contents { position: sticky; top: 108px; font-size: 15px; }
.contents details { max-height: calc(100svh - 140px); overflow-y: auto; scrollbar-color: rgba(245, 245, 247, .24) transparent; }
.contents summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; color: var(--grey); font-size: 11.5px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; cursor: pointer; list-style: none; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary svg { width: 18px; height: 18px; }
.contents details[open] summary svg { transform: rotate(180deg); }
.contents ul { list-style: none; margin: 10px 0 0; padding: 0; }
.contents a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--grey); line-height: 1.4; text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.contents a:hover { color: var(--ivory); background: rgba(255, 255, 255, .08); }
.document { min-width: 0; color: var(--read); overflow-wrap: break-word; }
.document-intro .updated { margin-bottom: 26px; font-size: 14px; color: var(--grey); }
.document-intro .lead { color: var(--ivory); font-size: 23px; font-weight: 300; line-height: 1.5; letter-spacing: -.01em; }
.document p, .document ul, .document ol { margin: 0 0 18px; }
.document ul, .document ol { padding-left: 24px; }
.document li { margin-bottom: 10px; padding-left: 6px; }
.document li::marker { color: var(--grey); }
.document strong { color: var(--ivory); font-weight: 600; }
.document code { font: inherit; overflow-wrap: anywhere; }
.document a { color: var(--ivory); text-decoration-color: var(--grey); overflow-wrap: anywhere; }
.document a:hover { text-decoration-color: var(--champagne); }
.document-section { margin-top: 56px; }
.document h2 { margin-bottom: 22px; color: var(--ivory); font-size: 34px; line-height: 1.15; letter-spacing: -.015em; }
.document h3 { margin: 32px 0 12px; color: var(--ivory); font-size: 21px; font-weight: 500; line-height: 1.3; }
.document h2:target { text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.site-footer { max-width: calc(1560px + 2 * var(--gutter)); margin-inline: auto; padding: 80px var(--gutter) 36px; }
.footer-contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 70px; }
.footer-contact h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 24px; border-top: 1px solid var(--hair); }
.footer-bottom nav { display: flex; gap: 24px; align-items: center; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grey); font-size: 14px; text-underline-offset: 3px; }
.footer-bottom nav a:hover { color: var(--ivory); }
.fine-print { max-width: 90ch; margin-top: 30px; font-size: 13px; line-height: 1.6; color: var(--grey); }

@media (max-width: 1000px) {
  .document-hero { min-height: 470px; }
  .reading-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  .masthead { gap: 8px; min-height: 58px; padding: 0 9px 0 14px; }
  .bar-s { width: 20px; height: 26px; }
  .bar-name { font-size: 12.5px; letter-spacing: .19em; }
  .document-hero { min-height: 0; padding: 52px 0 44px; grid-template-columns: 1fr; gap: 0; }
  .hero-copy h1 { font-size: 52px; }
  .hero-copy p { font-size: 18px; margin-top: 22px; }
  .document-hero::before { top: 34%; left: 50%; width: 150vw; opacity: .28; }
  .hero-art { display: none; }
  .reading-surface { padding: 24px var(--gutter) 64px; }
  .reading-layout { display: block; }
  .contents { position: static; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
  .contents details { max-height: none; padding: 0; }
  .contents ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .contents a { padding: 10px 8px; min-height: 44px; font-size: 14px; }
  .document { font-size: 17px; }
  .document-intro .lead { font-size: 21px; }
  .document h2 { font-size: 30px; }
  .document h3 { font-size: 20px; }
  .document-section { margin-top: 42px; }
  .site-footer { padding: 52px var(--gutter) 28px; }
  .footer-contact { display: block; margin-bottom: 48px; }
  .footer-contact .text-link { margin-top: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 479px) {
  .masthead .bar-name { display: none; }
  .site-nav a { padding: 0 9px; font-size: 11px; letter-spacing: .15em; }
  .hero-copy h1 { font-size: 44px; }
}

@media print {
  :root, body { background: white; color: black; }
  .masthead, .skip-link, .hero-art, .hero-copy .button, .hero-copy .text-link, .contents, .site-footer, .document-hero::before, body::before { display: none; }
  .document-hero { display: block; width: auto; min-height: 0; padding: 0 0 32px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy p, .document, .document-intro .lead, .document-intro .updated, .document strong, .document a, .document h2, .document h3 { color: black; }
  .reading-surface { padding: 12px; }
  .reading-layout { display: block; max-width: none; }
  body { font-size: 12pt; }
  .document h2 { font-size: 22px; break-after: avoid; }
  .document h3 { font-size: 18px; break-after: avoid; }
}
