:root {
  --ink: #111111;
  --paper: #fffefa;
  --paper-deep: #f7f2e6;
  --accent: #f2ca52;
  --muted: #6e6a62;
  --rule: rgba(17, 17, 17, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body > noscript img {
  display: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  min-height: 86px;
  padding: 10px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 176px;
  height: 62px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  font-family: var(--serif);
  font-size: 0.98rem;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-switch a {
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.language-switch a.active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-block: clamp(64px, 9vw, 132px);
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 690px;
  font-size: clamp(3.1rem, 5.3vw, 5.3rem);
  line-height: 0.91;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: 0.98;
}

.lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: #36332d;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  align-items: center;
  margin-top: 42px;
  gap: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--accent);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.text-link {
  border-bottom: 1px solid var(--ink);
  padding-block: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: 16px 16px 0 var(--paper-deep);
}

.hero-art::before {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  width: 45px;
  height: 6px;
  background: var(--accent);
  content: "";
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.hero-art figcaption {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.67rem;
}

.edition-stamp {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 25px;
  font-size: 0.64rem;
  line-height: 1.3;
  text-align: right;
}

.joke-section {
  scroll-margin-top: 100px;
  padding-block: clamp(90px, 12vw, 170px);
  border-top: 1px solid var(--rule);
  background: #f4f0e8;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 80px;
}

.section-heading > p {
  margin: 0 0 10px;
  color: #4d4840;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
}

.joke-frame {
  margin-top: 64px;
}

.joke-frame > img {
  width: 100%;
  border: 1px solid var(--ink);
  background: white;
}

.joke-caption {
  display: grid;
  grid-template-columns: 1fr;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--paper);
}

.joke-caption blockquote {
  min-height: 225px;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
}

.joke-caption blockquote + blockquote {
  border-left: 1px solid var(--ink);
}

.joke-caption span {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.joke-caption p {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.45;
}

.book-section {
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  scroll-margin-top: 100px;
  padding-block: clamp(100px, 13vw, 180px);
  gap: clamp(70px, 10vw, 140px);
}

.book-cover-wrap {
  position: relative;
  isolation: isolate;
  padding: 26px;
}

.book-shadow {
  position: absolute;
  z-index: -1;
  inset: 50px 0 0 50px;
  background: var(--accent);
}

.book-cover {
  width: 100%;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: 0 24px 40px rgba(44, 34, 16, 0.16);
}

.book-description {
  max-width: 620px;
  margin: 34px 0;
  color: #3f3a32;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
}

.book-facts {
  margin: 38px 0 0;
  border-top: 1px solid var(--ink);
}

.book-facts div {
  display: grid;
  grid-template-columns: 54px 1fr;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}

.book-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.book-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.03rem;
}

.availability {
  display: flex;
  align-items: flex-start;
  margin-top: 34px;
  padding: 20px;
  gap: 14px;
  background: var(--paper-deep);
}

.availability p {
  margin: 0;
  color: #47423b;
  font-size: 0.76rem;
  line-height: 1.55;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--ink);
}

.goodbye-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  padding: clamp(70px, 9vw, 130px) max(24px, calc((100vw - 1180px) / 2));
  gap: clamp(40px, 7vw, 90px);
  border-top: 1px solid var(--ink);
  background: var(--paper-deep);
}

.goodbye-copy p:last-child {
  max-width: 470px;
  color: #49443d;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.65;
}

.goodbye-section > img {
  width: 100%;
  border: 1px solid var(--ink);
  background: white;
}

footer {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  min-height: 140px;
  padding: 30px clamp(24px, 5vw, 72px);
  gap: 30px;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
}

footer img {
  width: 170px;
  padding: 8px;
  background: white;
}

footer p {
  margin: 0;
}

footer p:nth-child(3) {
  color: #c9c5bc;
  text-align: right;
}

.rights-text {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #c9c5bc;
  line-height: 1.55;
}

html[lang="ja"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] .lead,
html[lang="ja"] .section-heading > p,
html[lang="ja"] .joke-caption p,
html[lang="ja"] .book-description,
html[lang="ja"] .book-facts dd,
html[lang="ja"] .goodbye-copy p:last-child {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0;
}

