/* wawon books CHS site */
:root {
  --ink: #24231f;
  --muted: #686158;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #dfdbd1;
  --moss: #2f5d50;
  --moss-dark: #1f4138;
  --clay: #a6603a;
  --gold: #c6a657;
  --smoke: #f0eee7;
  --maxw: 1160px;
  --gutter: 28px;
  --body: "Noto Sans JP", system-ui, sans-serif;
  --serif: "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--moss-dark); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,246,.94);
  border-bottom: 1px solid rgba(36,35,31,.08);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--moss); color: #fff;
  font-family: var(--serif); font-size: 20px; line-height: 1;
}
.brand-text { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font-size: 14px; font-weight: 700; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--smoke); color: var(--moss-dark); }
.nav-toggle { display: none; }
.hero { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-photo, .hero-photo img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(20,24,22,.78), rgba(20,24,22,.35) 52%, rgba(20,24,22,.18)); }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.eyebrow { display: block; color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: 58px; line-height: 1.08; font-weight: 700; margin-bottom: 24px; }
.hero-lead { max-width: 620px; font-size: 18px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 8px; font-weight: 700; border: 1px solid transparent; }
.button-primary { background: var(--moss); color: #fff; }
.button-secondary { background: rgba(255,255,255,.9); color: var(--moss-dark); border-color: rgba(255,255,255,.75); }
.section { padding: 86px 0; }
.section-tight { padding-top: 72px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.split-reverse { grid-template-columns: 380px minmax(0, 1fr); }
.split h2, .prose-section h2, .band h2 { font-size: 32px; line-height: 1.45; margin-bottom: 22px; }
.split p, .prose-section p { color: var(--muted); margin-bottom: 16px; }
.photo-panel { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.band { background: var(--smoke); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.route-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 100%; }
.route-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.route-card span { display: block; color: var(--clay); font-weight: 700; font-size: 13px; padding: 18px 18px 4px; }
.route-card strong { display: block; padding: 0 18px 20px; font-size: 18px; line-height: 1.65; }
.text-link { display: inline-block; margin-top: 16px; color: var(--moss-dark); font-weight: 700; border-bottom: 1px solid currentColor; }
.page-hero, .archive-hero { position: relative; min-height: 380px; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--moss-dark); }
.page-hero img, .archive-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.page-hero::after, .archive-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,22,20,.76), rgba(18,22,20,.24)); }
.page-hero-inner, .archive-hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 56px; }
.page-hero h1, .archive-hero h1 { font-family: var(--serif); font-size: 44px; line-height: 1.25; margin-bottom: 16px; }
.page-hero p, .archive-hero p { max-width: 720px; font-size: 17px; line-height: 2; }
.narrow { max-width: 780px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 100%; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-date { display: block; color: var(--clay); font-weight: 700; font-size: 13px; padding: 18px 18px 0; }
.post-card h2 { font-size: 19px; line-height: 1.6; padding: 8px 18px 0; }
.post-card p { color: var(--muted); font-size: 14px; padding: 10px 18px 22px; }
.empty-state { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.empty-state img { width: 100%; max-width: 320px; margin: 0 auto 22px; border-radius: 8px; }
.empty-state h2 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.site-footer { background: #1f2622; color: #e7e1d4; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 42px; }
.footer-brand { font-family: var(--serif); font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.footer-copy { color: #cfc7b8; max-width: 470px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.footer-nav a { color: #e7e1d4; font-weight: 700; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 20px; color: #b9b0a1; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: none; border-radius: 8px; background: var(--moss); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); }
  .nav { position: fixed; inset: 72px 0 auto 0; display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 28px 22px; flex-direction: column; align-items: stretch; }
  .nav.is-open { display: flex; }
  .split, .split-reverse, .footer-grid { grid-template-columns: 1fr; }
  .route-grid, .post-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .hero { min-height: 74vh; }
  .photo-panel { max-width: 420px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .button { width: 100%; }
  .section { padding: 64px 0; }
  .split h2, .prose-section h2, .band h2 { font-size: 26px; }
  .page-hero h1, .archive-hero h1 { font-size: 34px; }
}
