/* Screen Wisdom: landing page styles */

:root {
  --cobalt: #2D3BFF;
  --ink: #0A0B1E;
  --yellow: #FFD60A;
  --paper: #F4F5F8;
  --white: #FFFFFF;
  --muted: #4A4D63;
  --line: #DADDE8;
  --soft: #C4C7D8;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover.link { text-decoration: underline; }

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

.wrap { max-width: var(--max); margin-inline: auto; }

/* Shared type */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--yellow { color: var(--yellow); }

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo__chip {
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 9px 6px;
  border-radius: 2px;
}
.logo--large { font-size: 32px; }
.logo--large .logo__chip { padding: 6px 11px 7px; }

/* Hero */
.hero {
  background: var(--cobalt);
  color: var(--white);
  padding-inline: var(--gutter);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-size: 16px;
  font-weight: 500;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 72px 96px;
}
.hero__title {
  margin: 0;
  max-width: 1100px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__mark {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.1em 0.04em;
  border-radius: 4px;
}
.hero__lede {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

/* Letterboxed frame: the quote as a subtitle */
.frame {
  margin: 0 0 96px;
  aspect-ratio: 2.39 / 1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 36px);
  background: radial-gradient(ellipse at 50% 20%, #1E2793 0%, var(--ink) 72%);
  border-radius: 4px;
}
.frame__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.frame__subtitle {
  margin: 0;
  padding-bottom: clamp(12px, 3vw, 44px);
  text-align: center;
  font-size: clamp(20px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.frame__subtitle span { color: var(--yellow); }

/* Title band */
.band {
  background: var(--yellow);
  padding: 28px var(--gutter);
}
.band p {
  margin: 0 auto;
  max-width: var(--max);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Library */
.library { padding: 96px var(--gutter); }
.library .wrap { display: flex; flex-direction: column; gap: 48px; }
.library__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.library__title-group { display: flex; flex-direction: column; gap: 16px; }
.library__title {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
}
.filters { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters__count { margin: 0; font-size: 15px; color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.quote {
  min-width: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.quote[hidden] { display: none; }
.quote__top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tag {
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag--movie { background: var(--yellow); color: var(--ink); }
.tag--tv { background: var(--cobalt); color: var(--white); }
.quote__text {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote__source {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  color: var(--muted);
}
.quote__source cite {
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

/* Features */
.features { background: var(--white); padding: 96px var(--gutter); }
.features .wrap { display: flex; flex-direction: column; gap: 56px; }
.features__head { display: flex; flex-direction: column; gap: 16px; }
.features__title {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--ink);
  padding-top: 24px;
}
.feature h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; font-size: 18px; color: var(--muted); }

/* End credits */
.credits {
  background: var(--ink);
  color: var(--white);
  padding: 72px var(--gutter) 56px;
}
.credits .wrap { display: flex; flex-direction: column; gap: 40px; }
.credits__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.credits__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 16px;
  font-weight: 500;
}
.credits__fine { margin: 0; max-width: 640px; font-size: 14px; color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .btn, .chip { transition: none; }
  .btn:hover, .chip:hover { transform: none; }
}
