/* Carla Harris:你不在場的那間會議室
   視覺概念:一張手畫的會議室座位圖。酒紅色的房間、青瓷色的毛玻璃門、黃銅色的籌碼。 */

:root {
  --paper: #f4eff1;
  --paper-2: #eae1e5;
  --ink: #2a161d;
  --ink-soft: #5d4750;
  --wine: #7a1730;
  --wine-deep: #53101f;
  --room-bg: #5b1024;
  --room-ink: #f7ecef;
  --room-soft: #e3c3cc;
  --glass: #c5dcd6;
  --glass-ink: #235a50;
  --brass: #c9973a;
  --brass-ink: #7c5712;
  --line: rgba(42, 22, 29, 0.2);
  --sheet: #fffdfb;
  --sheet-ink: #2a161d;

  --serif: "Chiron Sung HK", "Noto Serif TC", "Songti TC", serif;
  --sans: "Chiron Hei HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --latin: "Bodoni Moda", "Didot", "Chiron Sung HK", serif;
  --hand: "Iansui", "Chiron Hei HK", "PingFang TC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b0d12;
    --paper-2: #29141b;
    --ink: #f2e7ea;
    --ink-soft: #c9b3ba;
    --wine: #ee8fa5;
    --wine-deep: #f6b9c6;
    --room-bg: #3d0d1a;
    --room-ink: #f7ecef;
    --room-soft: #dbb5bf;
    --glass: #2c4f48;
    --glass-ink: #a5d3c8;
    --brass: #dcae5c;
    --brass-ink: #e6c07a;
    --line: rgba(242, 231, 234, 0.22);
    --sheet: #f6efe9;
    --sheet-ink: #2a161d;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

[lang="en"] { font-family: var(--latin), var(--sans); }
p [lang="en"], li [lang="en"], figcaption [lang="en"], h1 [lang="en"], h3 [lang="en"], .sub [lang="en"] { font-family: inherit; }

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

a { color: var(--wine); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

p { margin: 0 0 1.1em; max-width: 40em; }

h2, h3, h4 { font-family: var(--serif); font-weight: 900; line-height: 1.3; margin: 0; }

/* 時間戳 */
.ts {
  font-family: var(--latin);
  font-size: 0.8em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  margin-left: 0.25em;
  white-space: nowrap;
  font-weight: 400;
}
.ts:hover { color: var(--wine); border-bottom-style: solid; }

/* ============ 房間(hero) ============ */
.room {
  background: var(--room-bg);
  color: var(--room-ink);
  padding: 1.5rem 0 3.5rem;
}
.room a { color: inherit; }
.room .ts { color: var(--room-soft); }
.room .ts:hover { color: #fff; }

.room-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
}

.home {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 236, 239, 0.5);
  margin-bottom: 2.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
}
.sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--room-soft);
  margin-bottom: 1.5rem;
}
.lede { font-size: 1rem; max-width: 34em; margin: 0; }

