/* Good Take website (docs/specs/website.md). The app's Intermission tokens, dark only. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0C0C0C;
  --surface: #171717;
  --hairline: #262626;
  --text: #EFEBE4;
  --secondary: #8C8880;
  --amber: #E3A53A;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 24px;
  color-scheme: dark;
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* The glow reaches past the stage; clip it here (on body, overflow passes to the viewport and scrolls). */
main { overflow-x: clip; }
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

a:focus-visible, .lockup:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* Top line */
.topline { padding-top: max(28px, env(safe-area-inset-top, 0px)); }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topline a { color: var(--secondary); text-decoration: none; }
.topline a:hover, .topline a:focus-visible { color: var(--text); }
.home { display: flex; align-items: center; gap: 12px; }
.home svg { display: block; width: 72px; height: auto; }
.topline:has(.home) .wrap { align-items: flex-end; }
.topline:has(.home) .wrap > .label { padding-bottom: 2px; }
@media (max-width: 420px) {
  .home svg { width: 60px; }
}

/* Landing */
.hero { flex: 1; display: flex; align-items: center; padding-block: 56px 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }

.lockup { display: block; width: 168px; height: auto; margin-left: -14px; border-radius: 12px; }
.lockup[role="button"] { cursor: pointer; }
.lockup:focus-visible { outline-offset: 6px; border-radius: 12px; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 0.98; text-wrap: balance; }
h1 .line { display: block; }
h1 .line + .line { color: var(--secondary); }
.stop { color: var(--amber); }

.lede { margin: 0; max-width: 30em; color: var(--secondary); font-size: 18px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--text); }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  padding: 14px 22px 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.store svg { flex: none; }
.store .label { color: var(--amber); }

.stage { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 20px; }
.glow {
  position: absolute; inset: 6% -10% 0;
  background: radial-gradient(50% 45% at 50% 55%, rgba(227, 165, 58, 0.22), rgba(227, 165, 58, 0.06) 55%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
}
.phone {
  position: relative;
  width: min(300px, 72vw, calc((100svh - 160px) * 0.46));
  min-width: 180px;
  max-width: 100%;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2a2a2a, #121212 40%, #1d1d1d);
  box-shadow: 0 0 0 1px #333, 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 0.5px rgba(239, 235, 228, 0.08) inset;
  transform: rotate(-3deg);
}
/* The image sets the height, so the screenshot is never cropped inside the frame. */
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 804 / 1748; border-radius: 44px; }

/* Privacy, support, 404 */
.prose { flex: 1; padding-block: 56px 72px; }
.prose .wrap > * { max-width: 38em; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; margin-bottom: 12px; }
.prose h2 {
  margin: 40px 0 8px;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  font-size: 24px;
  line-height: 1.2;
  /* At opsz 144 and small sizes Fraunces' space nearly vanishes. */
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
}
.prose h1 { word-spacing: 0.06em; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--amber); }
.prose .wrap > .intro { color: var(--secondary); font-size: 19px; max-width: 34em; }
.updated { display: block; margin-bottom: 32px; }
.prose code { font-family: var(--mono); font-size: 0.88em; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 14px; }
footer nav a { color: var(--secondary); text-decoration: none; }
footer nav a:hover, footer nav a:focus-visible { color: var(--text); }
.tmdb { display: flex; align-items: center; gap: 12px; max-width: 330px; margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--secondary); }
.tmdb svg { flex: none; width: 74px; height: auto; }
.copyright { font-size: 13px; color: var(--secondary); }

@media (max-width: 860px) {
  .hero { padding-block: 40px 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .copy { align-items: center; text-align: center; }
  .lockup { margin-left: 0; }
  .facts { justify-content: center; }
  footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tmdb { flex-direction: column; }
}
@media (max-width: 420px) {
  .lede { font-size: 16.5px; }
  .lockup { width: 140px; }
}
