/* Thesis case study — builds on styles.css tokens */

.t-hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) 40px; }
.t-hero .eyebrow a { color: inherit; text-decoration: none; }
.t-hero .eyebrow a:hover { color: var(--red); }
.t-hero h1 {
  font-size: clamp(64px, 13vw, 200px); line-height: .86; letter-spacing: -0.05em; color: var(--red);
}
.t-hero h1 span { color: var(--blue); }
.t-sub { margin: 18px 0 0; font-size: clamp(24px, 3vw, 38px); color: var(--ink-soft); }
.t-facts { grid-template-columns: repeat(4, auto); }

.t-statement-img { margin: 24px auto 0; max-width: var(--max); padding: 0 var(--gutter); }
.t-statement-img img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px rgb(28 25 64 / .12); }

.t-statement { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.t-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.t-cols p { margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; }
.c-blue { color: var(--blue); } .c-red { color: var(--red); } .c-gold { color: #c99a00; }

.t-quote {
  margin: clamp(64px, 9vw, 120px) 0 0; padding: clamp(56px, 8vw, 110px) var(--gutter);
  background: var(--ink); color: #fff; text-align: center;
}
.t-quote p {
  max-width: 1000px; margin: 0 auto; font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); line-height: 1.15;
}
.t-quote em { color: var(--yellow); }
.t-quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

.t-moves { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.move {
  display: block; text-decoration: none; padding: 28px; border-radius: var(--radius);
  background: #fff; border-top: 8px solid var(--c);
  transition: transform .25s ease, box-shadow .25s ease;
}
.move:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(28 25 64 / .1); }
.move > span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--c); filter: saturate(1.4) brightness(.85); }
.move h3 { font-size: 30px; margin: 6px 0 10px; }
.move p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.t-books { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) 40px; }
.t-books h2 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.035em; margin-bottom: 40px; }
.t-books h2 em { color: var(--blue); }
.books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.book {
  display: flex; flex-direction: column; text-decoration: none; color: var(--fg);
  background: var(--bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 0 rgb(0 0 0 / .08), 0 10px 24px rgb(28 25 64 / .1);
  transition: transform .25s ease;
}
.book:hover { transform: translateY(-6px) rotate(-1deg); }
.book img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.book-n { padding: 10px 12px 0; font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .7; }
.book-t { padding: 0 12px 12px; font-weight: 700; font-size: 15px; line-height: 1.15; }

/* ---- each volume ---- */
.vol { background: var(--bg); color: var(--fg); padding: clamp(56px, 7vw, 96px) 0; scroll-margin-top: 64px; }
.vol-head { max-width: var(--max); margin: 0 auto 32px; padding: 0 var(--gutter); }
.vol-n { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.vol h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; }
.vol-text { max-width: 44em; margin: 20px 0 0; font-size: 17px; opacity: .9; }
.vol-count { margin: 14px 0 0; font-size: 13px; opacity: .6; }
.show-todo .vol .todo { color: var(--ink); }

.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.strip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.spread {
  flex: none; height: clamp(200px, 28vw, 380px); padding: 0; border: 0; background: none; cursor: zoom-in;
  scroll-snap-align: start; border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / .18); transition: transform .2s ease;
}
.spread.tall { height: clamp(300px, 46vw, 600px); }
.spread:hover { transform: translateY(-4px); }
.spread img { height: 100%; width: auto; display: block; }

.t-role { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.t-role h2 em { color: var(--red); }
.t-role a { color: var(--blue); }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgb(19 19 78 / .94); }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; }
#lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; font: 300 52px/1 system-ui, sans-serif; padding: 8px 16px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; translate: 0 -50%; }
.lb-next { right: 8px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; color: #fff; font-size: 13px; opacity: .8; }
body.lb-open { overflow: hidden; }

@media (max-width: 960px) {
  .t-facts { grid-template-columns: repeat(2, auto); }
  .t-cols, .moves, .t-role { grid-template-columns: 1fr; }
  .books { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .books { grid-template-columns: repeat(2, 1fr); }
  #lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb-prev, .lb-next { top: auto !important; bottom: 4px; translate: none !important; }
}
