/* Today Only News landing. Palette from the app icon and web/reader.css. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin.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;
}

:root {
  --forest: #25473b;
  --forest-deep: #1c382e;
  --ink: #203a31;
  --paper: #f4f3ee;
  --paper-deep: #eae9e1;
  --lime: #d5f59a;
  --sage: #e2ead3;
  --muted: #5c665d;
  --line: #d6d9cc;
  --link: #3f6b2a;
  --gutter: 20px;
  --max: 1160px;
  --sans:
    'Schibsted Grotesk', -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic',
    'Segoe UI', sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:lang(ko) body,
body:lang(ko) {
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #4d7a2c;
  outline-offset: 3px;
  border-radius: 4px;
}

.on-forest :focus-visible {
  outline-color: var(--lime);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Forest surfaces: header, hero, get ---------- */

.on-forest {
  background: var(--forest);
  color: var(--paper);
}

.on-forest a {
  color: var(--paper);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9375rem;
}

.bar nav a {
  text-decoration: none;
}

.bar nav a:hover {
  text-decoration: underline;
}

.bar .bar-get {
  display: none;
  padding: 7px 14px;
  border: 1.5px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-weight: 700;
}

.bar .bar-get:hover {
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 40px;
  padding-top: 28px;
}

.hero h1 {
  margin: 0;
  max-width: 11.5em;
  font-size: clamp(2.5rem, 9.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero h1:lang(ko) {
  max-width: 10em;
  font-size: clamp(2.25rem, 8.4vw, 4.25rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.lede {
  margin: 24px 0 0;
  max-width: 33em;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  color: #e6eadf;
}

.lede:lang(ko) {
  line-height: 1.7;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.store {
  display: inline-block;
  border-radius: 9px;
  line-height: 0;
}

.store img {
  height: 48px;
  width: auto;
}

/* Put the store that matches the device first; both stay visible. */
.is-android .store-google {
  order: -1;
}

.facts {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 0.9375rem;
  color: #cfd8cb;
}

.hero-shot {
  margin: 0;
  justify-self: center;
  width: min(84vw, 340px);
  /* Crop the screenshot below the paragraph, above the story's action bar. */
  aspect-ratio: 1320 / 2000;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -1px 0 1px rgba(244, 243, 238, 0.14);
  background: var(--paper);
}

.hero-shot img {
  width: 100%;
}

/* ---------- Anatomy of one paragraph ---------- */

.anatomy {
  padding-top: 72px;
  padding-bottom: 80px;
}

.section-head h2,
.ceiling h2,
.made h2,
.get h2 {
  margin: 0;
  font-size: clamp(1.875rem, 5.4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

:lang(ko) .section-head h2,
:lang(ko) .ceiling h2,
:lang(ko) .made h2,
:lang(ko) .get h2,
.section-head h2:lang(ko) {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-head {
  max-width: 40em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.specimen {
  margin: 44px 0 0;
  display: grid;
  gap: 36px;
}

.specimen-card {
  margin: 0;
  padding: 26px 22px 24px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.specimen-headline {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.specimen-text {
  margin: 0;
  font-size: clamp(1.1875rem, 2.6vw, 1.625rem);
  line-height: 1.65;
  color: #34463f;
}

.specimen-text:lang(ko) {
  line-height: 1.8;
}

.mark {
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
  transition: background-size 0.75s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.mark-changed {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 100% 0.82em;
  background-position: 0 72%;
}

.mark-matters {
  background-image: linear-gradient(var(--sage), var(--sage));
  background-size: 100% 0.82em;
  background-position: 0 72%;
}

.mark-limits {
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 7px,
    transparent 7px 12px
  );
  background-size: 100% 2px;
  background-position: 0 96%;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.3em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.56em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.3em;
  font-variant-numeric: tabular-nums;
}

/* Drawn once, when the paragraph scrolls into view (site.js). */
.is-waiting .mark-changed,
.is-waiting .mark-matters {
  background-size: 0% 0.82em;
}

.is-waiting .mark-limits {
  background-size: 0% 2px;
}

.is-drawn .mark-matters {
  transition-delay: 0.55s;
}

.is-drawn .mark-limits {
  transition-delay: 1.1s;
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.notes li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: start;
}

.notes .swatch {
  grid-row: span 2;
  width: 44px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9375rem;
}

.swatch-changed {
  background: var(--lime);
}

.swatch-matters {
  background: var(--sage);
}

.swatch-limits {
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 12px) 0
      100% / 100% 2px no-repeat,
    transparent;
  border-radius: 0;
}

.notes strong {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.specimen figcaption {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 38em;
}

/* ---------- Six is a ceiling ---------- */

.ceiling {
  border-top: 1px solid var(--line);
  padding-top: 72px;
  padding-bottom: 80px;
  display: grid;
  gap: 36px;
}

.slots {
  display: flex;
  gap: 12px;
  align-items: end;
}

.slot {
  width: 30px;
  height: 92px;
  border-radius: 15px;
  background: var(--ink);
}

.slot-skipped {
  background: transparent;
  border: 2px dashed #8e9a8c;
}

.ceiling-copy p {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 1.125rem;
}

.ceiling-copy .topics {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Real screens ---------- */

.screens {
  background: var(--paper-deep);
  padding-top: 72px;
  padding-bottom: 80px;
}

.screens-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 300px);
  gap: 20px;
  margin: 40px calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
}

.screens-row figure {
  margin: 0;
  scroll-snap-align: start;
}

.screens-row img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.screens-row h3 {
  margin: 20px 0 6px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.screens-row p {
  margin: 0;
  font-size: 1rem;
  color: #3c4c44;
}

/* ---------- How it's made ---------- */

.made {
  padding-top: 72px;
  padding-bottom: 80px;
}

.made-body {
  max-width: 40em;
}

.made-body p {
  margin: 18px 0 0;
  font-size: 1.125rem;
}

.made-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

/* ---------- Get the app ---------- */

.get {
  padding-top: 72px;
  padding-bottom: 76px;
}

.get-inner {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.get-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(244, 243, 238, 0.16);
}

.get .stores {
  margin-top: 6px;
}

.get p {
  margin: 0;
  max-width: 34em;
  color: #cfd8cb;
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.foot {
  padding-top: 40px;
  padding-bottom: 48px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 600;
}

.foot p {
  margin: 14px 0 0;
}

.foot .legal {
  margin-top: 24px;
  font-size: 0.8125rem;
  max-width: 60em;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }

  .bar {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .bar .bar-get {
    display: inline-block;
  }

  .specimen-card {
    padding: 40px 44px 36px;
  }

  .screens-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
  }

  .screens-row img {
    max-width: 320px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: 56px;
    padding-top: 56px;
  }

  .hero-copy {
    padding-bottom: 96px;
  }

  .hero-shot {
    width: 100%;
    max-width: 360px;
    justify-self: end;
  }

  .anatomy {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .specimen {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 32px 56px;
    align-items: start;
  }

  .notes {
    padding-top: 40px;
    gap: 30px;
  }

  .specimen figcaption {
    grid-column: 1;
  }

  .ceiling {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
    gap: 56px;
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .slots {
    gap: 16px;
    justify-content: center;
  }

  .slot {
    width: 40px;
    height: 140px;
    border-radius: 20px;
  }

  .screens,
  .made {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .get {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .get-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 32px;
  }

  .get-icon {
    grid-row: span 3;
    width: 128px;
    height: 128px;
    border-radius: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    transition: none;
  }
}

/* Keep a sentence number with the word it introduces. */
.lead {
  white-space: nowrap;
}

/* Korean headline breaks between phrases, not inside them. */
.phrase {
  display: inline-block;
}
