:root {
  --journal-paper: #f4eddf;
  --journal-cream: #fffaf0;
  --journal-ink: #17313a;
  --journal-rust: #b85f42;
  --journal-sage: #788d72;
  --journal-blue: #37677a;
  --journal-gold: #d49b4c;
}

.page-home,
.page-journal,
.page-investing,
.page-options,
.page-dcf,
.page-travel,
.page-photography {
  background: var(--journal-paper);
}

.page-home main {
  max-width: 1500px;
  padding-top: 24px;
}

.page-home footer,
.page-journal footer,
.page-investing footer,
.page-options footer,
.page-dcf footer,
.page-travel footer,
.page-photography footer {
  color: #6f756f;
}

.vlog-home {
  color: var(--journal-ink);
}

.vlog-kicker,
.topic-label {
  display: block;
  color: var(--journal-rust);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.vlog-hero {
  min-height: min(700px, calc(100vh - 118px));
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(34px, 6vw, 88px);
  background: #e9dec9 url("/assets/vlog-hero.webp") center / cover no-repeat;
  box-shadow: 0 24px 65px rgba(71, 57, 39, .16);
}

.vlog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 249, 236, .98) 0%, rgba(255, 249, 236, .88) 37%, rgba(255, 249, 236, .2) 62%, rgba(255, 249, 236, 0) 100%);
}

.vlog-hero-copy {
  width: min(610px, 50%);
  position: relative;
  z-index: 1;
}

.vlog-hero h1 {
  margin: 18px 0 22px;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(42px, 5.1vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.vlog-hero h1 em {
  color: var(--journal-rust);
  font-style: normal;
}

.vlog-hero-copy > p {
  max-width: 560px;
  color: #4c5d5c;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.market-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--journal-rust);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(184, 95, 66, .22);
  transition: transform .2s, box-shadow .2s;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(184, 95, 66, .3);
}

.text-action,
.story-copy a,
.market-links > a:not(.primary-action),
.closing-note a,
.back-link {
  color: var(--journal-ink);
  text-decoration: none;
  font-weight: 800;
}

.vlog-hero .hero-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 26px;
  max-width: 300px;
  padding: 15px 18px;
  color: #fff;
  background: rgba(20, 39, 43, .76);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

.hero-caption span { font-size: 10px; letter-spacing: .15em; opacity: .74; }
.hero-caption p { margin: 5px 0 0; font-family: "STSong", "Songti SC", serif; }

.opening-note {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  padding: clamp(70px, 9vw, 130px) clamp(12px, 4vw, 62px);
}

.section-number {
  align-self: start;
  color: #bdad94;
  font: 700 54px/1 Georgia, serif;
}

.opening-copy h2,
.topic-heading h2,
.story-copy h2,
.market-copy h2,
.closing-note h2,
.topic-hero h1 {
  margin: 13px 0 20px;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.opening-copy p,
.story-copy p,
.topic-heading p,
.market-copy > p,
.topic-hero p,
.chapter-card p,
.work-in-progress p {
  color: #63706e;
  line-height: 1.9;
}

.opening-note blockquote {
  margin: 0;
  padding: 28px;
  color: #725845;
  background: rgba(255, 250, 240, .72);
  border: 1px solid #e0d3c0;
  border-radius: 2px 22px 2px 22px;
  font: 700 21px/1.8 "STSong", "Songti SC", serif;
  transform: rotate(1.3deg);
}

.story-step {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 470px;
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid #ded2c0;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(72, 57, 39, .08);
}

.story-visual {
  padding: clamp(40px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f7efe1;
  background: radial-gradient(circle at 78% 18%, rgba(212, 155, 76, .42), transparent 26%), linear-gradient(145deg, #1c3943, #295d69 58%, #7c8870);
  position: relative;
  overflow: hidden;
}

.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.story-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 35, .05) 20%, rgba(13, 31, 35, .82) 100%);
}

.story-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  top: 40px;
  right: 55px;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .035), 0 0 0 72px rgba(255, 255, 255, .025);
  z-index: 1;
}

