/* The teen section: /teenagers/games, /teenagers/teen-missions and
   /teenagers/blog. Pages are built by scripts/build-teens.py from teens/src.

   The look is a light version of the Speaking Games pages, above all Would
   You Rather (also The Museum of Lies and Mystery Flight): the same Unbounded and Manrope, the
   same coral, teal, gold and lavender, but on cream instead of night purple,
   because parents read these pages and they have to feel calm and clear. */
:root {
  --bg: #fff7ec;
  --ink: #24163d;
  --muted: #6b5a86;
  --card: #fff;
  --line: rgba(36, 22, 61, .1);
  --coral: #ff6a4d;
  --coral-deep: #e2492c;
  --coral-ink: #c2391b;
  --teal: #27cfc0;
  --teal-ink: #0b7a70;
  --gold: #ffc94d;
  --gold-ink: #9a6b00;
  --pink: #ff8fb1;
  --lav: #b9acd6;
  --lav-soft: #efeafb;
  --night: #24163d;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --shadow: 0 22px 44px -26px rgba(36, 22, 61, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(55% 40% at 0% 0%, rgba(255, 106, 77, .13), transparent 70%),
    radial-gradient(45% 38% at 100% 6%, rgba(39, 207, 192, .14), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(185, 172, 214, .28), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
main { overflow-x: clip; }
a { color: inherit; }

/* Gradient words, as in "rather?" (coral, gold, teal), deeper so they read on cream */
.tn-hero h1 em, .tn-cta h2 em, .tm-week b {
  font-style: normal;
  background: linear-gradient(100deg, var(--coral) 0%, #f0a500 48%, #14b3a5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.tn-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 236, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tn-nav { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.5rem; }
.tn-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.tn-logo img { height: 42px; width: auto; display: block; }
.tn-logo span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; color: var(--muted); border-left: 1px solid var(--line); padding-left: .8rem; }
.tn-links { display: flex; align-items: center; gap: 1.3rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tn-links a { text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--ink); padding: .3rem 0; }
.tn-links a:hover { color: var(--coral-ink); }
.tn-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--coral); }
.tn-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .3rem; }

/* Buttons: the chunky coral button of the games, with its pressed shadow */
.tn-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.35rem; border-radius: 999px; background: var(--coral); color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .92rem; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 5px 0 var(--coral-deep); transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.tn-btn:hover { background: #ff7a60; transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-deep); }
.tn-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-deep); }
.tn-links .tn-btn { color: #fff; padding: .55rem 1.15rem; }
.tn-btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.tn-btn-line { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(36, 22, 61, .18), inset 0 0 0 2px var(--ink); }
.tn-btn-line:hover { background: #fff; box-shadow: 0 7px 0 rgba(36, 22, 61, .18), inset 0 0 0 2px var(--ink); }

/* Page head */
.tn-crumbs { max-width: 1200px; margin: 0 auto; padding: 1.2rem 1.5rem 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.tn-crumbs a { color: var(--muted); text-decoration: none; }
.tn-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tn-crumbs span { margin: 0 .45rem; opacity: .6; }
.tn-hero { max-width: 940px; margin: 0 auto; padding: 2.4rem 1.5rem 2.4rem; text-align: center; }
.tn-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; margin: 0 0 1.1rem; }
.tn-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 106, 77, .18); }
.tn-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.12; margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tn-lead { margin: 1.2rem auto 0; max-width: 700px; font-size: 1.1rem; line-height: 1.7; color: var(--muted); font-weight: 500; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.9rem; }