.reveal-copy {
  animation: copy-in 340ms ease both;
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 4px 0 10px;
    gap: clamp(16px, 5vw, 34px);
    flex-wrap: wrap;
  }

  .hero,
  .book-section,
  .goodbye-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-art {
    max-width: 720px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .book-cover-wrap {
    max-width: 680px;
  }

  .goodbye-copy {
    max-width: 700px;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 74px;
    padding: 6px 16px;
  }

  .main-nav {
    padding-bottom: 8px;
    gap: 10px 20px;
    font-size: 0.78rem;
  }

  .brand img {
    width: 142px;
    height: 56px;
  }

  .language-switch {
    max-width: 190px;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1;
  }

  .language-option {
    gap: 4px;
  }

  .hero {
    padding-block: 54px 82px;
    gap: 52px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  h2 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .lead {
    margin-top: 28px;
  }

  .hero-art {
    box-shadow: 9px 9px 0 var(--paper-deep);
  }

  .joke-caption {
    grid-template-columns: 1fr;
  }

  .joke-caption blockquote {
    min-height: 0;
  }

  .joke-caption blockquote + blockquote {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .book-section {
    gap: 58px;
  }

  .book-cover-wrap {
    padding: 14px;
  }

  .book-shadow {
    inset: 34px 0 0 34px;
  }

  .goodbye-section {
    padding-inline: 18px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer p:nth-child(3) {
    text-align: left;
  }
}

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

/* Three issues and accessible full-spread viewer. */

.catalog{padding-block:70px}.catalog-intro h2{font-size:clamp(2.8rem,5vw,5rem)}.issue-jumps{display:flex;flex-wrap:wrap;gap:24px;margin:28px 0 0}
.issue-block{border-top:1px solid var(--rule);margin-top:60px;scroll-margin-top:180px}.issue-block .book-section{padding-block:70px;gap:60px}.issue-block h2{font-size:clamp(2.5rem,4vw,4.7rem)}
.book-cover-wrap picture{display:block}.samples{padding-bottom:40px;scroll-margin-top:180px}.sample{margin:0 0 65px}.sample h3{font:400 1.6rem var(--serif);margin:0 0 22px}.sample picture{display:block}.sample img{width:100%;height:auto;object-fit:contain}.sample .spread{background:#fff;border:1px solid var(--rule)}.mobile-pages{display:none}.sample-tools{display:flex;align-items:start;gap:24px;flex-wrap:wrap;margin-top:20px}.sample-tools .text-link,summary{font-size:16px;line-height:1.5}details{flex:1;min-width:220px}summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.dialogue{white-space:pre-wrap;font:18px/1.7 var(--mono);padding:24px;background:var(--paper-deep);margin-top:14px}.pending{font:16px/1.6 var(--mono);background:var(--paper-deep);padding:18px}
.image-dialog{width:96vw;max-width:1600px;height:94vh;max-height:94vh;padding:0;border:1px solid #111;background:#fff}.image-dialog::backdrop{background:rgba(0,0,0,.8)}.zoom-bar{display:flex;flex-wrap:wrap;gap:12px;padding:12px;background:#fff;border-bottom:1px solid #777}.zoom-bar button{padding:10px 14px;background:#fff;color:#111;border:1px solid #111;font:16px Arial;cursor:pointer}.zoom-frame{overflow:auto;height:calc(100% - 78px);overscroll-behavior:contain}.zoom-frame img{display:block;width:100%;max-width:none;height:auto}.zoom-frame.expanded img{width:2400px;max-width:none}.zoom-frame:focus-visible{outline:3px solid #f2ca52;outline-offset:-3px}
@media(max-width:700px){.spread{display:none}.mobile-pages{display:grid;gap:14px}.mobile-pages picture{border:1px solid var(--rule);background:white}.issue-block .book-section{gap:28px;padding-block:45px}.catalog{padding-block:40px}.sample-tools{display:block}.sample-tools details{margin-top:20px}.sample{margin-bottom:48px}.image-dialog{height:94vh;width:98vw}.zoom-frame{height:calc(100% - 120px)}}
.image-dialog{overflow:hidden}.zoom-frame{min-height:0}.dialogue{overflow-wrap:anywhere}.issue-block .book-copy{min-width:0}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
