/* Mae Day — 70s olive. Olive ground, cream pills, mustard / burnt-orange accents.
   Berkshire Swash (title) / Caprasimo (Cooper-style) / Fraunces (soft, Souvenir-ish). */

:root {
  --bg: #6E7139;
  --bg-hi: #8D9050;
  --bg-lo: #4C4F26;

  /* text sitting on the olive ground */
  --on-bg: #F4ECD4;
  --on-bg-2: #E4DCBC;
  --on-bg-3: #CEC69E;

  /* cream surfaces and the ink on them */
  --cream: #F6EFD9;
  --ink: #2B2A14;
  --ink-2: #4A4826;
  --ink-3: #6F6B45;

  --yellow: #F2C230;
  --mustard: #E3A93A;
  --orange: #D9822B;
  --rust: #B5521E;

  --title: "Berkshire Swash", "ITC Bookman", Georgia, serif;
  --display: "Caprasimo", "Cooper Black", "Cooper Std", Georgia, serif;
  --sans: "Fraunces", "Souvenir", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 8px 18px rgba(30, 30, 10, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg);
  background-image:
    radial-gradient(60% 40% at 10% 0%, var(--bg-hi), transparent 65%),
    radial-gradient(70% 50% at 90% 100%, var(--bg-lo), transparent 65%);
  background-attachment: fixed;
  color: var(--on-bg);
  font: 500 15px/1.5 var(--sans);
  font-variation-settings: "SOFT" 100;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  padding: 40px 22px 26px;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */
/* Romance-paperback title: swash serif in sunflower yellow with a rust offset. */
.wordmark {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(54px, 17vw, 72px);
  line-height: 1.1;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--rust), 4px 6px 12px rgba(30, 30, 10, .35);
}

.holder { display: flex; align-items: center; justify-content: center; gap: 16px; }
.photo {
  flex: none;
  width: 74px; height: 74px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--mustard), 0 8px 18px rgba(30, 30, 10, .3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.05; }
.handle { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--on-bg-3); }
.channels { display: flex; gap: 4px; margin: 6px 0 0 -6px; }
.channels a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--on-bg);
  background: rgba(246, 239, 217, .16);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.channels a .ico { width: 17px; height: 17px; }
.channels a:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }

/* ---------- section heads ---------- */
.rule-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 28px 0 10px;
  font: 700 11px var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--on-bg-2);
}
.rule-head::before, .rule-head::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); }

/* ---------- pills ---------- */
.pill, .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
}
.pill .eyebrow, .pill .title, .pill .meta, .row .title, .row .sub { display: block; }

.pills li + li { margin-top: 10px; }
.pill {
  position: relative;
  overflow: hidden;
  padding: 13px 22px 13px 24px;
  background: var(--cream);
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(43, 42, 20, .08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pill > * { position: relative; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(30, 30, 10, .28), inset 0 -3px 0 rgba(43, 42, 20, .08); }
.pill .eyebrow { font: 700 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }
.pill .title { margin-top: 1px; font-family: var(--display); font-size: 21px; line-height: 1.05; }
.pill .meta { margin-top: 1px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pill .ico { width: 20px; height: 20px; stroke-width: 2; color: var(--ink-2); transition: transform .3s var(--ease); }
.pill:hover .ico { transform: translateX(4px); }

/* live stream pill: sunset gradient that slowly flows */
.pill.live {
  background: linear-gradient(115deg, #8F3A14 0%, var(--rust) 28%, var(--orange) 50%, var(--rust) 72%, #8F3A14 100%);
  background-size: 220% 100%;
  padding-top: 20px; padding-bottom: 20px; /* no eyebrow line, so match the other pills' height */
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(90, 40, 10, .35), inset 0 -3px 0 rgba(60, 20, 0, .18);
}
.pill.live .eyebrow { color: var(--cream); }
.pill.live .meta { color: #FBE6C8; }
.pill.live .ico { color: var(--cream); }

/* ---------- secondary rows ---------- */
.rows li + li { margin-top: 8px; }
.row {
  padding: 11px 20px 11px 24px;
  background: rgba(246, 239, 217, .78);
  transition: background .25s var(--ease), transform .3s var(--ease);
}
.row:hover { background: var(--cream); transform: translateY(-2px); }
.row .title { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.row .sub { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.row .ico { stroke-width: 2; transition: transform .3s var(--ease); }
.row:hover .ico { transform: translateX(4px); }

.pill:focus-visible, .row:focus-visible, .channels a:focus-visible, .tool:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- footer ---------- */
.colophon { margin-top: auto; padding-top: 30px; text-align: center; }
.tools { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tool {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 239, 217, .85);
  color: var(--ink);
  font: 700 13px var(--sans);
  cursor: pointer;
}
.tool .ico { width: 16px; height: 16px; }
.tool:hover { background: var(--ink); color: var(--cream); }
.colophon-line { margin: 18px 0 0; font-size: 12px; font-weight: 600; color: var(--on-bg-3); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--ink);
  color: var(--cream);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  z-index: 10;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- motion ---------- */
@keyframes sunflow { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .pill.live { animation: sunflow 5s ease-in-out infinite alternate; }

  .wordmark, .holder, .rule-head, .pills li, .rows li, .colophon { opacity: 0; transform: scale(.94); animation: pop .35s var(--ease) forwards; }
  .holder { animation-delay: .05s; }
  .rule-head { animation-delay: .1s; }
  .pills li:nth-child(1) { animation-delay: .14s; }
  .pills li:nth-child(2) { animation-delay: .19s; }
  .pills li:nth-child(n+3) { animation-delay: .22s; }
  .rows li:nth-child(1) { animation-delay: .26s; }
  .rows li:nth-child(n+2) { animation-delay: .3s; }
  .colophon { animation-delay: .38s; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation: none !important; }
}
