/* True Half. The page is cut in two, as the game cuts its shapes: warm paper on one side for the shape,
   white on the other for the words. Ink, paper and one vermilion half; the system face, set firm. */
:root { --ink: #1b1b1f; --body: #2e2e33; --mute: #66645e; --red: #f2492c; --paper: #f1efea; --rule: #dcd8cf; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; 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; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.paper { background: var(--paper); }
.words { display: flex; flex-direction: column; background: #fff; }

/* ------------------------------------------------------------------ home */
.home .paper { display: flex; align-items: center; justify-content: center; padding: 40px; }
.cut { display: block; width: min(460px, 34vw); height: auto; overflow: visible; }
.cut text { font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.home main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(28px, 8vw, 120px) 32px; }
.home h1 { margin: 0; font-size: clamp(44px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.tag { margin: 22px 0 0; max-width: 20em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--mute); }
.store { margin: 36px 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: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 0 45%, transparent 45% 55%, var(--red) 55%); }
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: var(--ink); color: #fff; text-decoration: none; font-weight: 600; border-radius: 3px; }
.store-pre { font-weight: 400; opacity: .75; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 20px clamp(28px, 8vw, 120px) 28px; border-top: 1px solid #efede8; }
.foot nav { display: flex; gap: 24px; }
.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 cut: the line passes, the halves part, one takes the colour, the readings agree; then the shape is whole again */
.line { stroke-dasharray: 1 1; animation: line 10s infinite; }
.a { animation: a 10s infinite; }
.b { animation: b 10s infinite; }
.whole { animation: whole 10s infinite; }
.ra, .rb { animation: reading 10s infinite; }
@keyframes line {
  0%, 10% { stroke-dashoffset: 1; opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  26% { stroke-dashoffset: 0; opacity: 1; }
  40% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes a {
  0%, 26% { transform: none; animation-timing-function: cubic-bezier(.2, .9, .25, 1); }
  38%, 82% { transform: translateX(-7px); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  92%, 100% { transform: none; }
}
@keyframes b {
  0%, 26% { transform: none; fill: #1b1b1f; animation-timing-function: cubic-bezier(.2, .9, .25, 1); }
  38% { transform: translateX(7px); fill: #1b1b1f; }
  44%, 82% { transform: translateX(7px); fill: #f2492c; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  92%, 100% { transform: none; fill: #1b1b1f; }
}
@keyframes whole { 0%, 18% { opacity: 1; } 24%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes reading { 0%, 42% { opacity: 0; } 48%, 80% { opacity: 1; } 86%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .line, .a, .b, .whole, .ra, .rb { animation: none; }
  .line, .whole { opacity: 0; }
  .a { transform: translateX(-7px); }
  .b { transform: translateX(7px); fill: #f2492c; }
}

/* ------------------------------------------------------------------ the legal pages: the title on the paper side, the text on the white */
.doc .split { grid-template-columns: minmax(280px, 34%) 1fr; background: var(--paper); }
.side { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 28px clamp(24px, 3.4vw, 56px) 32px; }
.name { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.name i, .text h2::before { flex: none; width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 0 45%, transparent 45% 55%, var(--red) 55%); }
.title { margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.doc h1 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.effective { margin: 16px 0 0; font-size: 14px; color: var(--mute); }
.side nav { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--rule); padding-top: 14px; }
.side nav a { padding: 7px 0; font-size: 15px; color: var(--mute); text-decoration: none; }
.side nav a:hover { color: var(--ink); }
.side nav a[aria-current] { color: var(--ink); font-weight: 600; }
.doc .words { min-width: 0; }
.text { flex: 1; width: 100%; max-width: 44rem; padding: 72px clamp(24px, 6vw, 96px) 64px; 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: 48px; padding-top: 28px; border-top: 1px solid #efede8; }
.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: ""; margin-top: .3em; }
.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: .72em; width: 10px; height: 1.5px; background: var(--ink); }
.text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.text a:hover { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.doc .foot { padding-left: clamp(24px, 6vw, 96px); }

/* a phone: the cut runs across instead of down */
@media (max-width: 760px) {
  .split, .doc .split { grid-template-columns: 1fr; }
  .home .split { grid-template-rows: auto 1fr; }
  .home .paper { padding: 56px 24px 40px; }
  .cut { width: min(280px, 68vw); }
  .home main { padding: 40px 24px 32px; justify-content: flex-start; }
  .foot, .doc .foot { padding: 16px 24px 28px; }
  .side { position: static; height: auto; padding: 18px 24px 0; }
  .title { padding: 36px 0 28px; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 0 20px; padding: 6px 0 10px; }
  .side nav a { padding: 10px 0; }
  .text { padding: 36px 24px 48px; }
}

/* 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; }
