/* TechBytes landing page. Orange poster, cream notes, lemon close. */

:root {
  --orange: #ff6a00;
  --ink: #141414;
  --cream: #f4efe6;
  --lemon: #e8ff3d;
  --paper: #fffdf8;
  --muted: #3a342e;
  --footer: #171717;
  --line: #e6dfd4;
  --cobalt: #3d4cff;
  --coral: #ff8a78;
  --yellow: #ffe14a;
  --green: #147a45;
  --blue-soft: #d9e4ff;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --nav-shadow: 0 10px 28px rgba(60, 20, 0, 0.16);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

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

.site-footer :focus-visible {
  outline-color: var(--lemon);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

section {
  scroll-margin-top: 7rem;
}

.display,
.display-2,
.notify h2,
.ticker {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Nav */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--orange);
  padding: 12px 16px 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 10px 10px 10px 16px;
  box-shadow: var(--nav-shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.12rem;
  line-height: 1;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo-mark .bite {
  transform-box: fill-box;
  transform-origin: top right;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  width: 100%;
  order: 3;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--ink);
}

.btn-nav {
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.btn-short {
  display: inline;
}

.btn-full {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  padding: 18px 0 64px;
}

.byte {
  position: absolute;
  z-index: 0;
  left: -22vw;
  bottom: 2%;
  width: min(78vw, 480px);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  text-align: center;
}

.asterisk {
  width: 52px;
  height: 52px;
  margin: 8px auto 14px;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.45;
  margin-bottom: 12px;
}

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.display {
  font-size: clamp(5rem, 21vw, 11.5rem);
  line-height: 0.84;
}

.display span {
  display: block;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px 8px 14px;
  background: var(--lemon);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.pill-play {
  width: 22px;
  height: 22px;
  flex: none;
}

.deck {
  margin: 20px auto 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.deck em {
  font-style: italic;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 4px;
}

.spine {
  display: none;
}

/* Ticker */

.ticker {
  background: var(--ink);
  color: var(--lemon);
  overflow: hidden;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-group {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ticker-group span {
  padding-left: 1.25rem;
}

.ticker-group span::after {
  content: "·";
  padding-left: 1.25rem;
}

/* Shared sections */

.benefits {
  background: var(--cream);
  text-align: center;
  padding: 64px 0 72px;
}

.band-paper {
  background: var(--paper);
  padding: 64px 0 28px;
}

.series {
  padding-top: 12px;
  padding-bottom: 72px;
}

.display-2 {
  font-size: clamp(3.3rem, 10vw, 5.5rem);
  line-height: 0.88;
}

.lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.benefits .lead {
  max-width: 34rem;
  margin-inline: auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: 28px;
}

.section-head .lead {
  max-width: 36rem;
}

.head-link {
  font-weight: 700;
  text-underline-offset: 4px;
  padding-bottom: 8px;
}

.benefit-grid,
.tile-grid,
.series-grid {
  display: grid;
  gap: 28px 22px;
}

.benefit-grid {
  margin-top: 40px;
}

.icon {
  width: 76px;
  height: 76px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.icon svg {
  width: 44px;
  height: 44px;
}

.icon-lemon {
  background: var(--lemon);
  border-radius: 50%;
}

.icon-ink {
  background: var(--ink);
  color: var(--lemon);
  border-radius: 18px;
}

.icon-orange {
  background: var(--orange);
  border-radius: 50%;
}

.icon-paper {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
}

.benefit h3,
.tile h3,
.series-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.benefit h3 {
  margin-top: 16px;
}

.benefit p,
.tile p,
.byline {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.benefit p {
  margin-top: 8px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0 36px;
}

/* Tiles */

.tile a {
  display: block;
  text-decoration: none;
  height: 100%;
}

.tile-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper);
  transform: translate(-50%, -50%);
}

.play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.tile h3 {
  margin-top: 14px;
}

.tile p {
  margin-top: 6px;
}

.more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Series */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.filter {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 0;
  min-height: 44px;
  font-weight: 600;
  color: #4a453f;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.filter:hover {
  color: var(--ink);
}

.status {
  min-height: 1.4em;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.series-card[hidden] {
  display: none !important;
}

.series-art {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
}

.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.soon {
  display: inline-block;
  background: var(--lemon);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
}

.topic-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.series-card h3 {
  margin-top: 8px;
}

.byline {
  margin-top: 4px;
}

/* Notify */

.notify {
  position: relative;
  overflow: hidden;
  background: var(--lemon);
  text-align: center;
  padding: 72px 0 76px;
}

.notify h2 {
  font-size: clamp(4.4rem, 16vw, 8.4rem);
  line-height: 0.84;
}

.notify .lead {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--ink);
}

.notify-mark {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -36px;
  top: -28px;
  color: var(--ink);
  opacity: 0.14;
  pointer-events: none;
}

.mail {
  font-weight: 700;
  text-underline-offset: 3px;
  padding: 0 2px;
}

/* Footer */

.site-footer {
  background: var(--footer);
  color: var(--paper);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-brand .logo {
  color: var(--paper);
}

.domain {
  margin-top: 6px;
  color: var(--cream);
  font-size: 0.95rem;
}

.credit {
  margin: 0;
  font-weight: 700;
}

.credit a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.credit a:hover {
  color: var(--lemon);
}

/* Hovers and motion */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

  .btn:hover {
    background: var(--lemon);
    color: var(--ink);
    transform: rotate(-1.5deg);
  }

  .btn:active {
    transform: translateY(1px) scale(0.98);
  }

  .notify .btn:hover {
    background: var(--ink);
    color: var(--lemon);
  }

  .float-pill {
    transition: transform 0.15s ease;
  }

  .float-pill:hover {
    transform: rotate(0deg) scale(1.04);
  }

  .float-pill:hover .pill-play {
    transform: translateX(2px);
  }

  .pill-play {
    transition: transform 0.15s ease;
  }

  .tile-art,
  .play,
  .series-art svg,
  .logo-mark .bite,
  .more {
    transition: transform 0.2s ease, background 0.15s ease;
  }

  .tile a:hover .tile-art {
    transform: translateY(-4px);
  }

  .tile a:hover .play {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .tile a:hover .more {
    background: var(--lemon);
    text-decoration: none;
  }

  .series-card:hover .series-art svg {
    transform: scale(1.035) rotate(-0.6deg);
  }

  .logo:hover .logo-mark .bite {
    transform: scale(1.28);
  }

  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .asterisk {
    animation: spin 36s linear infinite;
  }

  .ticker-track {
    animation: ticker 36s linear infinite;
  }

  .rise {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .fade {
    animation: fade 0.6s ease both;
  }

  .d1 { animation-delay: 0.05s; }
  .d2 { animation-delay: 0.12s; }
  .d3 { animation-delay: 0.18s; }
  .d4 { animation-delay: 0.26s; }
  .d5 { animation-delay: 0.34s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-group[aria-hidden="true"] {
    display: none !important;
  }

  .ticker-track {
    transform: none !important;
    width: auto;
  }

  .ticker-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    white-space: normal;
    padding-inline: 16px;
  }

  .btn:hover,
  .float-pill:hover,
  .tile a:hover .tile-art,
  .tile a:hover .play,
  .series-card:hover .series-art svg {
    transform: none;
  }

  .tile a:hover .play {
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 420px) {
  .btn-short {
    display: none;
  }

  .btn-full {
    display: inline;
  }
}

@media (min-width: 720px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .series-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .nav {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 8px 8px 8px 20px;
  }

  .nav-links {
    order: 0;
    width: auto;
    flex-wrap: nowrap;
    margin-left: auto;
    justify-content: flex-end;
  }

  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 840px) {
  .hero {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 72px;
  }

  .byte {
    width: min(40vw, 520px);
    left: -2vw;
    bottom: 2%;
  }

  .asterisk {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1100px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 80px));
  }

  .benefit-grid,
  .series-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .spine {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    margin: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .benefits,
  .band-paper,
  .notify {
    padding-top: 88px;
  }

  .benefits,
  .series,
  .notify {
    padding-bottom: 96px;
  }
}

@media (forced-colors: active) {
  .btn,
  .float-pill,
  .soon,
  .nav {
    border: 1px solid ButtonText;
  }

  .play {
    background: ButtonText;
    color: ButtonFace;
  }
}
