/* デザインの一服 — site styles.
   Tokens match templates/shared.css (weekly / carousel). Mobile first. */

@font-face {
  font-family: "Ippuku Sans";
  src: url("../fonts/sans.cc58c29f6c.woff2") format("woff2");
  font-weight: 400 700; /* build narrows the wght axis to 400–700 */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ippuku Serif";
  src: url("../fonts/serif.b55335ec83.woff2") format("woff2");
  font-weight: 600; /* static instance (build pins wght=600) */
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F0E8;
  --paper-deep: #EBE6DC;
  --ink: #1B1814;
  --ink-2: #4C4740;
  --ink-3: #6E685F; /* a touch darker than print --ink-3 (#7A746B) for small text contrast on screen */
  --line: #D5CFC4;
  --line-strong: #B8B1A5;
  --accent: #B13228;
  --forest: #141614;
  --cream: #F7F3EC;
  --metal: #C8C3BA;

  --sans: "Ippuku Sans", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Ippuku Serif", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --gutter: 22px;
  --measure: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }
.mark {
  font-style: normal;
  font-weight: 600;
  color: inherit;
  background-image: linear-gradient(to top, rgba(177, 50, 40, 0.28) 0%, rgba(177, 50, 40, 0.28) 35%, transparent 35%);
  background-repeat: no-repeat;
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--ink);
}
.head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand x" "nav nav";
  align-items: center;
  column-gap: 16px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0 16px;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.brand .wm {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
}
.x-follow {
  grid-area: x;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  padding: 7px 13px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}
.x-follow:hover { background: var(--accent); }
.site-nav {
  grid-area: nav;
  display: flex;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 9px 0 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---------- shared bits ---------- */
main { display: block; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  line-height: 1.5;
}
.kicker .en { letter-spacing: 0.16em; }
.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
}
.section-label .en-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 500;
}
.text-link:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1.3;
  padding: 13px 22px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
.btn:hover { background: var(--accent); }
.btn .arrow { font-weight: 400; }

.serif { font-family: var(--serif); }

/* Break Japanese headings at phrase boundaries (Chrome 119+; others fall back to normal). */
.hero-title, .issue-title, .page-title, .story h3, .contents .hl, .archive .title, .cta-title {
  word-break: auto-phrase;
}
.issue-meta .grp { white-space: nowrap; display: inline-block; margin-right: 1.1em; }