.story-visual span,.story-visual strong,.story-visual small { position: relative; z-index: 2; }
.story-visual span { color: #dfc493; font-size: 12px; letter-spacing: .16em; }
.story-visual strong { max-width: 540px; margin: 16px 0; font: 700 clamp(30px, 4vw, 52px)/1.28 "STSong", "Songti SC", serif; }
.story-visual small { max-width: 430px; color: #d7e2df; }
.story-copy { padding: clamp(40px, 6vw, 80px); align-self: center; }
.story-copy a { display: inline-block; margin-top: 12px; color: var(--journal-rust); }

.topic-map { padding: clamp(80px, 10vw, 140px) 0; }
.topic-heading { display: flex; justify-content: space-between; gap: 36px; align-items: flex-end; margin: 0 clamp(12px, 4vw, 56px) 38px; }
.topic-heading p { max-width: 380px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }

.topic-card {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: var(--journal-ink);
  background: rgba(255, 250, 240, .83);
  border: 1px solid #ddd0bc;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.topic-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -58px;
  bottom: -70px;
  background: var(--card-accent, #b85f42);
  opacity: .13;
}

.topic-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(60, 48, 35, .12); border-color: var(--card-accent, #b85f42); }
.topic-index { color: #b8a78d; font: 700 28px/1 Georgia, serif; }
.topic-card small { margin-top: 42px; color: var(--card-accent, #b85f42); font-weight: 900; letter-spacing: .16em; }
.topic-card h3 { margin: 9px 0 12px; font: 700 29px/1.2 "STSong", "Songti SC", serif; }
.topic-card p { margin: 0; color: #66716e; line-height: 1.75; }
.topic-card b { margin-top: auto; padding-top: 22px; font-size: 13px; }
.topic-thumb {
  display: block;
  height: 128px;
  margin: 18px -12px 0;
  overflow: hidden;
  border-radius: 13px;
  background: #d9d2c5;
}
.topic-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}
.topic-thumb.portrait-thumb img { object-position: center 38%; }
.topic-card.with-photo { min-height: 410px; }
.topic-card.with-photo small { margin-top: 18px; }
.topic-card.with-photo:hover .topic-thumb img { transform: scale(1.035); }
.journal-card { --card-accent: #a97551; }
.options-card { --card-accent: #3c7182; }
.industry-card { --card-accent: #b75b43; }
.dcf-card { --card-accent: #76896d; }
.travel-card { --card-accent: #d09845; }
.photo-card { --card-accent: #545d71; }

.market-window {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(35px, 7vw, 95px);
  padding: clamp(44px, 7vw, 90px);
  color: #eef4ef;
  background: #17343e;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}

.market-window::after { content: ""; position: absolute; width: 370px; height: 370px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -120px; top: -190px; box-shadow: 0 0 0 70px rgba(255,255,255,.025); }
.market-copy { position: relative; z-index: 1; }
.market-copy h2 { color: #fff; }
.market-copy > p { color: #c4d4d1; max-width: 720px; }
.market-stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.market-stats span { min-width: 150px; padding: 15px 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.market-stats small,.market-stats strong { display: block; }
.market-stats small { color: #aabfbc; font-size: 11px; }
.market-stats strong { margin-top: 5px; color: #fff; }
.market-links > a:not(.primary-action) { color: #d4e1de; }
.market-rank { align-self: center; position: relative; z-index: 1; padding: 34px; background: #f3eadb; color: var(--journal-ink); border-radius: 2px 24px 2px 24px; transform: rotate(1deg); }
.market-rank span,.market-rank small,.market-rank i { display: block; }
.market-rank span { color: #8e755f; font-size: 12px; }
.market-rank strong { display: block; margin: 12px 0 4px; color: var(--journal-rust); font: 700 38px/1.2 "STSong", "Songti SC", serif; }
.market-rank i { margin-top: 26px; color: #786e62; font-family: "STSong", "Songti SC", serif; }

.photo-interlude {
  margin-top: 10px;
}

.photo-interlude figure {
  margin: 0;
  min-height: 650px;
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  background: #183c42;
  box-shadow: 0 22px 54px rgba(48, 57, 51, .15);
}

.photo-interlude img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-interlude figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 28, 32, .12) 65%, rgba(8, 28, 32, .78) 100%);
}

.photo-interlude figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(25px, 5vw, 72px);
  right: clamp(25px, 5vw, 72px);
  bottom: clamp(25px, 5vw, 58px);
  max-width: 650px;
  color: #fff;
}

.photo-interlude .vlog-kicker { color: #e8cb94; }
.photo-interlude h2 {
  margin: 9px 0 5px;
  font: 700 clamp(32px, 4vw, 52px)/1.2 "STSong", "Songti SC", serif;
}
.photo-interlude p {
  margin: 0;
  color: #e3efec;
  font-size: 16px;
  line-height: 1.8;
}

.closing-note { text-align: center; padding: clamp(100px, 12vw, 170px) 20px; }
.closing-note > span { color: #957e68; letter-spacing: .12em; font-size: 12px; }
.closing-note a { display: inline-block; margin-top: 12px; color: var(--journal-rust); }

.has-motion .vlog-home .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.has-motion .vlog-home .reveal.is-visible { opacity: 1; transform: none; }

.topic-page { max-width: 1040px; margin: auto; padding: 10px 0 60px; }
.back-link { display: inline-block; margin: 4px 0 24px; color: #6e766f; }
.topic-hero { padding: clamp(45px, 8vw, 95px); color: var(--journal-ink); background: #fffaf0; border: 1px solid #ddd0bc; border-radius: 28px; position: relative; overflow: hidden; }
.topic-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -100px; border: 46px solid rgba(184,95,66,.07); border-radius: 50%; }
.topic-hero h1 { max-width: 780px; }
.topic-hero p { max-width: 730px; font-size: 17px; }
.chapter-list { display: grid; gap: 14px; margin-top: 22px; }
.chapter-card { display: grid; grid-template-columns: 76px 1fr; gap: 24px; padding: 30px; background: rgba(255,250,240,.74); border: 1px solid #ddd0bc; border-radius: 17px; }
.chapter-card > span { color: #baa990; font: 700 30px/1 Georgia, serif; }
.chapter-card small { color: var(--journal-rust); font-weight: 900; letter-spacing: .14em; }
.chapter-card h2 { margin: 8px 0 6px; font: 700 26px/1.3 "STSong", "Songti SC", serif; }
.chapter-card p { margin: 0; }
.work-in-progress { margin-top: 22px; padding: 24px 30px; display: flex; gap: 30px; align-items: center; background: #17343e; color: #fff; border-radius: 16px; }
.work-in-progress span { flex: 0 0 auto; color: #e5c48d; font-weight: 800; }
.work-in-progress p { margin: 0; color: #c4d4d1; }

@media (max-width: 980px) {
  .vlog-hero { min-height: 650px; background-position: 62% center; align-items: flex-start; }
  .vlog-hero::before { background: linear-gradient(90deg, rgba(255,249,236,.98), rgba(255,249,236,.84) 58%, rgba(255,249,236,.12)); }
  .vlog-hero-copy { width: 62%; }
  .opening-note { grid-template-columns: 55px 1fr; }
  .opening-note blockquote { grid-column: 2; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .market-window { grid-template-columns: 1fr; }
  .market-rank { max-width: 430px; }
}

@media (max-width: 680px) {
  .page-home main { padding-top: 12px; }
  .vlog-hero { min-height: 720px; padding: 34px 24px 150px; align-items: flex-start; background-position: 67% bottom; border-radius: 20px; }
  .vlog-hero::before { background: linear-gradient(180deg, rgba(255,249,236,.98) 0%, rgba(255,249,236,.92) 47%, rgba(255,249,236,.14) 78%); }
  .vlog-hero-copy { width: 100%; }
  .vlog-hero h1 { font-size: 43px; }
  .vlog-hero-copy > p { font-size: 15px; line-height: 1.75; }
  .vlog-hero .hero-caption { left: 18px; right: 18px; bottom: 18px; max-width: none; }
  .opening-note { grid-template-columns: 1fr; padding: 76px 8px; }
  .section-number { font-size: 38px; }
  .opening-note blockquote { grid-column: auto; }
  .story-step { grid-template-columns: 1fr; }
  .story-visual { min-height: 400px; }
  .topic-heading { display: block; margin-left: 5px; margin-right: 5px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 285px; }
  .topic-card.with-photo { min-height: 390px; }
  .market-window { padding: 38px 24px; }
  .market-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .market-stats span { min-width: 0; }
  .chapter-card { grid-template-columns: 45px 1fr; padding: 24px 20px; gap: 12px; }
  .work-in-progress { display: block; }
  .work-in-progress p { margin-top: 8px; }
  .photo-interlude figure,
  .photo-interlude img { min-height: 560px; }
  .photo-interlude img { object-position: 58% center; }
}
