:root {
  --paper: #fbf7f0;
  --ink: #1e1a16;
  --accent: #c4553d;
  --line: rgba(30, 26, 22, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(251, 247, 240, 0.96);
  z-index: 20;
}

.mast strong { flex: 1; font-size: 1.15rem; letter-spacing: 0.06em; }

#mb {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
}

.mn { display: flex; gap: 18px; flex-wrap: wrap; }
.mn a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 0.88rem; font-family: system-ui, sans-serif; }
.mn a:hover { color: var(--accent); }

@media (max-width: 720px) {
  #mb { display: inline-block; }
  .mn {
    width: 100%;
    flex-direction: column;
    display: none;
    padding: 8px 0 12px;
  }
  .mn.open { display: flex; }
}

.shell {
  display: grid;
  grid-template-columns: 48px 1fr;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .shell { grid-template-columns: 24px 1fr; }
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  gap: 0;
}

.timeline .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline .line {
  width: 2px;
  flex: 1;
  min-height: 72px;
  background: linear-gradient(var(--accent), var(--line));
}

main { padding: 1.5rem clamp(14px, 3vw, 28px) 3rem 0; }

.hero-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 2.5rem;
}

.cover {
  border-radius: 4px 14px 4px 14px;
  overflow: hidden;
  box-shadow: 16px 16px 0 var(--line);
}

.cover img {
  width: 100%;
  height: min(48vh, 400px);
  object-fit: cover;
  display: block;
  background: #ccb;
}

.blurb h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.22;
  margin: 0 0 14px;
}

.blurb p {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.75;
  color: #3d3934;
}

@media (max-width: 840px) {
  .hero-book { grid-template-columns: 1fr; }
}

.spine-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 2.5rem;
}

.spine-row figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.spine-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.spine-row figcaption {
  padding: 10px;
  font-size: 0.82rem;
  font-family: system-ui, sans-serif;
  font-weight: 650;
}

@media (max-width: 900px) {
  .spine-row { grid-template-columns: repeat(2, 1fr); }
}

.spread {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spread img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.caption {
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}

.caption h2 { margin-top: 0; font-size: 1.1rem; }

@media (max-width: 760px) {
  .spread { grid-template-columns: 1fr; }
}

.dual-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 2rem;
}

.dual-note article {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  font-family: system-ui, sans-serif;
  line-height: 1.7;
  font-size: 0.95rem;
}

.dual-note h2 { margin-top: 0; font-size: 1.05rem; }

@media (max-width: 700px) {
  .dual-note { grid-template-columns: 1fr; }
}

.legal {
  font-family: system-ui, sans-serif;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #4a4540;
  max-width: 720px;
}

.foot {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.87rem;
  font-family: system-ui;
  color: #666;
}

/* บล็อกนโยบายร่วม: ติดต่อ / นโยบายความเป็นส่วนตัว / ข้อกำหนด */
.policy-std-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(14px, 4vw, 32px);
  font-size: 0.93rem;
  line-height: 1.75;
}
.policy-std-wrap h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0 0 0.75rem;
}
.policy-std-wrap p { margin: 0 0 0.75rem; }
.policy-std-wrap p:last-child { margin-bottom: 0; }
.foot-pol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.foot-pol a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}