/* ---------- home: hero ---------- */
.hero {
  padding: 36px 0 44px;
}
.hero-kicker { margin-bottom: 14px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero-title a { text-decoration: none; }
.hero-title a:hover { color: var(--accent); }
.issue-meta {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 18px;
}
.issue-meta .sep { color: var(--line-strong); margin: 0 0.5em; }
.hero-intro {
  color: var(--ink-2);
  max-width: var(--measure);
  margin-bottom: 26px;
}
.contents {
  margin-top: 40px;
}
.contents ol { counter-reset: c; }
.contents li {
  border-top: 1px solid var(--line);
}
.contents li:last-child { border-bottom: 1px solid var(--line); }
.contents a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  column-gap: 8px;
  padding: 12px 0 13px;
  text-decoration: none;
}
.contents .no {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 3px;
}
.contents .cat {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  line-height: 1.6;
}
.contents .hl {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.contents a:hover .hl { color: var(--accent); }

/* ---------- home: archive + about ---------- */
.home-section { padding: 8px 0 48px; }
.archive li { border-bottom: 1px solid var(--line); }
.archive a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "vol date" "title title";
  column-gap: 14px;
  row-gap: 2px;
  padding: 14px 0 16px;
  text-decoration: none;
}
.archive .vol {
  grid-area: vol;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.archive .date {
  grid-area: date;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.archive .title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.archive a:hover .title { color: var(--accent); }
.archive-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
}
.about-blurb p {
  max-width: var(--measure);
  color: var(--ink-2);
  margin-bottom: 14px;
}

/* ---------- X CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  padding: 40px 0 44px;
}
.cta-band .kicker { color: var(--metal); margin-bottom: 10px; }
.cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cta-sub {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(247, 243, 236, 0.82);
  max-width: var(--measure);
  margin-bottom: 22px;
}
.cta-band .btn { background: var(--cream); color: var(--ink); }
.cta-band .btn:hover { background: #fff; color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-deep);
  padding: 34px 0 40px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.foot-grid {
  display: grid;
  gap: 22px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot-brand .wm { font-size: 17px; font-weight: 500; letter-spacing: 0.16em; color: var(--ink); }
.foot-en { font-size: 12px; letter-spacing: 0.18em; color: var(--ink-3); margin-top: 2px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { text-decoration: none; color: var(--ink); font-weight: 500; letter-spacing: 0.08em; }
.foot-nav a:hover { color: var(--accent); }
.colophon { font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.colophon p + p { margin-top: 4px; }

/* ---------- issue page ---------- */
.issue-head {
  padding: 34px 0 36px;
}
.issue-head .kicker { margin-bottom: 12px; }
.issue-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.issue-intro {
  color: var(--ink-2);
  max-width: var(--measure);
}
.issue-toc { margin-top: 30px; }

.stories { padding-bottom: 20px; }
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "meta" "title" "fig" "body";
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.story:first-child { border-top: 1px solid var(--ink); }
.story-meta {
  grid-area: meta;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 8px;
}
.story-meta .no { color: var(--ink); font-weight: 700; margin-right: 0.9em; letter-spacing: 0.08em; }
.story-meta .cat { color: var(--accent); font-weight: 700; letter-spacing: 0.14em; }
.story-meta .sep { color: var(--line-strong); margin: 0 0.45em; }
.story h3 {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.story-fig {
  grid-area: fig;
  margin-bottom: 20px;
}
.story-fig .frame {
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
  overflow: hidden;
}
.story-fig img { width: 100%; height: 100%; object-fit: cover; }
.story-fig figcaption {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.typo-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9%;
  background: var(--forest);
  color: var(--cream);
}
.typo-cover .typo-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--metal);
  margin-bottom: 4px;
}
.typo-cover .typo-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.story-body { grid-area: body; min-width: 0; }
.story .summary {
  color: var(--ink);
  max-width: var(--measure);
}
.note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}
.note-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 4px;
}
.note p { color: var(--ink-2); }
.source {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.source a { color: var(--accent); text-underline-offset: 3px; font-weight: 500; }
.source .ext { font-size: 0.9em; }

.issue-end {
  padding-top: 8px;
  padding-bottom: 52px;
}
.issue-end .rights {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
  max-width: var(--measure);
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 24px;
}
.pager { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; }

/* ---------- text pages (about / privacy / 404) ---------- */
.page-head { padding: 34px 0 26px; }
.page-head .kicker { margin-bottom: 10px; }
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: 0.06em;
}
.prose { max-width: var(--measure); padding-bottom: 56px; }
.prose .lede { font-size: 18px; line-height: 1.9; color: var(--ink); margin-bottom: 8px; }
.prose h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin: 40px 0 12px;
  line-height: 1.6;
}
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; }
.prose li {
  position: relative;
  padding-left: 1.1em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.82em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.prose dl { margin-bottom: 14px; }
.prose dt { font-weight: 700; color: var(--ink); margin-top: 12px; letter-spacing: 0.06em; }
.prose dd { color: var(--ink-2); }
.prose .updated { font-size: 13.5px; color: var(--ink-3); margin-top: 32px; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  body { font-size: 17.5px; }
  .head-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav x";
    column-gap: 40px;
  }
  .brand { padding: 24px 0; }
  .brand .wm { font-size: 21px; }
  .site-nav { border-top: 0; padding: 0; gap: 30px; font-size: 14.5px; }
  .x-follow { font-size: 14px; padding: 8px 16px 9px; }

  .hero { padding: 60px 0 68px; }
  .hero-title { font-size: 44px; }
  .issue-title { font-size: 44px; }
  .page-title { font-size: 38px; }
  .issue-head { padding: 60px 0 52px; }
  .page-head { padding: 60px 0 34px; }

  .story {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "meta fig" "title fig" "body fig";
    column-gap: 56px;
    padding: 46px 0 50px;
  }
  .story h3 { font-size: 26px; margin-bottom: 16px; }
  .story-fig { margin-bottom: 0; align-self: start; }
  .story-fig .frame { aspect-ratio: 3 / 2; }
  .typo-cover .typo-word { font-size: 44px; }

  .cta-band { padding: 56px 0 60px; }
  .cta-title { font-size: 30px; }
  .foot-grid { grid-template-columns: 1.1fr 1fr 1.4fr; gap: 32px; align-items: start; }
  .home-section { padding: 8px 0 64px; }
}

@media (min-width: 1040px) {
  body { font-size: 18px; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
  }
  .hero-title { font-size: 52px; line-height: 1.35; }
  .contents { margin-top: 6px; }
  .issue-title { font-size: 52px; line-height: 1.35; }
  .issue-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
  }
  .issue-toc { margin-top: 6px; }
  .story {
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 72px;
  }
  .home-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 72px;
  }
}