/* Sections and cards */
.tn-section { max-width: 1200px; margin: 0 auto; padding: 2.6rem 1.5rem; }
.tn-section-head { max-width: 780px; margin-bottom: 1.6rem; }
.tn-section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.tn-section-head p { margin: .7rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; font-weight: 500; }
.tn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tn-grid.two { grid-template-columns: repeat(2, 1fr); }
.tn-grid.four { grid-template-columns: repeat(4, 1fr); }
.tn-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 10px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 24px -20px rgba(36, 22, 61, .5); transition: transform .25s ease, box-shadow .25s ease; }
.tn-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.tn-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 16px; background: var(--lav-soft); }
.tn-tag { align-self: flex-start; margin: 1rem .6rem 0; padding: .3rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 106, 77, .13); color: var(--coral-ink); }
.tn-card:nth-child(4n+2) .tn-tag { background: rgba(39, 207, 192, .16); color: var(--teal-ink); }
.tn-card:nth-child(4n+3) .tn-tag { background: rgba(255, 201, 77, .28); color: var(--gold-ink); }
.tn-card:nth-child(4n+4) .tn-tag { background: var(--lav-soft); color: #5a4790; }
.tn-card strong { margin: .55rem .6rem 0; font-family: var(--display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.tn-grid.four .tn-card strong { font-size: 1rem; }
.tn-card strong em { font-style: normal; }
.tn-card .tn-desc { margin: .5rem .6rem 0; font-size: .93rem; line-height: 1.6; color: var(--muted); font-weight: 500; flex: 1; }
.tn-card .tn-go { margin: .9rem .6rem .6rem; font-size: .88rem; font-weight: 800; color: var(--coral-ink); }

/* Closing call to action: a night block, like the games themselves */
.tn-cta { position: relative; overflow: hidden; max-width: 1152px; margin: 2rem auto 4rem; padding: 3.2rem 2rem; border-radius: 30px; background: radial-gradient(120% 90% at 50% 0%, #3a2470, var(--night)); color: #fff7ec; text-align: center; }
.tn-cta .tn-eyebrow { color: #fff7ec; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.tn-cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.8vw, 2.1rem); max-width: 760px; margin: 0 auto; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
/* The promise always on its own line, so the heading can never run wider than the block */
.tn-cta h2 em { display: block; }
.tn-cta h2 em { background: linear-gradient(100deg, var(--coral) 0%, var(--gold) 45%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; }
.tn-cta p { max-width: 640px; margin: 1rem auto 0; color: #d9cff0; line-height: 1.7; font-weight: 500; }
.tn-cta .tn-btn-line { background: transparent; color: #fff7ec; box-shadow: inset 0 0 0 2px rgba(255, 247, 236, .7); }
.tn-cta .tn-btn-line:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px #fff7ec; }

/* Teen Missions */
.tm-hero-img { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.tm-hero-img img { width: 100%; border-radius: 28px; display: block; aspect-ratio: 1600 / 686; object-fit: cover; box-shadow: var(--shadow); border: 8px solid #fff; }
.tm-cast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.6rem; }
.tm-cast figure { margin: 0; text-align: center; }
.tm-cast img { width: 100%; max-width: 140px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 5px solid var(--coral); box-shadow: 0 12px 26px -16px rgba(36, 22, 61, .6); }
.tm-cast figure:nth-child(2) img { border-color: var(--teal); }
.tm-cast figure:nth-child(3) img { border-color: var(--gold); }
.tm-cast figure:nth-child(4) img { border-color: var(--lav); }
.tm-cast figure:nth-child(5) img { border-color: var(--pink); }
.tm-cast figure:nth-child(6) img { border-color: var(--night); }
.tm-cast figcaption { margin-top: .6rem; font-size: .88rem; line-height: 1.35; }
.tm-cast figcaption b { display: block; font-family: var(--display); font-size: .98rem; font-weight: 700; }
.tm-cast figcaption span { color: var(--muted); font-weight: 600; font-size: .8rem; }
.tm-week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tm-week div { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem 1.5rem; box-shadow: 0 10px 24px -20px rgba(36, 22, 61, .5); }
.tm-week b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; }
.tm-week h3 { margin: .3rem 0 .5rem; font-family: var(--display); font-size: 1rem; font-weight: 700; }
.tm-week p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; font-weight: 500; }
.tm-stories { display: grid; gap: 1.2rem; }
.tm-story { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 10px; box-shadow: 0 10px 24px -20px rgba(36, 22, 61, .5); }
.tm-story img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; border-radius: 16px; }
.tm-story > div { padding: .9rem 1.2rem 1rem 0; }
.tm-story h3 { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.tm-story h3 small { display: inline-block; font-family: 'Manrope', sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); background: rgba(255, 106, 77, .13); border-radius: 999px; padding: .25rem .65rem; margin-bottom: .5rem; }
.tm-story:nth-child(4n+2) h3 small { color: var(--teal-ink); background: rgba(39, 207, 192, .16); }
.tm-story:nth-child(4n+3) h3 small { color: var(--gold-ink); background: rgba(255, 201, 77, .28); }
.tm-story:nth-child(4n+4) h3 small { color: #5a4790; background: var(--lav-soft); }
.tm-story h3 small + * { display: block; }
.tm-story .tm-uk { font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--muted); font-size: .95rem; }
.tm-story p { margin: .5rem 0 .7rem; color: var(--muted); line-height: 1.6; font-size: .95rem; font-weight: 500; }
.tm-story ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; line-height: 1.6; font-weight: 600; }
.tm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.tm-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.15rem; }
.tm-facts span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-facts b { display: block; margin-top: .35rem; font-family: var(--display); font-size: .98rem; font-weight: 700; }

/* Articles */
.tn-article { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 1rem; font-size: 1.08rem; line-height: 1.8; font-weight: 500; }
.tn-article .tn-cover { width: 100%; border-radius: 26px; display: block; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 2.2rem; border: 8px solid #fff; box-shadow: var(--shadow); }
.tn-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; margin-top: 1.1rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tn-article .tn-lede { font-size: 1.2rem; line-height: 1.75; color: var(--ink); font-weight: 600; }
.tn-article h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.3; margin: 2.6rem 0 .8rem; letter-spacing: -.01em; }
.tn-article h3 { font-size: 1.1rem; font-weight: 800; margin: 1.8rem 0 .4rem; }
.tn-article p { margin: 0 0 1.1rem; }
.tn-article ul, .tn-article ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.tn-article li { margin-bottom: .55rem; }
.tn-article li::marker { color: var(--coral); font-weight: 800; }
.tn-article a { color: var(--ink); font-weight: 800; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tn-tip { margin: 1.8rem 0; padding: 1.3rem 1.5rem; background: var(--lav-soft); border-radius: 20px; font-size: 1rem; line-height: 1.7; border: 2px dashed var(--lav); }
.tn-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0 1.6rem; font-size: .95rem; line-height: 1.5; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tn-table th, .tn-table td { padding: .75rem .95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tn-table thead th { background: var(--night); color: #fff7ec; font-weight: 800; font-size: .86rem; }
.tn-table tbody th { font-weight: 800; width: 32%; }
.tn-table tr:last-child th, .tn-table tr:last-child td { border-bottom: 0; }
.tn-scroll { overflow-x: auto; }
.tn-author { display: flex; gap: 1rem; align-items: center; margin: 2.6rem 0 0; padding: 1.2rem 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; font-size: .95rem; line-height: 1.6; }
.tn-author img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--teal); }
.tn-author b { display: block; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.tn-author span { color: var(--muted); }

/* Footer */
.tn-footer { background: var(--night); color: #d9cff0; padding: 2.8rem 1.5rem; text-align: center; font-size: .92rem; font-weight: 600; }
.tn-footer b { display: block; font-family: var(--display); font-size: 1.2rem; color: #fff7ec; font-weight: 700; }
.tn-footer p { margin: .4rem 0 1.2rem; }
.tn-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; }
.tn-footer a { color: var(--gold); text-decoration: none; }
.tn-footer a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .tn-toggle { display: block; }
  .tn-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .4rem 1.5rem 1.3rem; }
  .tn-links.open { display: flex; }
  .tn-links li { border-bottom: 1px solid var(--line); }
  .tn-links li a { display: block; padding: .8rem 0; }
  .tn-links li:last-child { border: 0; padding-top: 1rem; }
  .tn-links li:last-child a { display: inline-flex; }
  .tn-grid, .tn-grid.four { grid-template-columns: repeat(2, 1fr); }
  .tm-cast { grid-template-columns: repeat(3, 1fr); }
  .tm-facts { grid-template-columns: repeat(2, 1fr); }
  .tm-story { grid-template-columns: 220px 1fr; }
}
@media (max-width: 640px) {
  .tn-logo span { display: none; }
  .tn-grid, .tn-grid.two, .tn-grid.four, .tm-week { grid-template-columns: 1fr; }
  .tm-story { grid-template-columns: 1fr; gap: 0; }
  .tm-story img { aspect-ratio: 16 / 9; min-height: 0; }
  .tm-story > div { padding: 1rem .6rem .6rem; }
  .tm-hero-img img { border-width: 5px; border-radius: 20px; }
  .tn-cta { margin: 1.5rem 1rem 3rem; padding: 2.5rem 1.3rem; border-radius: 24px; }
  .tn-article { font-size: 1.03rem; }
  .tn-table { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-card, .tn-btn { transition: none; }
  .tn-card:hover { transform: none; }
}
