:root {
  --bg: #f7f3ec;
  --bg-soft: #fbf8f3;
  --paper: #fffdf9;
  --ink: #1f1a17;
  --ink-soft: #5c5148;
  --line: rgba(31, 26, 23, 0.12);
  --line-strong: rgba(31, 26, 23, 0.2);

  --gold: #b8893c;
  --gold-deep: #8a6427;
  --forest: #314437;
  --forest-deep: #243229;
  --wine: #6f3d3d;
  --cream: #f3ece1;

  --shadow: 0 14px 38px rgba(20, 16, 12, 0.08);
  --shadow-soft: 0 8px 22px rgba(20, 16, 12, 0.05);

  --radius: 20px;
  --radius-soft: 14px;
  --content: 1180px;
  --content-narrow: 880px;

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

  --header-h: 72px;
  --ease: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 137, 60, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, #f7f3ec 42%, #f5f1ea 100%);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

p,
li {
  font-size: 1rem;
}

p {
  margin: 0 0 1.2em;
}

ul,
ol {
  margin: 0 0 1.2em 1.2em;
  padding: 0;
}

::selection {
  background: rgba(184, 137, 60, 0.18);
}

body.nav-open {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
}

.container,
.wrap,
.section-inner,
.hero-inner,
.footer-inner,
.header-inner {
  width: min(var(--content), calc(100% - 28px));
  margin: 0 auto;
}

.narrow {
  width: min(var(--content-narrow), calc(100% - 28px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 248, 243, 0.86);
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
}

.site-header.scrolled {
  background: rgba(251, 248, 243, 0.94);
  box-shadow: 0 10px 26px rgba(20, 16, 12, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand a {
  display: inline-block;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-sub {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--ink);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background:
    linear-gradient(180deg, rgba(248, 243, 234, 0.98), rgba(246, 240, 232, 0.98));
  padding: 18px 14px 28px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  overflow-y: auto;
}

.site-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 10px;
}

.site-nav a {
  display: block;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,26,23,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.site-nav a:hover,
.site-nav a.current {
  background: rgba(184, 137, 60, 0.08);
  border-color: rgba(184, 137, 60, 0.28);
  color: var(--gold-deep);
}

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  margin: 0 0 28px;
  background: #1c1815;
  color: #fff;
}

.hero-media {
  position: relative;
  min-height: clamp(430px, 72vh, 860px);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.16) 0%, rgba(20, 16, 12, 0.32) 42%, rgba(20, 16, 12, 0.74) 100%);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f8efe3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 4.6rem);
  text-shadow: 0 6px 28px rgba(0,0,0,0.25);
}

.hero-lead {
  margin-top: 16px;
  max-width: 42rem;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Buttons */
.button,
button.button,
input[type="submit"].button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 10px 24px rgba(138, 100, 39, 0.22);
}

.button-secondary {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.74);
  border-color: var(--line);
}

/* Intro / section */
.section {
  padding: 22px 0;
}

.section-lg {
  padding: 44px 0;
}

.section-xl {
  padding: 66px 0;
}

.section-head {
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section h2,
.section h3,
.article h2,
.article h3,
.article h4 {
  margin: 0 0 0.7em;
  font-family: var(--serif);
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section h2,
.article h2 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.section h3,
.article h3 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.article h4 {
  font-size: 1.06rem;
}

.section-intro,
.deck,
.lead {
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 60rem;
}

/* Magazine cards */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card,
.story-card,
.info-card,
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,252,248,0.96));
  border: 1px solid rgba(31,26,23,0.08);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.card:hover .card-media img,
.story-card:hover .card-media img,
.feature-card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 18px 16px 18px;
}

.card-kicker {
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.32;
}

.card-text {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-deep);
}

/* Feature split */
.split {
  display: grid;
  gap: 18px;
  align-items: center;
}

.split-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

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

/* Pullquote */
.pullquote {
  margin: 30px 0;
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(184,137,60,0.08), rgba(111,61,61,0.06));
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.3vw, 1.7rem);
  line-height: 1.6;
}

.pullquote cite {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.92rem;
}

/* Article body */
.article {
  background: rgba(255,253,249,0.78);
}

.article-wrap {
  width: min(var(--content-narrow), calc(100% - 28px));
  margin: 0 auto;
}

.article p {
  color: #2d2520;
}

.article p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.article figure {
  margin: 26px 0;
}

.article figure img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.article figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

/* Info strips */
.meta-strip,
.info-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-box {
  padding: 14px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.meta-label {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.meta-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

/* Destination links / TOC */
.toc,
.quick-links {
  padding: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.toc ul,
.quick-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li + li,
.quick-links li + li {
  margin-top: 8px;
}

.toc a,
.quick-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(184, 137, 60, 0.05);
  border: 1px solid rgba(184, 137, 60, 0.12);
  font-weight: 600;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Tables / lists */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255,255,255,0.92);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(31,26,23,0.08);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(184,137,60,0.08);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: 44px;
  padding: 30px 0 40px;
  background:
    linear-gradient(180deg, rgba(45,37,32,0.98), rgba(28,23,20,1));
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}

.footer-copy,
.footer-links a,
.footer-meta {
  color: rgba(255,255,255,0.76);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a:hover {
  color: #fff;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.center {
  text-align: center;
}

.muted {
  color: var(--ink-soft);
}

.gold {
  color: var(--gold-deep);
}

.surface {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.pad {
  padding: 18px;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 18px !important; }
.mb-3 { margin-bottom: 26px !important; }
.mb-4 { margin-bottom: 38px !important; }

/* Desktop */
@media (min-width: 720px) {
  :root {
    --header-h: 78px;
  }

  .container,
  .wrap,
  .section-inner,
  .hero-inner,
  .footer-inner,
  .header-inner {
    width: min(var(--content), calc(100% - 48px));
  }

  .narrow,
  .article-wrap {
    width: min(var(--content-narrow), calc(100% - 48px));
  }

  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav li + li {
    margin-top: 0;
  }

  .site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    font-size: 0.94rem;
  }

  .site-nav a:hover,
  .site-nav a.current {
    background: rgba(184, 137, 60, 0.08);
    border-color: rgba(184, 137, 60, 0.18);
  }

  .nav-toggle {
    display: none;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
  }

  .meta-strip,
  .info-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-body {
    padding: 20px 20px 22px;
  }

  .section {
    padding: 28px 0;
  }

  .section-lg {
    padding: 54px 0;
  }

  .section-xl {
    padding: 78px 0;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-lead {
    font-size: 1.18rem;
  }

  .card-title {
    font-size: 1.3rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
