/* liveaux — black on white, one typeface, sharp edges. Motion is the only flourish.
   Everything is readable at rest: animations start from visible and are switched off
   for people who ask for reduced motion. */

/* Inter is served from liveaux itself, so visitors' browsers don't contact Google. SIL OFL. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.1ad231aac0a8.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.260c81a4759b.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;
}

/* Tokens */

/* Two sides, two colours. Live is out in the city: signal orange, the colour of posters, street signs
   and stage light. Aux is at home: ultramarine, the light of a screen in a dark room. Everything else
   stays black on white. A page on one side takes that side's colour as its accent; pages that belong
   to neither (your account, log in) stay black. Orange carries black text; ultramarine carries white. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f3f3;
  --line: #e4e4e4;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --inverse: #ffffff;
  --danger: #c4231b;
  --field-border: #8a8a8a;

  --live: #ff4f00;
  --live-ink: #0a0a0a;
  --live-text: #c23d00;
  --live-soft: #fff1ea;
  --aux: #3b2cf6;
  --aux-ink: #ffffff;
  --aux-text: #3b2cf6;
  --aux-soft: #efeefe;

  --accent: var(--text);
  --accent-ink: var(--inverse);
  --accent-text: var(--text);
  --accent-soft: var(--surface);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --swift: cubic-bezier(0.7, 0, 0.2, 1);
  --fast: 0.2s;
  --slow: 0.6s;
  --header-h: 64px;
  --sidenav-h: 0px;
  --sticky-top: calc(var(--header-h) + var(--sidenav-h));
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --line: #262626;
    --text: #f5f5f5;
    --muted: #9a9a9a;
    --inverse: #0a0a0a;
    --danger: #ff6b61;
    --field-border: #6f6f6f;

    --live-text: #ff7a3d;
    --live-soft: #2a1406;
    --aux: #4a3cff;
    --aux-text: #9d94ff;
    --aux-soft: #16133d;
  }
}

:root[data-side="live"] {
  --accent: var(--live);
  --accent-ink: var(--live-ink);
  --accent-text: var(--live-text);
  --accent-soft: var(--live-soft);
  --sidenav-h: 44px;
}

:root[data-side="aux"] {
  --accent: var(--aux);
  --accent-ink: var(--aux-ink);
  --accent-text: var(--aux-text);
  --accent-soft: var(--aux-soft);
  --sidenav-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Text links inside running text: underlined; the line slides away on hover. Footer and header
   links do it the other way round: the line draws in. */
:is(.description, .facts, .help, .page-meta, .narrow > p, .narrow > ul) a,
.site-footer a,
.account-nav a:not(.nav-cta):not(.account-link) {
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  transition: background-size var(--fast) var(--ease);
}

:is(.description, .facts, .help, .page-meta, .narrow > p, .narrow > ul) a {
  background-size: 100% 1px;
}

:is(.description, .facts, .help, .page-meta, .narrow > p, .narrow > ul) a:hover {
  background-size: 0 1px;
  background-position: right bottom;
}

.site-footer a:hover,
.account-nav a:not(.nav-cta):not(.account-link):hover {
  background-size: 100% 1px;
}

main,
.site-header,
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.muted {
  color: var(--muted);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Motion */

/* Everything that rises in uses this: the page head, sections, rows (staggered) and cards. */
@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0.001;
  }
}

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

/* Header: the logo, the switch between live and aux, and your account. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wordmark {
  display: block;
  padding: 8px 0;
  justify-self: start;
  line-height: 0;
}

.wordmark .logo {
  height: 30px;
  width: auto;
}

/* The logo in three parts. Each part takes its colour from `color`; strokes follow it. */
.logo {
  overflow: visible;
}

.logo-live,
.logo-e,
.logo-aux {
  fill: currentColor;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.logo [stroke-width] {
  stroke: currentColor;
}

/* The e teeters on the edge of the field. */
.logo-e {
  transform-box: view-box;
  transform-origin: 140px 100px;
  transform: rotate(16deg);
}

/* The side you're on lights up in the logo. */
[data-side="live"] .wordmark .logo-live {
  color: var(--live);
}

[data-side="aux"] .wordmark .logo-aux {
  color: var(--aux);
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark:hover .logo-e,
  .wordmark:focus-visible .logo-e {
    animation: teeter 1.2s var(--ease);
  }
}

@keyframes teeter {
  0%   { transform: rotate(16deg); }
  25%  { transform: rotate(27deg); }
  55%  { transform: rotate(9deg); }
  80%  { transform: rotate(19deg); }
  100% { transform: rotate(16deg); }
}

/* Live or aux: two tabs, the one you're on filled with its colour. */
.side-switch {
  display: flex;
  border: 1px solid var(--text);
}

.side-switch a {
  position: relative;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--fast) var(--ease);
}

