/* PeterTalks — styles. Navy #252F42 + orange #FF9F00 */
:root {
  --navy: #252f42;
  --navy-900: #1a2231;
  --navy-700: #303c53;
  --orange: #ff9f00;
  --orange-600: #e08a00;
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #1f2633;
  --muted: #5d6677;
  --line: #e6e0d4;
  --radius: 14px;
  --max: 1120px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--orange); color: var(--navy); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(37, 47, 66, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 36px; height: auto; }
.brand span { color: var(--orange); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: #d7dce6; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy); padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-radius: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ffb233; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 500px at 85% 10%, #34425c 0%, var(--navy) 60%);
  color: #fff; padding: 88px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,159,0,.2); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 19px; color: #c9d0dc; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(320px, 80%); filter: drop-shadow(0 20px 60px rgba(255,159,0,.25)); }
.hero-art::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1px dashed rgba(255,159,0,.3);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; font-size: 14px; color: #aeb6c5; }
.hero-meta strong { color: #fff; display: block; font-size: 15px; }
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; }
  .hero-art::before { width: 180px; height: 180px; }
}

/* Page hero (subpages) */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 10px 0 12px; letter-spacing: -.02em; line-height: 1.15; }
.page-hero p { color: #c9d0dc; max-width: 640px; margin: 0; font-size: 18px; }

/* Sections */
section.block { padding: 80px 0; }
section.block.alt { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 0; letter-spacing: -.02em; line-height: 1.2; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.link-arrow { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); }

/* Latest episode */
.latest { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); box-shadow: 0 24px 60px rgba(37,47,66,.25);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: #fff; }
.video-poster .ep-num { position: absolute; right: 18px; bottom: 14px; font-weight: 800; font-size: 28px; color: var(--orange); }
.video-poster .poster-title { position: absolute; left: 22px; top: 20px; font-weight: 800; font-size: clamp(18px, 2.6vw, 28px); letter-spacing: .02em; text-transform: uppercase; max-width: 70%; line-height: 1.15; }
.play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,159,0,.18); transition: transform .2s;
}
.video-poster:hover .play { transform: scale(1.06); }
.play svg { width: 30px; height: 30px; fill: var(--navy); margin-left: 4px; }
.latest h3 { font-size: 28px; margin: 8px 0 12px; line-height: 1.25; letter-spacing: -.01em; }
.latest p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #fff1d9; color: #8a5300; }
.tag.navy { background: #e8ebf1; color: var(--navy); }
@media (max-width: 820px) { .latest { grid-template-columns: 1fr; gap: 24px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .icon svg { width: 24px; height: 24px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0 0 8px; font-size: 22px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar .share { font-size: 13px; font-weight: 700; color: var(--orange-600); margin-top: 14px; display: block; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* Episode cards */
.episodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ep {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit;
}
a.ep:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37,47,66,.12); }
.ep-thumb {
  aspect-ratio: 16/9; background: var(--navy); position: relative; padding: 16px; color: #fff;
  display: flex; align-items: flex-start;
}
.ep-thumb .thumb-text { font-weight: 800; font-size: 20px; line-height: 1.12; text-transform: uppercase; color: var(--orange); max-width: 80%; }
.ep-thumb .thumb-num { position: absolute; right: 14px; bottom: 10px; font-weight: 800; font-size: 22px; color: #fff; opacity: .9; }
.ep-thumb img { position: absolute; left: 14px; bottom: 12px; width: 30px; opacity: .8; }
.ep-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ep-body h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.ep-body p { margin: 0; color: var(--muted); font-size: 15px; }
.ep-meta { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.ep.soon { opacity: .9; }
.ep.soon .ep-thumb { background: var(--navy-700); }
.badge-soon { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #e8ebf1; color: var(--navy); padding: 3px 8px; border-radius: 999px; }
.badge-live { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--orange); color: var(--navy); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 960px) { .episodes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .episodes { grid-template-columns: 1fr; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font-family: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Newsletter */
.newsletter {
  background: var(--navy); color: #fff; border-radius: 22px; padding: 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: url("phoenix.png") center/contain no-repeat; opacity: .07; transform: rotate(-12deg);
}
.newsletter h2 { margin: 8px 0 12px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.newsletter p { color: #c9d0dc; margin: 0; }
.newsletter ul { margin: 16px 0 0; padding: 0; list-style: none; color: #dfe4ec; font-size: 15px; }
.newsletter li { padding-left: 26px; position: relative; margin: 6px 0; }
.newsletter li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.signup { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.signup label { font-size: 13px; font-weight: 700; color: #aeb6c5; letter-spacing: .04em; }
.signup input {
  font-family: inherit; font-size: 16px; padding: 15px 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #fff; width: 100%;
}
.signup input::placeholder { color: #8d97a9; }
.signup input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.1); }
.signup .row { display: flex; gap: 10px; }
.signup .row input { flex: 1; }
.signup small { color: #8d97a9; font-size: 13px; }
.form-msg { font-weight: 600; color: var(--orange); min-height: 1.4em; margin: 0; }
@media (max-width: 820px) {
  .newsletter { grid-template-columns: 1fr; padding: 32px 22px; }
  .signup .row { flex-direction: column; }
}

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.platform {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  transition: border-color .15s;
}
.platform:hover { border-color: var(--orange); }
.platform svg { width: 26px; height: 26px; flex: none; }
.platform small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .platforms { grid-template-columns: 1fr; } }

/* Host intro */
.host { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.host-photo {
  aspect-ratio: 4/5; border-radius: 20px; background: var(--navy); display: grid; place-items: center; position: relative; overflow: hidden;
}
.host-photo img { width: 55%; opacity: .95; }
.host-photo .ph-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: #8d97a9; }
.host blockquote { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; margin: 12px 0 20px; color: var(--navy); }
@media (max-width: 820px) { .host { grid-template-columns: 1fr; gap: 28px; } .host-photo { max-width: 260px; } }

/* Resources */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource { display: grid; grid-template-columns: 120px 1fr; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-items: start; }
.res-icon { aspect-ratio: 3/4; border-radius: 10px; background: var(--navy); display: grid; place-items: center; position: relative; }
.res-icon svg { width: 40px; height: 40px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.res-icon .fmt { position: absolute; bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fff; }
.resource h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.3; }
.resource p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.resource .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 820px) { .resources { grid-template-columns: 1fr; } .resource { grid-template-columns: 84px 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-600); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Archive list */
.archive { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.archive li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; flex-wrap: wrap; }
.archive .date { font-size: 14px; color: var(--muted); font-weight: 600; min-width: 120px; }
.archive .title { font-weight: 700; flex: 1; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose p, .prose li { color: #3a4252; }
.prose .callout { background: #fff1d9; border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: 8px; color: #5a3a00; }

/* Schedule strip */
.strip { background: var(--orange); color: var(--navy); }
.strip .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; font-weight: 700; font-size: 15px; text-align: center; flex-wrap: wrap; }
.strip #countdown { background: var(--navy); color: var(--orange); padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { background: var(--navy-900); color: #aeb6c5; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d7dce6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.socials a:hover { background: var(--orange); }
.socials a:hover svg { fill: var(--navy); }
.socials svg { width: 18px; height: 18px; fill: #d7dce6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Language switcher */
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1.5px solid rgba(255,255,255,.2); border-radius: 999px; padding: 2px; }
.lang-switch a { color: #d7dce6; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); }
@media (max-width: 820px) { .nav-right { gap: 6px; } }

/* Language dropdown (replaces the pill switcher) */
.lang-switch { display: none; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu[open] summary, .lang-menu summary:hover { border-color: var(--orange); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.25); z-index: 60;
}
.lang-menu a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu a b { min-width: 32px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.lang-menu a:hover { background: var(--cream); }
.lang-menu a[aria-current="true"] { background: #fff1d9; font-weight: 700; }

/* Chinese typography */
:lang(zh) body, html:lang(zh-Hans) body { font-family: "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh-Hans) .hero h1 { letter-spacing: 0; line-height: 1.2; }
html:lang(zh-Hans) .nav-links a, html:lang(zh-Hans) .kicker, html:lang(zh-Hans) .eyebrow { letter-spacing: .04em; }
.lang-menu a { white-space: nowrap; }
