/* Still Fold. Warm paper, one vermilion sheet with a white back, a pale figure to fold towards, and the system face.
   The home page is a letter folded once across the middle; the legal pages are a single sheet with a turned corner. */
:root { --ink: #1b1b1f; --body: #2e2e33; --mute: #66645e; --mark: #c9c5bc; --red: #f2492c; --paper: #f1efea; --S: min(248px, 56vw, 30svh); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ------------------------------------------------------------------ home */
.home main { flex: 1; display: flex; flex-direction: column; }
.table { flex: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 40px 20px 36px; }
.target { display: block; width: calc(var(--S) * .2); height: auto; margin-bottom: calc(var(--S) * .3); overflow: visible; }
.target path { animation: flash 9s infinite; }
.dot { display: block; width: 6px; height: 6px; margin-top: calc(var(--S) * .22); border-radius: 50%; background: var(--ink); }

/* the sheet: the upper-right half is a flap that turns over the diagonal and shows its white back */
.sq { position: relative; width: var(--S); height: var(--S); perspective: 1100px; }
.base, .flap, .front, .back, .shade { position: absolute; inset: 0; display: block; }
.base { background: var(--red); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.shade { background: var(--ink); opacity: 0; animation: shade 9s infinite; }
.flap { transform-style: preserve-3d; animation: fold 9s infinite; }
.front { background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.back { background: #fff; clip-path: polygon(0 -1%, 0 100%, 101% 100%); transform: rotate3d(1, 1, 0, 180deg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@keyframes fold {
  0%, 14% { transform: rotate3d(1, 1, 0, 0deg); animation-timing-function: cubic-bezier(.55, 0, .25, 1); }
  44%, 78% { transform: rotate3d(1, 1, 0, 180deg); animation-timing-function: cubic-bezier(.55, 0, .3, 1); }
  94%, 100% { transform: rotate3d(1, 1, 0, 0deg); }
}
@keyframes shade { 0%, 16% { opacity: 0; } 30% { opacity: .14; } 44%, 80% { opacity: 0; } 86% { opacity: .1; } 94%, 100% { opacity: 0; } }
@keyframes flash { 0%, 46% { stroke: #c9c5bc; } 50% { stroke: #1b1b1f; } 60%, 100% { stroke: #c9c5bc; } }
@media (prefers-reduced-motion: reduce) {
  .flap, .shade, .target path { animation: none; }
  .flap { transform: rotate3d(1, 1, 0, 118deg); }
  .shade { opacity: .08; }
}

/* the fold across the letter */
.crease { height: 26px; margin: 0; background: linear-gradient(to bottom, rgba(27, 27, 31, 0) 0, rgba(27, 27, 31, .045) 49%, rgba(255, 255, 255, .7) 51%, rgba(255, 255, 255, 0) 100%); }
.copy { flex: 1; width: 100%; max-width: 34rem; margin: 0 auto; padding: 36px 24px 28px; }
.home h1 { margin: 0; font-size: clamp(40px, 6vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.tag { margin: 16px 0 0; max-width: 22em; font-size: 18px; line-height: 1.45; color: var(--mute); }
.store { margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; }
.store.soon { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.store.soon::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); }
ul.store { display: flex; flex-wrap: wrap; gap: 12px; }
ul.store + .store.soon { margin-top: 14px; }
.store-link { display: inline-block; padding: 13px 20px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 1px 2px rgba(27, 27, 31, .08), 0 6px 18px -10px rgba(27, 27, 31, .3); }
.store-pre { font-weight: 400; color: var(--mute); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; width: 100%; max-width: 34rem; margin: 0 auto; padding: 8px 24px 28px; }
.foot nav { display: flex; gap: 22px; }
.foot a { display: inline-block; padding: 10px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .made { color: var(--mute); }

/* ------------------------------------------------------------------ the legal pages: one sheet with a turned corner */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 20px; width: 100%; max-width: 46rem; margin: 0 auto; padding: 18px 20px 10px; }
.name { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.name i { width: 14px; height: 14px; background: linear-gradient(225deg, var(--red) 50%, #fff 50%); box-shadow: 0 0 0 .5px rgba(27, 27, 31, .15); }
.bar nav { display: flex; gap: 18px; }
.bar nav a { padding: 10px 0; font-size: 14px; color: var(--mute); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current] { color: var(--ink); font-weight: 600; }
.sheet { position: relative; width: calc(100% - 24px); max-width: 44rem; margin: 8px auto 0; padding: 56px clamp(22px, 7vw, 72px) 60px; background: #fff;
  box-shadow: 0 1px 2px rgba(27, 27, 31, .05), 0 18px 40px -28px rgba(27, 27, 31, .35); }
.sheet::before { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(225deg, var(--paper) 50%, #e4e0d7 50%); box-shadow: -2px 2px 4px -2px rgba(27, 27, 31, .18); }
.doc h1 { margin: 0; padding-right: 40px; font-size: clamp(32px, 7vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.effective { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.text { margin-top: 34px; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.text p { margin: 0 0 1em; }
.text .lede { font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 0; }
.text section { margin-top: 40px; padding-top: 34px; background: linear-gradient(90deg, var(--mark) 0 8px, transparent 8px 14px) top left / 14px 1.5px repeat-x; }
.text h2 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); }
.text h2::before { content: ""; flex: none; width: 11px; height: 11px; margin-top: .36em; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.text ul { margin: 0 0 1em; padding: 0; list-style: none; }
.text li { position: relative; padding-left: 22px; margin: 0 0 .6em; }
.text li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 1px; transform: rotate(45deg) scale(.8); }
.text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--red); overflow-wrap: anywhere; }
.text a:hover { text-decoration-thickness: 2px; }
.doc .foot { max-width: 46rem; padding: 18px 20px 32px; }

/* House style: our own words are lowercase. Trademarks and the body of legal text keep their case. */
h1, h2, h3, nav, header a, footer a, .tag, .label, .name, .title, .made, .band a { text-transform: lowercase; }