.side-switch a + a {
  border-left: 1px solid var(--text);
}

.side-switch a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
}

.side-live::before {
  background: var(--live);
}

.side-aux::before {
  background: var(--aux);
}

.side-live:hover,
.side-live[aria-current] {
  color: var(--live-ink);
}

.side-aux:hover,
.side-aux[aria-current] {
  color: var(--aux-ink);
}

.side-switch a:hover::before,
.side-switch a[aria-current]::before {
  transform: none;
}

.account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-nav form {
  margin: 0;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-name {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--text);
  color: var(--inverse);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background var(--fast), color var(--fast);
}

.account-link:hover .avatar,
.account-link[aria-current] .avatar {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-button:hover {
  color: var(--muted);
}

.nav-cta {
  padding: 8px 14px;
  background: var(--text);
  color: var(--inverse);
  transition: opacity var(--fast);
}

.nav-cta:hover {
  opacity: 0.8;
}

/* Under the header: the pages of the side you're on. One row, swipeable on a phone. */
.side-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 19;
  height: var(--sidenav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.side-nav-track {
  display: flex;
  gap: 26px;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav-track::-webkit-scrollbar {
  display: none;
}

.side-nav a {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  color: var(--muted);
  transition: color var(--fast);
}

.side-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.side-nav a:hover,
.side-nav a[aria-current] {
  color: var(--text);
}

.side-nav a:hover::after,
.side-nav a[aria-current]::after {
  transform: none;
}

/* Page heads: the same on both sides. A small line in the side's colour, a big title, a line of facts. */
.page-head {
  padding: 48px 0 32px;
  animation: rise var(--slow) var(--ease) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow a {
  border-bottom: 1px solid currentColor;
}

.page-head h1 {
  max-width: 18ch;
  overflow-wrap: break-word;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.page-meta {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.page-meta a {
  color: var(--text);
}

.messages + .page-head {
  padding-top: 32px;
}

/* Coming in through the e: the colour of the side you chose closes in on the logo in the header. */
:root[data-arrive] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--live);
  clip-path: circle(0 at var(--arrive-x, 40px) var(--arrive-y, 32px));
  animation: arrive 0.9s var(--swift) both;
}

:root[data-arrive="aux"] body::after {
  background: var(--aux);
}

@keyframes arrive {
  from {
    clip-path: circle(150vmax at var(--arrive-x, 40px) var(--arrive-y, 32px));
  }
}

/* The front page: choose live or aux. */

.choose-page main {
  max-width: none;
  padding: 0;
}

.choose {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.choose-account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choose-logo {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100% - 48px, 1100px);
  margin: 0;
  padding: 6vh 0;
  line-height: 0;
}

.choose-logo .logo {
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
}

.choose-logo .logo-live {
  color: var(--live);
}

.choose-logo .logo-aux {
  color: var(--aux);
}

/* The halves of the logo you can tap: live up to the end of its field, aux from its letters down. */
.choose-hit {
  position: absolute;
}

.choose-hit-live {
  left: 0;
  top: 6vh;
  width: 39%;
  height: calc((100% - 12vh) * 0.78);
}

.choose-hit-aux {
  right: 0;
  bottom: 6vh;
  width: 61%;
  height: calc((100% - 12vh) * 0.53);
}

/* Pointing at a side: the e leans its way, and the other side steps back. */
[data-hover="live"] .choose-logo .logo-e {
  transform: rotate(0deg);
}

[data-hover="aux"] .choose-logo .logo-e {
  transform: rotate(40deg);
}

[data-hover="live"] .choose-logo .logo-aux,
[data-hover="aux"] .choose-logo .logo-live {
  opacity: 0.2;
}

/* Live sits higher than aux, as in the logo: its panel stands one step taller. */
.choose-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.choose-option {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 34vh;
  min-height: 34svh;
  padding: 24px;
  background: var(--live);
  color: var(--live-ink);
  transition: min-height 0.5s var(--ease);
}

.choose-option[data-choose="aux"] {
  min-height: 28vh;
  min-height: 28svh;
  background: var(--aux);
  color: var(--aux-ink);
}

.choose-option:hover,
.choose-option:focus-visible {
  min-height: 38svh;
}

.choose-option[data-choose="aux"]:hover,
.choose-option[data-choose="aux"]:focus-visible {
  min-height: 32svh;
}

.choose-option:focus-visible {
  outline-offset: -6px;
  outline-color: currentColor;
}

.choose-name {
  font-size: clamp(2.75rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.choose-what {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.choose-now {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.85;
}

.choose-arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}

.choose-option:hover .choose-arrow {
  transform: translate(4px, -4px) scale(1.2);
}

.choose-option[data-choose="aux"]:hover .choose-arrow {
  transform: translate(4px, 4px) scale(1.2);
}

/* Tapping a side zooms into the e, which takes that side's colour until it fills the screen. */
.choose.is-zooming .choose-logo .logo {
  transform: scale(80);
  transition: transform 0.85s var(--swift);
}

.choose.is-zooming .logo-live,
.choose.is-zooming .logo-aux {
  opacity: 0;
  transition-duration: 0.25s;
}

.choose.is-zooming[data-chosen="live"] .logo-e {
  color: var(--live);
}

.choose.is-zooming[data-chosen="aux"] .logo-e {
  color: var(--aux);
}

.choose.is-zooming .choose-options,
.choose.is-zooming .choose-account {
  opacity: 0;
  transition: opacity 0.25s;
}

.choose::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
}

.choose.is-zooming::after {
  opacity: 1;
  transition: opacity 0.2s 0.6s;
}

.choose[data-chosen="live"]::after {
  background: var(--live);
}

.choose[data-chosen="aux"]::after {
  background: var(--aux);
}

/* Arriving on the front page: the field draws, live stands up on it, the e drops onto the edge
   and teeters, aux comes up a step lower, and the two ways in rise from the bottom. */
@media (prefers-reduced-motion: no-preference) {
  .choose-logo .logo-live > :not(.logo-field) {
    animation: letter-up 0.7s var(--ease) both;
  }

  .choose-logo .logo-live > :nth-child(2) { animation-delay: 60ms; }
  .choose-logo .logo-live > :nth-child(3) { animation-delay: 90ms; }
  .choose-logo .logo-live > :nth-child(4) { animation-delay: 140ms; }

  .choose-logo .logo-field,
  .choose-logo .logo-floor {
    transform-box: fill-box;
    transform-origin: left;
    animation: draw 0.7s var(--ease) both;
  }

  .choose-logo .logo-floor {
    animation-delay: 0.95s;
  }

  .choose-logo .logo-e {
    animation: e-drop 1.3s both;
    animation-delay: 0.35s;
  }

  .choose-logo .logo-aux > :not(.logo-floor) {
    animation: letter-up 0.7s var(--ease) both;
    animation-delay: 0.85s;
  }

  .choose-logo .logo-aux > :nth-child(n + 3) { animation-delay: 0.9s; }
  .choose-logo .logo-aux > :nth-child(n + 5) { animation-delay: 0.95s; }

  .choose-option {
    animation: panel-up 0.8s var(--ease) both;
    animation-delay: 1.05s;
  }

  .choose-option[data-choose="aux"] {
    animation-delay: 1.15s;
  }
}

@keyframes letter-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes panel-up {
  from {
    transform: translateY(100%);
  }
}

@keyframes e-drop {
  0%   { transform: translateY(-160px) rotate(0deg); opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  10%  { opacity: 1; }
  38%  { transform: translateY(0) rotate(0deg); animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
  58%  { transform: rotate(28deg); }
  74%  { transform: rotate(10deg); }
  88%  { transform: rotate(19deg); }
  100% { transform: rotate(16deg); }
}

/* Back links: a small line above the page head. */

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--fast);
}

.back::before {
  content: "←";
  transition: transform var(--fast) var(--ease);
}

.back:hover {
  color: var(--text);
}

.back:hover::before {
  transform: translateX(-4px);
}

.back + .page-head {
  padding-top: 8px;
}

/* Filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filters:last-of-type {
  margin-bottom: 40px;
}

.chips-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--fast) var(--ease), border-color var(--fast);
}

/* Fill wipes up from the bottom on hover. */
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--fast) var(--ease);
}

a.chip:hover,
.chip.active {
  border-color: var(--accent);
  color: var(--accent-ink);
}

a.chip:hover::before,
.chip.active::before {
  transform: none;
}

.chip strong {
  margin-left: 6px;
}

/* Sections: a sticky heading over a list, the same on every page. */

.month {
  margin-bottom: 56px;
  animation: rise var(--slow) var(--ease) both;
}

.month-heading,
.side-heading,
.narrow h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.month-heading {
  position: sticky;
  top: var(--sticky-top);
  z-index: 2;
}

.month-heading .muted,
.side-heading .muted {
  font-weight: 500;
}

.month-live .month-heading {
  border-bottom-color: var(--live);
}

.month-aux .month-heading {
  border-bottom-color: var(--aux);
}

.side-heading {
  margin-top: 32px;
}

.narrow h2 {
  margin: 48px 0 16px;
}

.narrow h2 + .facts div:first-child {
  border-top: 0;
}

/* "See all" and friends: at the end of a heading, or on a line of their own. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -12px 0 -12px auto;
  padding: 12px 0;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: gap var(--fast) var(--ease);
}

.more::after {
  content: "→";
}

.more:hover {
  gap: 14px;
}

.more-line {
  display: flex;
  min-height: 40px;
  margin: -32px 0 56px;
}

.more-line .more {
  margin: 0;
}

.month.quiet {
  margin-bottom: 16px;
}

.month.quiet .month-heading {
  position: static;
  border-bottom-color: var(--line);
  color: var(--muted);
}

.month.quiet .empty {
  padding: 10px 0;
  font-size: 13px;
}

.empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}

/* Rows: events, log entries, check-ins, calendar days, up next, lists and pages to manage.
   One family: a date (or a cover) on the left, a tag, a title and a line of detail, and
   whatever belongs at the end. The title is the link and covers the whole row. */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color var(--fast) var(--ease), padding var(--slow) var(--ease);
}

.row-plain {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* The next thing on the same day: no date, and closer to the one above. */
.row.is-same-day {
  min-height: 0;
  padding-top: 4px;
  border-top: 0;
}

.rows > .row:has(+ .is-same-day) {
  padding-bottom: 4px;
  border-bottom-color: transparent;
}

.rows > li {
  animation: rise var(--slow) var(--ease) both;
}

.rows > li:nth-child(2) { animation-delay: 40ms; }
.rows > li:nth-child(3) { animation-delay: 80ms; }
.rows > li:nth-child(4) { animation-delay: 120ms; }
.rows > li:nth-child(5) { animation-delay: 160ms; }
.rows > li:nth-child(6) { animation-delay: 200ms; }
.rows > li:nth-child(n + 7) { animation-delay: 240ms; }

/* Hover: the side's colour wipes in from the left. Only where there is a pointer, so a tap on a phone
   doesn't leave a row lit. */
.row::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) {
  .row:has(.row-title a):hover {
    color: var(--accent-ink);
    padding-left: 12px;
  }

  .row:has(.row-title a):hover::before {
    transform: none;
  }

  .row:has(.row-title a):hover :is(.muted, .row-sub, .weekday, .tag, .rating span, .link-button, .status) {
    color: inherit;
    border-color: currentColor;
    opacity: 0.75;
  }

  .row:has(.row-title a):hover .row-note {
    color: inherit;
  }

  .row:has(.row-title a):hover .arrow {
    transform: none;
    opacity: 1;
  }

  .row:has(.row-title a):hover .button-ghost {
    border-color: currentColor;
    color: inherit;
  }

  .row:has(.row-title a):hover .button:not(.button-ghost) {
    border-color: var(--accent-ink);
    background: var(--accent-ink);
    color: var(--accent);
  }
}

.row:focus-within::before {
  transform: none;
}

.row:focus-within {
  color: var(--accent-ink);
}

.row-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row-title a:focus-visible {
  outline: none;
}

.row-end {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.row-end:empty {
  display: none;
}

.row-end form {
  margin: 0;
}

.row-date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.day {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.weekday {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.row-date .weekday:first-child {
  margin: 0 0 6px;
}

.row-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--aux);
  color: var(--aux-ink);
}

.row-cover .card-placeholder {
  padding: 5px;
}

.row-cover .card-placeholder-title {
  display: none;
}

.row-main {
  min-width: 0;
}

.tag {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-live {
  color: var(--live-text);
}

.row-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.row-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.row-note {
  margin: 8px 0 0;
  font-size: 14px;
}

.row-note::before {
  content: "— ";
}

.row-meta {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rating {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rating span {
  margin-left: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.arrow {
  font-size: 18px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform var(--fast) var(--ease), opacity var(--fast);
}

.is-past {
  opacity: 0.5;
}

.status {
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-approved,
.status-on {
  border-color: var(--text);
  color: var(--text);
}

.status-rejected {
  border-color: var(--danger);
  color: var(--danger);
}

/* Up next, side by side on a wide screen. */
.rows-two {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  column-gap: 40px;
}

/* Numbered rankings in the stats. */
.ranking {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranking li:not(.empty) {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: rank;
}

.ranking li:not(.empty)::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ranking li > :first-child {
  flex: 1;
  font-weight: 600;
}

.ranking a {
  margin: -12px 0;
  padding: 12px 0;
}

.ranking a {
  transition: color var(--fast);
}

.ranking a:hover {
  color: var(--accent-text);
}

/* Detail pages: an event, a venue or artist, a title in your library. The poster or cover on the left,
   in the colour of its side: orange with black for live, ultramarine with white for aux. */

.detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  margin: 24px 0 72px;
  animation: rise var(--slow) var(--ease) both;
}

.back + .detail {
  margin-top: 8px;
}

.detail-body .page-head {
  padding: 0 0 28px;
  animation: none;
}

.detail-body .page-head h1 {
  max-width: none;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
}

.detail-body .actions {
  margin: 0 0 32px;
}

.poster {
  display: flex;
  flex-direction: column;
  align-self: start;
  aspect-ratio: 3 / 4;
  padding: 20px;
  background: var(--live);
  color: var(--live-ink);
  line-height: 1;
}

.poster-big {
  margin: auto 0 0 -6px;
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.poster-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poster-big + .poster-label {
  margin-top: 8px;
}

.cover {
  position: relative;
  align-self: start;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--aux);
  color: var(--aux-ink);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover .card-placeholder {
  padding: 20px;
}

.cover .card-placeholder-title {
  font-size: 32px;
  overflow-wrap: break-word;
  hyphens: auto;
}

:is(.month, .two-columns) + .danger-zone {
  margin-top: 0;
}

.facts {
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
}

.description {
  max-width: 62ch;
}

.description > :first-child {
  margin-top: 0;
}

/* Buttons: square, uppercase, and a wipe on hover. */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.button:hover {
  color: var(--text);
}

.button:hover::before {
  transform: none;
  transform-origin: left;
}

.button-ghost {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

.button-ghost::before {
  background: var(--accent);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 10px;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--fast);
}

.link-button:hover {
  color: var(--text);
}

.link-button.danger:hover {
  color: var(--danger);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.actions form {
  margin: 0;
}

.page-head .actions {
  margin-top: 28px;
}

main > .actions {
  margin-bottom: 56px;
}

/* Messages */

.messages {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.message {
  padding: 14px 18px;
  background: var(--text);
  color: var(--inverse);
  font-size: 13px;
  animation: rise var(--slow) var(--ease) both;
}

.message-error {
  background: var(--danger);
  color: #fff;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--text);
  overflow: hidden;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links > * {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.footer-links form {
  margin: 0;
}

.footer-links .nav-button {
  min-height: 40px;
}

/* The whole logo, in both colours: live out, aux in. */
.footer-mark {
  display: block;
  margin: 32px 0 24px;
  line-height: 0;
}

.footer-mark .logo-live {
  color: var(--live);
}

.footer-mark .logo-aux {
  color: var(--aux);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-mark:hover .logo-e {
    animation: teeter 1.2s var(--ease);
  }
}

.footer-mark .logo {
  width: 100%;
  height: auto;
}

/* Narrow pages: forms, log in, sign up, privacy. */

main.narrow {
  max-width: 640px;
}

.narrow .page-head h1 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
}

.narrow > p,
.narrow > ul {
  max-width: 62ch;
}

.narrow > ul {
  padding-left: 18px;
}

.narrow > ul li + li {
  margin-top: 6px;
}

/* Forms */

.narrow > p + .form {
  margin-top: 24px;
}

.form {
  display: grid;
  gap: 20px;
  align-content: start;
  margin: 8px 0 48px;
}

.form p,
.field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.optional {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* A checkbox sits on one line with its label. */
.field:has(> input[type="checkbox"]) {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.field:has(> input[type="checkbox"]) > input {
  grid-row: 1;
  grid-column: 1;
}

.field:has(> input[type="checkbox"]) > label {
  grid-row: 1;
  grid-column: 2;
}

.field:has(> input[type="checkbox"]) > :not(input, label) {
  grid-column: 2;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.form textarea {
  min-height: 130px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  outline: none;
}

.form input[type="checkbox"],
.form input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.form ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.help,
.form .help {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.error,
.errorlist,
.form-errors {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--danger);
  font-size: 13px;
}

.form .errorlist {
  padding: 0;
  color: var(--danger);
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--danger);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.form-inline {
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
  margin: 24px 0 8px;
}

/* Search: one field and a button. */
.form-search {
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 20px;
}

.form-search input[type="search"] {
  font-size: 17px;
}

.copy-field {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.disclosure {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disclosure summary,
.season summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.disclosure .form {
  margin: 4px 0 24px;
}

.danger-zone {
  margin-top: 56px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Shelves of covers */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.shelf > .empty {
  grid-column: 1 / -1;
}

.card {
  min-width: 0;
  animation: rise var(--slow) var(--ease) both;
}

.card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3) { animation-delay: 80ms; }
.card:nth-child(4) { animation-delay: 120ms; }
.card:nth-child(5) { animation-delay: 160ms; }
.card:nth-child(n + 6) { animation-delay: 200ms; }

.card > a,
.card-static,
.card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card-static {
  cursor: default;
}

.card form {
  margin: 0;
}

/* Covers are aux things: an empty one is ultramarine with white type. */
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--aux);
  color: var(--aux-ink);
}

.card-cover img,
.row-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}

.card a:hover .card-cover img,
.card-button:hover .card-cover img {
  transform: scale(1.04);
}

.card a:hover h3,
.card-button:hover h3 {
  color: var(--accent-text);
}

.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.card-placeholder .tag {
  color: inherit;
  opacity: 0.75;
}

.card-placeholder-title {
  margin-top: auto;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-score,
.card-action {
  position: absolute;
  z-index: 1;
  padding: 5px 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.card-score {
  right: 0;
  bottom: 0;
}

.card-action {
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--fast) var(--ease);
}

.card-button:hover .card-action,
.card a:hover .card-action,
.card-button:focus-visible .card-action {
  transform: none;
}

/* No hover on a phone: show what a tap does. */
@media (hover: none) {
  .card-action {
    transform: none;
  }
}

.card h3 {
  margin: 10px 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color var(--fast);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Progress */

.meter {
  position: relative;
  display: block;
  height: 3px;
  margin-top: 6px;
  background: var(--line);
}

.meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--size);
  background: var(--accent);
  transform-origin: left;
  animation: grow-x 0.9s var(--ease) both;
}

.meter-large {
  height: 6px;
  margin: 0 0 24px;
}

@keyframes grow-x {
  from {
    transform: scaleX(0.02);
  }
}

/* Item page: seasons and episodes */

.season {
  border-bottom: 1px solid var(--line);
}

.season summary {
  display: grid;
  grid-template-columns: 120px auto 1fr;
  gap: 20px;
  list-style: none;
}

.season summary::-webkit-details-marker {
  display: none;
}

.season summary .meter {
  margin: 0;
}

.season-all {
  margin: 0 0 8px;
}

.episodes {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.episodes li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.episodes form {
  margin: 0;
}

.episode-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.episodes .is-seen .episode-title {
  color: var(--muted);
}

.episodes .is-future {
  opacity: 0.5;
}

.check {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--field-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast) var(--ease);
}

.check:hover {
  border-color: var(--accent);
  transform: scale(1.06);
}

.check.checked {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Numbers: the year in review and stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 56px;
  border-top: 1px solid var(--text);
  animation: rise var(--slow) var(--ease) both;
}

.stats-wide {
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px 0;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.months-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  height: 220px;
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
}

.bars {
  grid-template-columns: repeat(var(--cols, 12), 1fr);
  height: 180px;
}

.months-chart li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
}

@keyframes grow {
  from {
    transform: scaleY(0.02);
  }
}

.bar {
  position: relative;
  height: var(--size);
  min-height: 1px;
  background: var(--accent);
  transform-origin: bottom;
  animation: grow 0.9s var(--ease) both;
}

.months-chart li:nth-child(n + 4) .bar { animation-delay: 60ms; }
.months-chart li:nth-child(n + 7) .bar { animation-delay: 120ms; }
.months-chart li:nth-child(n + 10) .bar { animation-delay: 180ms; }

.bar-count {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bar-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.hbars {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}

.hbars li {
  display: grid;
  grid-template-columns: 120px 1fr 130px;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
}

.hbar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hbar {
  height: 18px;
}

.hbar span {
  display: block;
  width: var(--size);
  min-width: 2px;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: grow-x 0.9s var(--ease) both;
}

.hbar-value {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

/* Tablets and phones */

@media (max-width: 800px) {
  .account-name {
    display: none;
  }

  .detail {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }

  .poster-big {
    font-size: 88px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 56px;
  }

  main,
  .site-header,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .side-switch {
    justify-self: center;
  }

  .side-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
  }

  .wordmark .logo {
    height: 24px;
  }

  .account-nav {
    gap: 12px;
    font-size: 11px;
  }

  .account-link {
    min-height: 40px;
  }

  .side-nav-track {
    gap: 22px;
    padding: 0 16px;
  }

  .page-head {
    padding: 32px 0 24px;
  }

  .choose-account {
    padding: 12px 16px;
  }

  .choose-logo {
    width: calc(100% - 32px);
  }

  .choose-option {
    padding: 16px;
  }

  .choose-arrow {
    top: 14px;
    right: 14px;
  }

  /* One swipeable row per filter group instead of a wall of chips. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
  }

  .month {
    margin-bottom: 44px;
  }

  .row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .row-plain {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .row-end {
    gap: 12px;
  }

  .arrow {
    display: none;
  }

  .day {
    font-size: 26px;
  }

  .row-title {
    font-size: 16px;
  }

  .rating {
    font-size: 20px;
  }

  .rows-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .more-line {
    margin-top: -24px;
  }

  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }

  /* On a phone the poster is a band: day and month on one line. */
  .poster {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    aspect-ratio: auto;
    padding: 16px 20px;
  }

  .poster-big {
    order: -1;
    margin: 0 0 -6px -4px;
    font-size: 72px;
  }

  .poster-big + .poster-label {
    margin-top: 0;
  }

  .cover {
    width: 140px;
  }

  .cover .card-placeholder {
    padding: 14px;
  }

  .cover .card-placeholder-title {
    font-size: 20px;
  }

  .facts div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-body .actions .button,
  .detail-body .actions form {
    flex: 1 1 auto;
  }

  .detail-body .actions form .button {
    width: 100%;
  }

  .form-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions .button {
    flex: 1 1 auto;
  }

  .stats,
  .stats-wide {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .months-chart {
    gap: 3px;
  }

  .bar-label {
    font-size: 8px;
  }

  .hbars li {
    grid-template-columns: 84px 1fr 90px;
    gap: 10px;
  }

  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px 12px;
  }

  .season summary {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
  }

  .episodes li {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 12px;
  }

  .episodes li > .muted:nth-child(3) {
    display: none;
  }
}

/* Social: reviews, comments, sharing */

/* On an item page the reviews follow the remove link: give them room. */
.danger-zone + #reviews {
  margin-top: 56px;
}

.review-summary {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 8px;
}

.review-average {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.review-summary .muted {
  font-size: 13px;
}

.review-mine {
  margin: 20px 0 8px;
  padding: 16px 16px 4px;
  background: var(--accent-soft);
}

.review-mine .eyebrow {
  margin: 0;
  color: var(--accent-text);
}

.review-mine .review {
  border-bottom: 0;
}

.review-mine .disclosure {
  margin-bottom: 12px;
  border-bottom: 0;
}

.review-mine .disclosure > form:last-child {
  margin: -8px 0 16px;
}

.review-write {
  margin: 16px 0 8px;
}

.review-sort {
  margin: 20px 0 0;
}

.review {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.review-list .review:last-child {
  border-bottom: 0;
}

.review.is-hidden,
.comment.is-hidden {
  opacity: 0.5;
}

.review-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.review-score {
  flex: none;
  min-width: 2ch;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.review-score span {
  margin-left: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.review-by {
  min-width: 0;
}

.review-on {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.review-on .tag {
  display: block;
  margin-bottom: 2px;
}

.review-meta {
  margin: 0;
  font-size: 13px;
}

.review-author {
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast), color var(--fast);
}

.review-author:hover {
  color: var(--accent-text);
  border-bottom-color: currentColor;
}

.review-body {
  max-width: 62ch;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.review-body p {
  margin: 0 0 10px;
}

.review-body p:last-child {
  margin-bottom: 0;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 12px;
}

.review-actions:empty {
  display: none;
}

.review-actions form {
  margin: 0;
}

.review-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-button.like.is-on {
  color: var(--accent-text);
}

/* Spoilers: blurred until you ask. Works without a script. */
.spoiler {
  position: relative;
  margin-top: 10px;
}

.spoiler-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.spoiler-label {
  display: inline-block;
  color: var(--accent-text);
}

.spoiler-toggle:focus-visible + .spoiler-label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.spoiler-toggle:checked + .spoiler-label {
  display: none;
}

.spoiler .review-body {
  transition: filter var(--slow) var(--ease);
}

.spoiler-toggle:not(:checked) ~ .review-body {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* Comments: flat, small, one after the other. */
.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.comment-body {
  max-width: 62ch;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.comment .review-actions {
  margin-top: 6px;
}

.comment-form {
  margin: 20px 0 0;
}

.comment-form textarea {
  min-height: 90px;
}

/* The review page: the cover beside the title. */
.review-target.has-cover {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: end;
  gap: 16px;
}

.review-cover {
  display: block;
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--surface);
}

.review-target h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

.review-target h1 a:hover {
  color: var(--accent-text);
}

.report-quote {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.report-quote p:last-child {
  margin-bottom: 0;
}

/* Share: the phone's share sheet, or the link on the clipboard. */
.share:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.share-status {
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-status:not(:empty) {
  animation: rise var(--fast) var(--ease) both;
}

@media (min-width: 720px) {
  .review-target.has-cover {
    grid-template-columns: 112px 1fr;
    gap: 24px;
  }

  .review-cover {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spoiler .review-body,
  .share-status:not(:empty) {
    transition: none;
    animation: none;
  }
}

/* Elsewhere: ratings from other sites -------------------------------------------------------- */
/* library/_elsewhere.html on the item page; swapped in fresh by liveaux.js (loadElsewhere). */

.elsewhere {
  margin: 0 0 32px;
}

.elsewhere-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elsewhere-updated {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.elsewhere-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.elsewhere-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.elsewhere-name {
  grid-column: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elsewhere-name a {
  color: inherit;
  text-decoration: none;
}

.elsewhere-name a:hover,
.elsewhere-name a:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
}

.elsewhere-name .muted {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.elsewhere-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.elsewhere-row .meter {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
}

.elsewhere-liveaux .meter::after {
  background: var(--accent);
}

.elsewhere-count,
.elsewhere-via {
  grid-column: 1 / -1;
  font-size: 13px;
}

.elsewhere-count:empty {
  display: none;
}

.elsewhere-credit,
.elsewhere-empty {
  margin: 8px 0 0;
  font-size: 13px;
}

.elsewhere.is-loading .elsewhere-looking {
  animation: elsewhere-pulse 1.2s ease-in-out infinite alternate;
}

.elsewhere.is-fresh {
  animation: elsewhere-in var(--slow) var(--ease) both;
}

@keyframes elsewhere-pulse {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

@keyframes elsewhere-in {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .elsewhere.is-loading .elsewhere-looking,
  .elsewhere.is-fresh {
    animation: none;
  }
}
/* end Elsewhere ------------------------------------------------------------------------------ */
