/* ===== Tokens ===== */
:root {
  --cream: #f7f0e3;
  --sand: #f1e6d4;
  --card: #fffaf2;
  --ink: #4a3426;
  --ink-body: #5c4636;
  --ink-soft: #7a6150;
  --brown: #7a4f30;
  --brown-dark: #4a3426;
  --olive: #5f7a3c;
  --green: #0a5500;
  --red: #ac0004;
  --orange: #d9822b;
  --line: #e4d6c2;

  --serif: "Gowun Batang", serif;
  --sans: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --noto: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hand: "Gaegu", cursive;

  --container: 1320px;
  --radius: 6px;
  /* buttons: green = main action, red = secondary action */
  --btn-green: #3f7f35;
  --btn-red: #cc4a4d;
  --label-bg: #d9534a;
  /* elevation: card > book cover > shelf */
  --shadow-card: 0 16px 32px -10px rgba(74, 51, 38, .32), 0 3px 8px rgba(74, 51, 38, .12);
  --shadow-book: drop-shadow(8px 0 10px rgba(74, 51, 38, .22)) drop-shadow(1px 1px 2px rgba(74, 51, 38, .25));
  --shadow-shelf: 0 12px 20px -6px rgba(74, 51, 38, .45), 0 3px 6px rgba(74, 51, 38, .25);
  --shadow-photo: 0 14px 28px -10px rgba(74, 51, 38, .45), 0 3px 8px rgba(74, 51, 38, .18);
  --shadow-label: 0 8px 18px rgba(140, 45, 35, .38), 0 2px 4px rgba(74, 51, 38, .3);
  --header-h: 58px; /* incl. 4px bottom border */
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 6px 22px; } /* compact: header */
.btn-green { background: var(--btn-green); }
.btn-green:hover { background: var(--green); }
.btn-red { background: var(--btn-red); }
.btn-red:hover { background: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ===== Labels & titles ===== */
/* every section label: same size, softly rounded, lifted */
.label {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  background: var(--label-bg);
  color: #fff;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  box-shadow: var(--shadow-label);
}
.section-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.5;
  color: var(--ink);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { position: relative; padding: 130px 0 140px; }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
/* card text: title 22 > body 17 > meta 15 */
.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
}
.meta { color: #a65a14; font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 4px solid var(--brown);
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
/* over the hero the header is see-through; it turns solid once the hero scrolls away */
.site-header.is-over-hero {
  /* translucent cream band so the video shows through */
  background: rgba(247, 240, 227, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(122, 79, 48, .25);
  box-shadow: 0 2px 12px rgba(74, 51, 38, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(var(--header-h) - 4px);
}
.brand { flex: 0 0 151px; }
.brand img { width: 73px; height: 27px; object-fit: contain; }
.gnb { display: flex; align-items: center; gap: 14px; }
.gnb a { font-size: 17px; line-height: 1.5; color: var(--ink); white-space: nowrap; -webkit-text-stroke: .45px currentColor; } /* Gowun Dodum has no bold weight, so thicken the strokes */
.gnb a + a::before {
  content: "·";
  margin-right: 14px;
  color: #c9b394;
}
.gnb a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-login { font-size: 14px; }
/* same stroke thickening as the menu */
.link-login,
.header-actions .btn { -webkit-text-stroke: .45px currentColor; }

/* ☰ menu button: only on tablet and phone */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.menu-toggle span { display: block; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .25s, opacity .25s; }
.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .menu-toggle { display: flex; order: 3; }
  .header-actions { margin-left: auto; }
  .gnb {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--cream);
    border-bottom: 4px solid var(--brown);
    box-shadow: 0 14px 24px rgba(74, 51, 38, .18);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-menu-open .gnb { visibility: visible; opacity: 1; transform: none; }
  .gnb a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .gnb a:last-child { border-bottom: 0; }
  .gnb a + a::before { content: none; }
  /* solid header while the menu is open, even over the hero */
  .site-header.is-menu-open { background: var(--cream); border-bottom-color: var(--brown); }
}

/* ===== Hero ===== */
/* tall scroll track: the hero stays pinned while scrolling scrubs through the video */
.hero-track {
  position: relative;
  /* slides up under the transparent header */
  margin-top: calc(-1 * var(--header-h));
}
.hero {
  position: sticky;
  top: 0;
  /* fills the whole screen */
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  background: #9fcdf0;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* show the sky in full; any cropping comes off the ground at the bottom */
  object-position: 50% 0%;
}
/* positions follow the 1920×1080 frame, expressed in vw so they scale with it */
.hero-copy {
  position: absolute;
  left: 10.94vw;
  top: max(8.33vw, calc(var(--header-h) + 28px)); /* never tucked under the see-through header */
  z-index: 2;
}
.hero-tagline, .hero-title { perspective: 600px; }
/* scene title turns once around the Y axis when it changes, then 머물나무 follows */
.hero-tagline span, .hero-title span { display: inline-block; transform-origin: 50% 50%; }
.hero-tagline span.is-flipping { animation: title-flip .8s ease-in-out; }
.hero-title span.is-flipping { animation: title-spin 1s ease-in-out; }
@keyframes title-spin {
  from { transform: rotateY(0); }
  to { transform: rotateY(360deg); }
}
@keyframes title-flip {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(90deg); }
  50.01% { transform: rotateY(-90deg); }
  100% { transform: rotateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tagline span.is-flipping,
  .hero-title span.is-flipping { animation: none; }
}
.hero-tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(12px, 1.05vw, 20px); /* same as .hero-sub; 37% smaller than the original 18px / 1.67vw / 32px */
  line-height: 1.5;
  color: #000;
}
.hero-title {
  /* gaps in em so the staggered lines keep the original 1920 layout at any text size / screen */
  margin: .16em 0 0 1.33em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(35px, 4.2vw, 81px); /* 37% smaller than the original 56px / 6.67vw / 128px */
  line-height: 1;
  letter-spacing: .04em;
  color: #2b2b29;
}
.hero-sub {
  margin: .75em 0 0 13.7em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(12px, 1.05vw, 20px); /* matches .hero-tagline */
  line-height: 1.25;
  color: #000;
}
.hero-actions {
  position: absolute;
  left: 61px;
  bottom: 37px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

/* Sound bar (Figma: SoundBar, State=Off / On) */
.sound-bar {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.sound-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding-bottom: 11px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  transition: background .2s, border-color .2s;
}
.sound-icon i {
  width: 3px;
  height: 6px;
  border-radius: 1.5px;
  background: #fff;
  opacity: .85;
}
.sound-icon i:nth-child(2) { height: 10px; }
.sound-info {
  width: 230px;
  height: 20px;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}
.sound-info span { display: inline-block; }
.sound-bar[aria-pressed="true"] { background: rgba(0, 0, 0, .36); }
.sound-bar[aria-pressed="true"] .sound-icon { background: #fff; border-color: #fff; }
.sound-bar[aria-pressed="true"] .sound-icon i {
  background: #2b2b29;
  opacity: 1;
  animation: eq .9s ease-in-out infinite alternate;
}
.sound-bar[aria-pressed="true"] .sound-icon i:nth-child(1) { height: 8px; }
.sound-bar[aria-pressed="true"] .sound-icon i:nth-child(2) { height: 14px; animation-delay: -.3s; }
.sound-bar[aria-pressed="true"] .sound-icon i:nth-child(3) { height: 10px; animation-delay: -.6s; }
.sound-bar[aria-pressed="true"] .sound-info { color: #fff; }
.sound-bar[aria-pressed="true"] .sound-info span { animation: marquee 12s linear infinite; }
/* Scroll button: mouse icon with a moving wheel, sits above the video bar */
.scroll-btn {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  translate: -50% 0;
  animation: scroll-bob 2s ease-in-out infinite;
}
.scroll-mouse {
  position: relative;
  width: 26px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.scroll-mouse i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}
.scroll-text { font-size: 12px; letter-spacing: .2em; }
.scroll-btn:hover .scroll-mouse { background: rgba(255, 255, 255, .18); }
@keyframes scroll-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes scroll-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-btn, .scroll-mouse i { animation: none; } }

/* Hero video controls (bottom centre) */
.video-bar {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 32px));
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  transform: translateX(-50%);
}
.vb-play, .vb-speed {
  flex: none;
  display: grid;
  place-items: center;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: transparent;
  color: #fff;
  transition: background .2s, color .2s;
}
.vb-play { width: 36px; }
.vb-speed { min-width: 44px; padding: 0 10px; font-size: 13px; }
.vb-play:hover, .vb-speed:hover { background: #fff; color: #2b2b29; }
.vb-play .i-play { display: none; }
.vb-play.is-paused .i-play { display: block; }
.vb-play.is-paused .i-pause { display: none; }
.vb-time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.vb-seek {
  flex: 1;
  min-width: 0;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .35) var(--p, 0%));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.vb-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.vb-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
@keyframes eq { to { transform: scaleY(.45); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .sound-bar[aria-pressed="true"] .sound-icon i,
  .sound-bar[aria-pressed="true"] .sound-info span { animation: none; }
}

/* ===== 01 This week ===== */
/* book on its shelf on the left, heading + card stacked on the right */
.week-layout {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: 80px;
  align-items: stretch;
}
.week-left { display: flex; flex-direction: column; align-items: flex-start; }
.week-book { width: 100%; flex: 1; justify-content: flex-end; margin-top: 24px; }
.week-book img { width: 440px; margin-bottom: -24px; } /* same depth ratio as the new-books shelf */
/* right column matches the book's height; the card fills down to the shelf */
.week-right { display: flex; flex-direction: column; align-items: flex-start; }
.week-right .week-card { flex: 1; }
.shelf-book { display: flex; flex-direction: column; align-items: center; }
/* the book's bottom edge sinks into the board's top face so it stands on the shelf */
.shelf-book img { position: relative; z-index: 1; width: 270px; margin-bottom: -9px; filter: var(--shadow-book); }
/* watercolour wooden board image */
.shelf {
  width: 100%;
  height: 22px;
  background: url("../images/common/shelf-board.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 8px rgba(74, 51, 38, .35));
}
/* card runs from the section title down to the shelf */
.week-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  margin-top: 32px;
  padding: 40px;
}
.week-card .btn-row { margin-top: auto; padding-top: 26px; } /* one line of space above the buttons */
.week-card-title {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.week-info { display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.week-info li:last-child { color: var(--ink-body); }

/* ===== 02/03 Author ===== */
#author { padding: 140px 0 96px; }
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 32px;
}
.author-layout .card { margin-top: 20px; height: calc(100% - 59px); } /* label 39px + 20px gap */
.author-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
}
.author-photo { flex: 0 0 260px; width: 260px; height: 260px; transform: scale(1.015); }
.author-body { display: flex; flex-direction: column; gap: 10px; }
.desc { color: var(--ink-body); font-size: 17px; }
.seats { color: var(--ink-soft); font-size: 15px; }

.next-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; }
.next-top { display: flex; align-items: flex-end; gap: 20px; width: 100%; }
.shelf-book-sm { flex: 0 0 270px; }
.shelf-book-sm img {
  width: 230px;
  height: 307px;
  object-fit: cover;
}
.next-info { display: flex; flex-direction: column; gap: 6px; }
.next-info .meta { color: var(--ink-soft); font-size: 15px; }
.author-name { color: var(--ink-body); font-size: 15px; }

/* ===== 04 New books ===== */
#new-books { padding: 96px 0; }
.book-tabs { display: flex; gap: 4px; }
.book-tab {
  padding: 12px 18px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: #eadcc7;
  color: var(--ink-soft);
  font-size: 15px;
}
.book-tab.is-active { background: var(--brown); color: #fff; }
.bookshelf { position: relative; margin-top: 36px; }
.book-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 182px;
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 24px;
  scrollbar-width: none;
}
.book-track::-webkit-scrollbar { display: none; }
.book { scroll-snap-align: start; }
.book[hidden] { display: none; }
.badge-new {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
}
.book-cover {
  display: flex;
  align-items: flex-end;
  height: 252px;
  margin-top: 8px;
}
.book-cover img {
  /* every cover the same height on the shelf */
  width: auto;
  max-width: 100%;
  height: 240px;
  max-height: 252px;
  object-fit: contain;
  object-position: bottom;
  filter: var(--shadow-book);
}
.book-track { position: relative; z-index: 1; }
/* covers drawn at an angle (bottom edge rising to the right) sit a little lower */
.book-cover img.cover-sink {
  /* turned a little on the Y axis so it reads as set back on the shelf */
  transform-origin: 0% 100%;
  transform: perspective(700px) rotateY(-14deg) translateY(3px) scale(.97);
}
.bookshelf .shelf-long { position: absolute; left: 0; right: 0; top: 273px; } /* 9px under the covers */
.book h3 { margin-top: 46px; font-size: 16px; font-weight: 400; line-height: 1.45; }
.book p { margin: 4px 0 4px; color: var(--ink-soft); font-size: 14px; }
.book .btn { margin-top: 4px; }
.shelf-next {
  position: absolute;
  right: 28px;
  top: 150px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(74, 52, 40, .25);
  color: #fff;
  line-height: 20px;
}
.empty-msg { margin-top: 40px; text-align: center; color: var(--ink-soft); }

/* ===== 06 Cafe ===== */
.cafe { padding: 140px 0 96px; }
.cafe-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 0 16px;
}
.cafe-photo { flex: 0 1 696px; aspect-ratio: 696 / 403; overflow: hidden; border-radius: var(--radius); background: #1c120c; box-shadow: var(--shadow-photo); }
.cafe-photo img { width: 100%; height: 100%; object-fit: cover; }
.cafe-body {
  flex: 0 1 668px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--noto);
}
.cafe-title { font-family: var(--noto); font-weight: 700; font-size: 32px; line-height: 1.5; color: #2b2b29; }
.cafe-lead { color: #4a4a45; font-size: 15px; }
/* menu split into 커피 / 음료 / 디저트 columns */
.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  margin-top: 6px;
}
.menu-cat {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.menu-list { display: flex; flex-direction: column; width: 100%; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #d6d6d0;
  font-size: 15px;
  line-height: 1.6;
  color: #2b2b29;
}
.menu-list li span:last-child { color: #5f5f59; }

/* ===== 05 Under the tree ===== */
.under-tree { padding: 96px 0 140px; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.tile {
  position: relative;
  border-radius: 4px;
  box-shadow: var(--shadow-photo);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}
.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32), 0 2px 5px rgba(0, 0, 0, .22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-lg { font-size: 15px; }
/* photo tiles: coloured category badge top-left, white caption on a dark fade at the bottom */
.tile-photo { cursor: zoom-in; }
.tile-photo > img { transition: transform .4s; }
.tile-photo:hover > img { transform: scale(1.04); }
.tile-photo:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* photo opened from a tile */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox img {
  position: fixed;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.lightbox-caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 5vh;
  padding: 0 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  animation: lb-fade .45s .2s both;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  animation: lb-fade .45s .2s both;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.lightbox.is-closing .lightbox-caption,
.lightbox.is-closing .lightbox-close { animation: lb-fade .2s reverse both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tile-photo > img { transition: none; }
}

.tile-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  pointer-events: none;
}
.tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .2);
}
.b-green { background: #4f8a3c; }
.b-brown { background: #6b4a33; }
.b-red { background: #d9534a; }
.b-orange { background: #e08a2e; }
.tile-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.hand {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

/* code-drawn poster tiles (notice / event) */
.tile-poster { color: var(--card); }
.tile-poster::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid currentColor;
  pointer-events: none;
}
.tile-kicker { font-size: 12px; }
.tile-poster h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.25; }
.tile-note { font-family: var(--noto); font-size: 15px; line-height: 1.6; color: #fff; }
.tile-foot { font-size: 13px; }
.t-dark { background: var(--brown-dark); }
.t-orange { background: var(--orange); }
.t-orange h3 { margin-top: auto; margin-bottom: auto; }

/* contest poster sits inside a framed mat */
.tile-contest { background: #dfe6d1; padding: 0; }
.tile-contest::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 2px solid #3f5a2a;
  pointer-events: none;
}
.tile-contest > img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }

/* ===== Sub page: 나눔서가 ===== */
.gnb a[aria-current="page"] { color: var(--green); }
.sub-hero { padding: 110px 0 90px; background: var(--cream); }
.sub-lead { max-width: 760px; margin: 14px 0 28px; color: var(--ink-body); font-size: 17px; line-height: 1.7; }
.share-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.share-steps li { padding: 28px 24px; }
.share-steps b {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--btn-red); color: #fff; font-size: 16px;
}
.share-steps h3 { margin: 14px 0 8px; font-family: var(--serif); font-size: 22px; }
.share-steps p, .guide-card p { color: var(--ink-body); font-size: 16px; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.guide-card { padding: 28px 26px; }
.guide-card h3 { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); font-family: var(--serif); font-size: 20px; }
.accept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.accept { padding: 24px 26px; border-radius: var(--radius); }
.accept.ok { background: #e5eedb; }
.accept.no { background: #f6e1dc; }
.accept h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 18px; }
.accept li { padding: 4px 0 4px 22px; position: relative; color: var(--ink-body); }
.accept.ok li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.accept.no li::before { content: "×"; position: absolute; left: 2px; color: var(--red); font-weight: 700; }

.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.donate-contact li { padding: 4px 0; color: var(--ink-body); }
.donate-contact a { color: var(--ink); text-decoration: underline; }
/* photo filling the space beside the form */
.donate-photo {
  width: 100%;
  aspect-ratio: 1;
  margin-top: 32px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-photo);
  transform: rotate(-1.5deg);
}
.donate-form { display: flex; flex-direction: column; gap: 22px; padding: 36px; }
.donate-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.donate-form legend { margin-bottom: 12px; padding-bottom: 8px; width: 100%; border-bottom: 2px solid var(--orange); font-family: var(--serif); font-size: 19px; font-weight: 700; }
.donate-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink); }
.donate-form label small { color: var(--ink-soft); font-size: 13px; }
.donate-form input:not([type="radio"]):not([type="checkbox"]), .donate-form select, .donate-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #dccdb8; border-radius: 6px;
  background: #fff; font: inherit; font-size: 16px; color: var(--ink);
}
.donate-form input:focus, .donate-form select:focus, .donate-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.donate-form .choice { flex-direction: row; align-items: center; gap: 8px; }
.donate-form .agree { align-items: flex-start; font-size: 14px; color: var(--ink-body); }
.donate-form .agree input { margin-top: 3px; }
.req { color: var(--red); }
.donate-form [hidden] { display: none; }
.form-error { padding: 10px 14px; border-radius: 6px; background: #f6e1dc; color: var(--red); font-size: 14px; }
.donate-form .btn { align-self: flex-start; }
.donate-done { text-align: center; padding: 20px 0; }
.donate-done h3 { margin-bottom: 12px; font-family: var(--serif); font-size: 26px; }
.donate-done p { color: var(--ink-body); line-height: 1.8; }
.donate-card-preview { display: inline-block; margin: 18px 0 24px; padding: 10px 18px; border: 1px dashed var(--orange); border-radius: 6px; font-family: var(--hand); font-size: 20px; }
/* one photo with the reading-boy sticker stuck over its corner */
.guide-photo { margin: 36px 0 0; height: 260px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.guide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.sub-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.hero-photo { position: relative; margin: 0 40px 40px 0; }
.hero-photo > img:first-child {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-photo);
  transform: rotate(2deg);
}
.sticker-boy {
  position: absolute;
  left: -70px;
  bottom: -50px;
  width: 210px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 6px 8px rgba(74, 51, 38, .3)) drop-shadow(0 1px 1px rgba(74, 51, 38, .25));
  transition: transform .3s;
}
.hero-photo:hover .sticker-boy { transform: rotate(-4deg) scale(1.04); }
/* donor benefits: 나눔 포인트 + tiers */
.points-box { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center; margin-top: 8px; padding: 30px 34px; }
.points-badge {
  grid-row: span 2;
  padding: 22px 26px;
  border-radius: 12px;
  background: var(--btn-red);
  color: #fff;
  font-size: 18px;
  text-align: center;
  box-shadow: var(--shadow-label);
}
.points-badge b { display: block; font-size: 34px; line-height: 1.2; }
.points-use { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.points-use li { color: var(--ink-body); font-size: 15px; }
.points-use b { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.points-example { color: var(--ink-soft); font-size: 14px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.tier-card { padding: 28px 26px; border-top: 5px solid var(--tier, var(--btn-green)); }
.tier-1 { --tier: #9dc27a; }
.tier-2 { --tier: #5f9a45; }
.tier-3 { --tier: #2f6b25; }
.tier-icon { font-size: 30px; }
.tier-card h3 { margin-top: 6px; font-family: var(--serif); font-size: 22px; }
.tier-need { margin: 2px 0 12px; color: var(--tier); font-weight: 700; font-size: 14px; }
.tier-card li { padding: 4px 0 4px 20px; position: relative; color: var(--ink-body); font-size: 15px; }
.tier-card li::before { content: "✓"; position: absolute; left: 0; color: var(--tier); font-weight: 700; }
.tier-card li b { color: var(--ink); }
.gifts { margin-top: 44px; }
.gifts-title { margin-bottom: 16px; font-family: var(--serif); font-size: 22px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gift { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-photo); }
.gift img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s; }
.gift:hover img { transform: scale(1.04); }
.gift figcaption { padding: 14px 18px 16px; }
.gift figcaption b { display: block; font-family: var(--serif); font-size: 18px; }
.gift figcaption span { color: var(--ink-soft); font-size: 14px; }
.points-notice { padding: 14px 18px; border-radius: 8px; background: #e5eedb; color: var(--ink-body); font-size: 14px; line-height: 1.7; }
.points-notice b { color: var(--ink); font-size: 16px; }
.points-notice a { color: var(--green); text-decoration: underline; }
.donate-points { margin-top: 10px; font-size: 18px; }
.donate-points b { color: var(--red); }
.tax-notes { margin-top: 22px; color: var(--ink-soft); font-size: 14px; }
.tax-notes li { padding: 3px 0 3px 14px; position: relative; }
.tax-notes li::before { content: "·"; position: absolute; left: 2px; }
.tax-notes a { text-decoration: underline; }
@media (max-width: 1024px) {
  .share-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-grid { grid-template-columns: minmax(0, 1fr); }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-box { grid-template-columns: minmax(0, 1fr); }
  .points-badge { grid-row: auto; justify-self: start; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .donate-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sub-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 360px; margin-left: 60px; }
}
@media (max-width: 640px) {
  .sub-hero { padding: 72px 0 56px; }
  .share-steps, .accept-grid, .field-row, .points-use, .gift-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 260px; margin-left: 50px; }
  .sticker-boy { width: 150px; left: -50px; }
  .guide-photo { height: 180px; }
  .donate-photo { max-width: 320px; }
  .donate-form { padding: 24px 20px; }
}

/* ===== Sub page: 프로그램 예약 ===== */
.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin-top: 40px; }
.program-card { position: relative; display: flex; flex-direction: column; overflow: visible; }
.program-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.program-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
/* window photo: drop the top so the view outside and the book on the sill both show */
.program-photo img.crop-bottom { object-position: center 88%; }
.program-card:hover .program-photo img { transform: scale(1.04); }
.program-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 26px 28px 28px; }
.program-body .tile-badge { position: static; }
.program-body h3 { font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.program-when { color: #a65a14; font-size: 15px; }
.program-body > p:not(.program-when) { color: var(--ink-body); font-size: 16px; line-height: 1.7; }
.program-meta { margin: 4px 0 10px; color: var(--ink-soft); font-size: 14px; }
.program-meta li { padding: 2px 0; }
.program-body .btn { margin-top: auto; }
/* kids sticker sitting on the top edge of the right-hand card's photo */
.program-card .sticker-kids {
  position: absolute;
  top: -124px; /* their seat lands on the card's top edge */
  right: 36px;
  z-index: 3;
  width: 180px;
  transform-origin: 50% 85%;
  filter: drop-shadow(0 6px 6px rgba(74, 51, 38, .3)) drop-shadow(0 1px 1px rgba(74, 51, 38, .25));
  cursor: pointer;
}
.program-card .sticker-kids:hover { animation: kids-bounce .7s ease-in-out infinite; }
@keyframes kids-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-10px) rotate(-3deg); }
  50% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(-6px) rotate(3deg); }
}
/* leave room above the first row for the sticker */
.program-list { padding-top: 70px; }
@media (max-width: 1024px) {
  .sticker-tree { width: 280px; opacity: .9; }
  .program-list { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 640px) {
  .program-card .sticker-kids { width: 130px; top: -90px; right: 20px; }
  .program-body { padding: 22px 20px; }
}

/* 머물나무 sticker aligned to the right edge of the content area */
.sub-hero-sticker { position: relative; }
.sticker-tree {
  position: absolute;
  right: 56px; /* well inside the right inner edge, clear of the rotation overhang */
  bottom: -38px; /* sits about two lines above the line into the next section (section padding 90px) */
  width: 400px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 8px 10px rgba(74, 51, 38, .3)) drop-shadow(0 1px 1px rgba(74, 51, 38, .25));
  transform-origin: 50% 90%;
  cursor: pointer;
}
.sticker-tree:hover { animation: tree-wiggle .5s ease-in-out infinite; }
@keyframes tree-wiggle {
  0%, 100% { transform: rotate(-4deg); }
  25% { transform: rotate(-7deg) translateY(-4px); }
  75% { transform: rotate(-1deg) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker-tree:hover, .program-card .sticker-kids:hover { animation: none; }
}
.sub-hero-sticker .sub-lead { max-width: 640px; }

/* booking modal */
.booking-modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.booking-modal::backdrop { background: rgba(30, 20, 14, .55); backdrop-filter: blur(2px); }
.booking-modal[open] { animation: modal-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.booking-title { font-family: var(--serif); font-size: 26px; }
.booking-lead { margin: 6px 0 22px; color: var(--ink-body); font-size: 15px; }
.booking-modal .donate-form { padding: 0; box-shadow: none; background: none; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(74, 51, 38, .08);
  font-size: 26px;
  line-height: 1;
}
.join-when { margin-top: -4px; color: #a65a14; font-size: 14px; }
.reserve-book { padding: 12px 16px; border-radius: 6px; background: var(--sand); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.modal-close:hover { background: rgba(74, 51, 38, .16); }
@media (max-width: 640px) {
  .sticker-tree { position: static; display: block; width: 220px; margin: 0 0 16px auto; transform: rotate(-4deg); }
  .booking-modal { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { .booking-modal[open] { animation: none; } }

/* ===== 로그인 · 회원가입 ===== */
.auth-modal { width: min(520px, calc(100% - 32px)); }
.auth-form[hidden], .auth-done[hidden] { display: none; } /* .donate-form sets display: flex */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 22px; border-bottom: 2px solid var(--line); }
.auth-tabs button { padding: 12px 0; border: 0; background: none; font-size: 16px; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--btn-red); }
.auth-form .btn { align-self: stretch; }
.social-login { display: flex; flex-direction: column; gap: 10px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 700;
  -webkit-text-stroke: 0; transition: filter .2s;
}
.btn-social:hover { filter: brightness(.96); }
.btn-google { border: 1px solid #dadce0; background: #fff; color: #3c4043; }
.btn-google .social-logo { font-family: Arial, sans-serif; font-size: 18px; color: #4285f4; }
.btn-kakao { border: 0; background: #fee500; color: rgba(0, 0, 0, .85); }
.social-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; color: var(--ink-soft); font-size: 13px; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* 시연 모드 sign-in step */
.demo-sso { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.demo-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-soft); font-size: 12px; }
.demo-sso h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.demo-google .social-logo { font-family: Arial, sans-serif; color: #4285f4; font-weight: 700; }
.demo-sub { color: var(--ink-body); font-size: 15px; }
.demo-accounts { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo-accounts li + li { border-top: 1px solid var(--line); }
.demo-accounts button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: #fff; text-align: left; }
.demo-accounts button:hover { background: #f6f1e8; }
.demo-accounts small { display: block; color: var(--ink-soft); font-size: 13px; }
.demo-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #4285f4; color: #fff; font-weight: 700; }
.demo-consent { padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink-body); font-size: 15px; line-height: 2; }
.demo-back { align-self: center; border: 0; background: none; color: var(--ink-soft); font-size: 14px; text-decoration: underline; }
.auth-hint { margin-top: -6px; color: var(--ink-soft); font-size: 13px; }
.auth-switch { text-align: center; color: var(--ink-soft); font-size: 14px; }
.auth-switch button { border: 0; background: none; padding: 0; color: var(--green); font-size: 14px; text-decoration: underline; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); -webkit-text-stroke: .45px currentColor; }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-green); color: #fff; font-size: 14px; -webkit-text-stroke: 0; }
.logout { border: 0; background: none; padding: 6px 4px; color: var(--ink-soft); }
.logout:hover { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--brown-dark);
  border-top: 10px solid var(--brown);
  color: #f3e7d8;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr .8fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 14px; }
/* header logo turned white so the dark green mark doesn't sink into the brown footer */
.footer-logo img { width: 86px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo span { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.footer-slogan { margin-top: 16px; font-size: 14px; opacity: .8; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 231, 216, .35);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: #e9c992; border-color: #e9c992; color: var(--brown-dark); }
.social-text { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.footer-title {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #e9c992;
}
.footer-info { margin: 0; }
.footer-info div { display: flex; gap: 14px; font-size: 15px; line-height: 2; }
.footer-info dt { flex: 0 0 80px; opacity: .65; }
.footer-info dd { margin: 0; }
.footer-info a:hover,
.footer-links a:hover { color: #e9c992; }
.footer-links li { font-size: 15px; line-height: 2; }
/* embedded map, toned warm so it sits in the brown footer */
.footer-map {
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  background: #5c4637;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(.35) saturate(.85);
}
.footer-map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #e9c992;
}
.footer-map-link:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(243, 231, 216, .15);
  font-size: 13px;
  opacity: .6;
}

/* ===== Responsive ===== */
@media (max-width: 1440px) {
  .gnb { gap: 10px; }
  .gnb a + a::before { margin-right: 10px; }
  .gnb a { font-size: 16px; }
}

@media (max-width: 1280px) {
  .author-layout { grid-template-columns: minmax(0, 1fr) 440px; }
  .shelf-book-sm { flex-basis: 220px; }
  .shelf-book-sm img { width: 190px; height: auto; }
  .cafe-title { font-size: 28px; }
}

@media (max-width: 1024px) {
  .week-layout,
  .author-layout { grid-template-columns: minmax(0, 1fr); }
  .shelf-book { max-width: 380px; }
  .week-book { max-width: 420px; }
  .week-book img { width: 72%; }
  .cafe-layout { flex-direction: column; align-items: stretch; }
  .cafe-photo { flex-basis: auto; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section, #author, #new-books, .cafe, .under-tree { padding: 72px 0; }
  .brand { flex-basis: auto; }
  .brand img { width: 59px; height: 20px; }
  :root { --header-h: 54px; }
  .hero-media { object-position: 72% center; }
  .hero-copy { left: 16px; }
  /* phones: a touch larger so the small lines stay readable */
  .hero-tagline, .hero-sub { font-size: 14px; }
  .hero-title { font-size: 40px; }
  .hero-sub { margin-left: 7.6em; } /* the line is relatively bigger here, so a shorter indent ends it under 머물나무 as on desktop */
  .hero-actions { left: 16px; bottom: 88px; }
  .btn { padding: 7px 18px; }
  .btn-sm { padding: 5px 16px; }
  .sound-bar { left: 16px; right: auto; bottom: 24px; }
  .video-bar { bottom: 140px; }
  .scroll-text { display: none; }
  .vb-time { display: none; }
  .sound-info { width: 180px; }
  .author-card { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .author-photo { flex-basis: auto; width: 200px; height: 200px; }
  .next-top { flex-direction: column; align-items: flex-start; }
  .shelf-book-sm { flex-basis: auto; width: 100%; }
  .book-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; margin: 0; }
  .book-cover { height: 200px; }
  .book-cover img { max-height: 200px; }
  .bookshelf .shelf-long { top: 221px; }
  .cafe-title { font-size: 24px; }
  .menu { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tile { padding: 22px; }
  .tile-poster h3 { font-size: 22px; }
  .tile-note { display: none; }
  .tag, .tag-lg { font-size: 11px; }
  .hand { font-size: 16px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-bottom { flex-direction: column; }
}

/* Every screen shows the hero like the desktop: the video fills the whole screen,
   the title sits top-left and the controls sit over the picture at the bottom. */

/* tablet & small laptop: the centred video bar would sit on the hero buttons — lift it */
@media (max-width: 1024px) {
  /* narrower screens zoom into the picture, so the tree's leaves sit behind the title:
     a soft light glow keeps the dark letters readable on any background */
  .hero-copy { text-shadow: 0 0 4px rgba(255, 255, 255, .9), 0 0 12px rgba(255, 255, 255, .75), 0 0 24px rgba(255, 255, 255, .5); }
  .video-bar { bottom: 96px; }
  .scroll-btn { bottom: 164px; }
}
/* phones: stack from the bottom — sound bar, hero buttons, video bar, scroll button */
@media (max-width: 640px) {
  .video-bar { bottom: 140px; }
  .scroll-btn { bottom: 204px; }
}