.plan { margin: 0; }
.plan svg { width: 100%; }
.plan .wall { fill: rgba(0, 0, 0, 0.16); stroke: var(--room-ink); stroke-width: 3; }
.plan .doorgap { fill: var(--room-bg); }
.plan .door { stroke: #9cc7bd; stroke-width: 5; stroke-linecap: round; fill: none; }
.plan .swing { stroke: #9cc7bd; stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; }
.plan .table { fill: none; stroke: var(--room-ink); stroke-width: 2; }
.plan .docs rect { fill: #fffdfb; }
.plan .docs text { font-family: var(--serif); font-weight: 900; font-size: 15px; fill: #53101f; text-anchor: middle; }
.plan .chairs circle { fill: none; stroke: var(--room-ink); stroke-width: 2; }
.plan .sponsor-seat { fill: #dcae5c; stroke: #dcae5c; stroke-width: 2; }
.plan .q { font-family: var(--latin); font-weight: 800; font-size: 22px; fill: #3d0d1a; text-anchor: middle; }
.plan .note-line { fill: none; stroke: #dcae5c; stroke-width: 1.5; }
.plan .hand { font-family: var(--hand); font-size: 21px; fill: #f1cf8d; }
.plan .you { fill: var(--room-ink); }
.plan .you-label { fill: var(--room-ink); }

@media (prefers-reduced-motion: no-preference) {
  .plan .sponsor-seat { animation: seat-pulse 2.6s ease-in-out 0.6s 3; transform-origin: 369.3px 109.5px; }
  @keyframes seat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
  }
}

/* ============ 開場引文與目錄 ============ */
.opening { padding: 3.5rem 0 1rem; }

.pull { margin: 0 0 2.5rem; padding: 0; }
.pull p {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  line-height: 1.3;
  max-width: 24em;
  margin: 0 0 0.75rem;
  color: var(--wine-deep);
}
.pull footer { font-size: 1rem; color: var(--ink-soft); max-width: 36em; }
.pull.small p { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }
.pull.closing { margin: 3.5rem 0 0; padding-top: 2.5rem; border-top: 3px double var(--line); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  font-size: 0.95rem;
}
.toc a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
}
.toc a:first-child { background: var(--wine); border-color: var(--wine); color: var(--paper); font-weight: 700; }
.toc a:hover { border-color: var(--wine); }

/* ============ 升職加薪的真相 ============ */
.truth { padding: 4rem 0 1rem; }

.chapter {
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  letter-spacing: 0.03em;
  color: var(--wine);
  border-bottom: 6px solid var(--wine);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}
.chapter-lede { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.8; max-width: 34em; }

.part { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.part:last-child { border-bottom: 0; }

.part h3 {
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--brass);
  color: #2a161d;
  font-size: 0.8em;
  box-shadow: inset 0 0 0 3px var(--brass), inset 0 0 0 4.5px rgba(42, 22, 29, 0.55);
}

h4 { font-size: 1.2rem; margin: 2rem 0 0.7rem; }

.two { display: grid; gap: 0.5rem 3rem; align-items: start; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; } }

.ask { margin: 1.25rem 0; padding: 0 0 0 1.1rem; border-left: 4px solid var(--brass); }
.ask p { font-family: var(--latin); font-style: italic; font-size: 1.25rem; line-height: 1.45; margin: 0 0 0.35rem; }
.ask footer { font-size: 0.95rem; color: var(--ink-soft); }

.script {
  font-family: var(--serif);
  font-weight: 500;
  background: var(--paper-2);
  padding: 1rem 1.2rem;
  border-radius: 2px 14px 14px 14px;
}

/* 圖表共用 */
.chart { margin: 1.5rem 0; }
.chart svg { width: 100%; max-width: 26rem; }
figcaption { font-size: 0.88rem; line-height: 1.65; color: var(--ink-soft); margin-top: 0.6rem; max-width: 44em; }
.chart text { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
.chart .hand { font-family: var(--hand); font-size: 17px; }

.curve .axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.curve .flat-zone { fill: var(--glass); opacity: 0.55; }
.curve .curve-line { fill: none; stroke: var(--wine); stroke-width: 4; stroke-linecap: round; }
.curve .tick { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.curve .axis-label { fill: var(--ink-soft); }
.curve .zone-label { fill: var(--ink); }
.curve .zone-label.strong { fill: var(--glass-ink); font-size: 19px; }

/* sponsor 三條件 */
.finder { display: grid; gap: 1.5rem 2.5rem; margin: 1.5rem 0 2.5rem; align-items: center; }
@media (min-width: 56rem) { .finder { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

.conds { list-style: none; margin: 0; padding: 0; counter-reset: cond; display: grid; gap: 0.75rem; }
.conds li { counter-increment: cond; }
.conds button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem 0.85rem 3.2rem;
  position: relative;
  cursor: pointer;
  display: block;
}
.conds button::before {
  content: counter(cond);
  position: absolute;
  left: 0.9rem;
  top: 0.7rem;
  font-family: var(--latin);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ink-soft);
}
.conds strong { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.15rem; }
.conds button > span { display: block; font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.conds button:hover { border-color: var(--wine); }
.conds button[aria-pressed="true"] { border-color: var(--wine); background: var(--paper-2); box-shadow: inset 5px 0 0 var(--wine); }
.conds button[aria-pressed="true"]::before { color: var(--wine); }

.seats { margin: 0; }
.seats svg { width: 100%; }
.seats .table { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.seats .table-label { font-family: var(--serif); font-weight: 900; font-size: 19px; fill: var(--ink); text-anchor: middle; }
.seats .table-sub { font-family: var(--hand); font-size: 16px; fill: var(--ink-soft); text-anchor: middle; }
.seats .seat { fill: var(--brass); stroke: var(--ink); stroke-width: 2; transition: opacity 0.25s, fill 0.25s; }
.seats .seat.head { stroke-dasharray: 4 3.5; }
.finder[data-step="2"] .seat:not(.vis),
.finder[data-step="3"] .seat:not(.juice) { fill: transparent; opacity: 0.35; }
.finder[data-step="3"] .seat.juice { fill: var(--wine); }
.seats-status { font-family: var(--serif); font-weight: 900; font-size: 1.1rem; margin: 0.25rem 0 0.5rem; color: var(--wine); text-align: center; max-width: none; }
.seats figcaption { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.seats .cap { flex-basis: 100%; }
.key { display: inline-flex; align-items: center; gap: 0.4rem; }
.k { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.k.head { border-style: dashed; }

.touches { margin: 0 0 1rem; padding-left: 1.2rem; }
.touches li { margin-bottom: 0.3rem; }
.touches li::marker { color: var(--brass-ink); }

/* 群眾外包 */
.crowd-block { display: grid; gap: 1rem 3rem; align-items: center; margin-top: 1.5rem; }
@media (min-width: 52rem) { .crowd-block { grid-template-columns: 1.2fr 1fr; } }
.crowd { margin: 0; }
.dots { display: grid; grid-template-columns: repeat(6, 2.1rem); gap: 0.7rem; }
.dots i { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--wine); display: block; }
.dots .out { background: transparent; border: 2px dashed var(--ink-soft); transform: translate(1.1rem, 0.5rem); }

/* 提前一年 */
.yearline { list-style: none; margin: 2rem 0 2.5rem; padding: 0; display: grid; gap: 0; }
.yearline li { position: relative; padding: 0 0 1.4rem 2rem; border-left: 3px solid var(--wine); }
.yearline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.yearline li::before {
  content: "";
  position: absolute;
  left: -0.62rem;
  top: 0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--wine);
}
.yearline li:last-child::before { background: var(--brass); border-color: var(--brass); }
.yearline b { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: var(--wine); }
.yearline span { display: block; font-size: 0.98rem; line-height: 1.65; }
@media (min-width: 52rem) {
  .yearline { grid-template-columns: repeat(4, 1fr); }
  .yearline li { border-left: 0; border-top: 3px solid var(--wine); padding: 1.3rem 1.5rem 0 0; }
  .yearline li:last-child { border-top-color: var(--wine); }
  .yearline li::before { left: 0; top: -0.68rem; }
}

/* 1/3 與 2/3 */
.thirds { margin: 1.75rem 0 2rem; }
.bar { display: flex; min-height: 6.5rem; border: 2px solid var(--ink); }
.bar > div { padding: 0.8rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.bar .past { flex: 1; background: var(--paper-2); }
.bar .future { flex: 2; background: var(--wine); color: var(--paper); }
.bar b { font-family: var(--latin); font-weight: 800; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1; font-variant-numeric: lining-nums; }
.bar span { font-size: 0.92rem; line-height: 1.5; margin-top: 0.4rem; }
.thirds figcaption { font-family: var(--latin); font-style: italic; font-size: 1rem; }

/* 談薪 */
.pay { margin: 1.75rem 0 2rem; }
.pay-chart { max-width: 46rem; }
.pay .row { display: grid; grid-template-columns: 5.2em 1fr; gap: 0.6rem; align-items: center; margin-bottom: 0.7rem; }
.pay .lab { font-family: var(--serif); font-weight: 900; font-size: 0.98rem; }
.pay .track { background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%); border-left: 2px solid var(--ink); height: 3.4rem; }
.pay .offer, .pay .market { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding: 0 0.6rem; }
.pay .offer { background: var(--paper-2); border: 2px dashed var(--ink-soft); border-left: 0; }
.pay .market { background: var(--brass); color: #2a161d; justify-content: center; padding: 0 0.2rem; }
.pay b { font-family: var(--serif); font-weight: 900; font-size: clamp(0.95rem, 3.2vw, 1.3rem); white-space: nowrap; }
.pay .scale { margin-left: calc(5.2em + 0.6rem); display: grid; grid-template-columns: repeat(5, 1fr) 0; font-family: var(--latin); font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: lining-nums; }
.pay .scale span { transform: translateX(-0.3em); white-space: nowrap; }
.pay .scale span:last-child { transform: translateX(-100%); text-align: right; width: max-content; }
@media (max-width: 40rem) {
  .pay .row { grid-template-columns: 1fr; gap: 0.2rem; }
  .pay .scale { margin-left: 0; }
  .pay .market { position: relative; }
  .pay .market b { position: absolute; right: calc(100% + 0.5rem); color: var(--ink); }
}

.signals { margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: sig; }
.signals li { counter-increment: sig; font-family: var(--serif); font-weight: 900; font-size: 1.1rem; padding: 0.55rem 0 0.55rem 2.4rem; border-bottom: 1px solid var(--line); position: relative; }
.signals li::before { content: counter(sig); position: absolute; left: 0.3rem; top: 0.35rem; font-family: var(--latin); font-size: 1.5rem; color: var(--wine); line-height: 1.3; }

.whys { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.whys li { background: var(--glass); color: var(--ink); font-family: var(--serif); font-weight: 900; padding: 0.8rem 1rem; border-radius: 2px; }

/* ============ 其他主題 ============ */
.topic { padding: 3.5rem 0 1rem; }
.topic > h2 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); margin-bottom: 1.4rem; padding-top: 2.5rem; border-top: 6px solid var(--ink); }

.stages { display: grid; grid-template-columns: 1fr 1fr; margin: 1.25rem 0 1rem; border: 2px solid var(--ink); }
.stage { padding: 1rem 1.1rem; }
.stage.late { background: var(--ink); color: var(--paper); }
.stage span { font-size: 0.9rem; }
.stage b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.2; }
.stage p { font-size: 0.95rem; line-height: 1.65; margin: 0.4rem 0 0; }

/* 三張白紙 */
.sheets { list-style: none; margin: 2rem 0 2.25rem; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 50rem) { .sheets { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.sheets li {
  background: var(--sheet);
  color: var(--sheet-ink);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: 0 1px 0 rgba(42, 22, 29, 0.25), 6px 8px 0 rgba(42, 22, 29, 0.14);
  min-height: 15rem;
}
.sheets li:nth-child(1) { transform: rotate(-1.2deg); }
.sheets li:nth-child(2) { transform: rotate(0.8deg); }
.sheets li:nth-child(3) { transform: rotate(-0.5deg); }
.sheets b { font-family: var(--hand); font-weight: 400; font-size: 1.05rem; color: #7a1730; }
.sheets h4 { margin: 0.2rem 0 0.6rem; font-size: 1.35rem; }
.sheets p { font-family: var(--hand); font-size: 1.12rem; line-height: 1.7; margin: 0; }
.sheets .ts { color: #5d4750; }

.venn svg { max-width: 24rem; }
.venn circle { fill: var(--brass); fill-opacity: 0.3; stroke: var(--ink); stroke-width: 2; }
.venn .vb { fill: var(--wine); fill-opacity: 0.25; }
.venn text { font-family: var(--serif); font-weight: 900; font-size: 15px; }
.venn .mid { font-family: var(--hand); font-weight: 400; font-size: 19px; }

.cards { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: 1fr 1fr; } }
.cards h3 { font-size: 1.35rem; margin-bottom: 0.7rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--wine); }

/* ============ NotebookLM 圖 ============ */
.shot { margin: 2rem 0 2.5rem; }
.shot > a, .scrollbox { display: block; border: 2px solid var(--ink); background: #f6f1ea; }
.shot img { width: 100%; }
.scrollbox { max-height: min(78vh, 46rem); overflow: auto; padding: 1rem; }
.scrollbox img { width: 40rem; max-width: none; margin-inline: auto; }
.slide { max-width: 46rem; }

/* ============ 頁尾 ============ */
.foot { margin-top: 4rem; background: var(--room-bg); color: var(--room-ink); padding: 3rem 0 3.5rem; }
.foot a { color: inherit; }
.foot h2 { font-family: var(--latin); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.8rem; }
.foot ul { margin: 0 0 1.5rem; padding-left: 1.2rem; font-size: 0.95rem; }
.foot li { margin-bottom: 0.5rem; }
.fine { font-size: 0.88rem; color: var(--room-soft); max-width: 44em; }
.back { font-family: var(--serif); font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
