/* Guide and blog pages (built by scripts/build-site.mjs). The app has its
   own styles; this file only serves the static pages. Colours follow the
   Torii Compass brand: teal, vermilion, washi cream. */
:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-2: #f3ece0;
  --ink: #1d2a2e;
  --muted: #5b6b70;
  --line: #e4dccd;
  --teal: #0f4c5c;
  --teal-ink: #0f4c5c;
  --teal-soft: #e0edef;
  --verm: #d2462e;
  --verm-ink: #b8391f;
  --do: #2f6f4f;
  --dont: #b8391f;
  --tip: #0f4c5c;
  --warn: #9a6a12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 76, 92, .06), 0 6px 20px rgba(15, 76, 92, .06);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cg fill='none' stroke='%230f4c5c' stroke-opacity='0.1' stroke-width='2' stroke-dasharray='2 6' stroke-linecap='round'%3E%3Cpath d='M0 30C40 30 50 80 90 80S140 40 160 40'/%3E%3Cpath d='M0 100C30 100 60 110 100 110S150 90 160 90'/%3E%3Cpath d='M60 0C60 30 20 50 20 120'/%3E%3C/g%3E%3C/svg%3E");
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111719;
    --surface: #182226;
    --surface-2: #1d2a2e;
    --ink: #e8eef0;
    --muted: #9fb0b5;
    --line: #2a393e;
    --teal: #2a7f92;
    --teal-ink: #9fd0db;
    --teal-soft: #172a2f;
    --verm: #e0604a;
    --verm-ink: #f08a74;
    --do: #7cc39b;
    --dont: #f08a74;
    --tip: #9fd0db;
    --warn: #e2b55a;
    --shadow: none;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cg fill='none' stroke='%239fd0db' stroke-opacity='0.08' stroke-width='2' stroke-dasharray='2 6' stroke-linecap='round'%3E%3Cpath d='M0 30C40 30 50 80 90 80S140 40 160 40'/%3E%3Cpath d='M0 100C30 100 60 110 100 110S150 90 160 90'/%3E%3Cpath d='M60 0C60 30 20 50 20 120'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--verm-ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; letter-spacing: -0.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--font-display); }
.brand svg { flex: none; }
.brand .accent { color: var(--verm); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav .lang { font-size: 15px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--teal); color: #fff; font: 600 16px/1 var(--font-display);
  padding: 13px 20px; border-radius: 999px; border: 0;
}
:lang(ja) .btn { font-family: var(--font-body); font-weight: 700; }
.btn:hover { background: var(--verm); color: #fff; }
.site-nav .btn { padding: 10px 16px; font-size: 15px; margin-left: 6px; color: #fff; background: var(--teal); border-radius: 999px; }
.site-nav .btn:hover { color: #fff; background: var(--verm); }
@media (max-width: 640px) {
  .site-nav .hide-sm { display: none; }
  .brand span.word { display: none; }
}

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { margin: 18px 0 8px; }
.hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); }
.hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.hero figcaption, .credit { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero--plain {
  border-radius: var(--radius); background: var(--region, var(--teal)); color: #fff;
  position: relative; overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; padding: 22px 26px;
}
.hero--plain::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .9; mix-blend-mode: screen; }
.hero--plain .kanji { position: absolute; right: 18px; bottom: -18px; font: 700 clamp(72px, 16vw, 150px)/1 var(--font-body); opacity: .2; letter-spacing: .02em; }
.hero--plain .region-label { position: relative; font: 600 15px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

.page-title { font-size: clamp(30px, 5vw, 44px); margin: 22px 0 6px; }
.page-sub { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.lede { font-size: 19px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 8px; }
.cta-row .stats { color: var(--muted); font-size: 15px; }

section { margin: 44px 0; }
section > h2 { font-size: 26px; margin: 0 0 6px; }
section > .section-intro { color: var(--muted); margin: 0 0 16px; }

/* Tips */
.tips { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tips li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.kind { font: 700 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; margin-top: 3px; white-space: nowrap; color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); }
:lang(ja) .kind { font-family: var(--font-body); letter-spacing: 0; }
.kind--do { --k: var(--do); } .kind--dont { --k: var(--dont); } .kind--tip { --k: var(--tip); } .kind--warn { --k: var(--warn); }

/* Dishes */
.dishes { display: grid; gap: 14px; margin-top: 14px; }
.dish { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.dish h3 { margin: 0 0 4px; font-size: 19px; }
.dish h3 .ja { font: 500 15px/1 var(--font-body); color: var(--muted); margin-left: 8px; }
.dish p { margin: 0; }
.dish .try { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Places */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.place { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.place:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-1px); }
.place h3 { margin: 0; font-size: 18px; }
.place .ja { font-size: 14px; color: var(--muted); }
.place p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--c, var(--teal)); }
.local-badge { font-size: 12px; font-weight: 700; color: var(--do); }
.more-link { display: inline-block; margin-top: 14px; font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.info { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; }
.info h2 { font-size: 20px; margin: 0 0 6px; }
.info p { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.siblings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.siblings a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.siblings a:hover { border-color: var(--teal); }

.promo { margin: 48px 0; border-radius: var(--radius); background: var(--teal); color: #fff; padding: 28px; position: relative; overflow: hidden; }
.promo::after { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .5; pointer-events: none; mix-blend-mode: screen; }
.promo h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.promo p { margin: 0 0 18px; max-width: 60ch; opacity: .95; }
.promo .btn { background: #fff; color: var(--teal); position: relative; z-index: 1; }
.promo .btn:hover { background: var(--verm); color: #fff; }

/* Index */
.region { margin: 40px 0; }
.region h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 12px; }
.region h2::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--region); }
.pref-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pref-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pref-card:hover { border-color: var(--teal); color: var(--ink); }
.pref-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pref-card .swatch { aspect-ratio: 16 / 9; background: var(--region); position: relative; overflow: hidden; }
.pref-card .swatch span { position: absolute; right: 10px; bottom: -8px; color: #fff; opacity: .3; font: 700 54px/1 var(--font-body); }
.pref-card .body { padding: 12px 14px 14px; }
.pref-card h3 { margin: 0; font-size: 18px; }
.pref-card .meta { font-size: 13px; color: var(--muted); }
.pref-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog */
.posts { display: grid; gap: 18px; margin-top: 18px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--teal); color: var(--ink); }
.post-card img, .post-card .swatch { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--teal) var(--pattern); }
.post-card .body { padding: 16px 18px 16px 0; }
.post-card h2 { margin: 0 0 4px; font-size: 21px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } .post-card .body { padding: 0 16px 16px; } }
.post-date { color: var(--muted); font-size: 14px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 26px; margin: 40px 0 8px; }
.prose h3 { font-size: 21px; margin: 30px 0 6px; }
.prose img { border-radius: 10px; margin: 18px 0 6px; }
.prose blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--verm); color: var(--muted); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }
.site-foot .by { margin-left: auto; }
.wrap > .page-title:first-child { margin-top: 40px; }

/* Homepage */
.home-hero { position: relative; overflow: hidden; background: var(--teal); color: #fff; isolation: isolate; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .9; mix-blend-mode: screen; z-index: -1; }
.home-hero--photo::before { background: linear-gradient(90deg, rgba(10, 30, 36, .82) 0%, rgba(10, 30, 36, .55) 45%, rgba(10, 30, 36, .1) 100%); mix-blend-mode: normal; opacity: 1; z-index: 0; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.home-hero__mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: .14; z-index: -1; }
.home-hero__mark svg circle { stroke: #fff !important; }
.home-hero__mark svg g { fill: #fff; }
.home-hero__inner { position: relative; z-index: 1; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(56px, 10vw, 110px); }
.home-hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 8px 0 14px; max-width: 16ch; color: #fff; }
:lang(ja) .home-hero h1 { max-width: 14em; }
.home-hero__lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 38ch; margin: 0; opacity: .95; }
:lang(ja) .home-hero__lede { max-width: 30em; }
.eyebrow { margin: 0; font: 600 14px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #ffd6cb; }
:lang(ja) .eyebrow { font-family: var(--font-body); letter-spacing: .05em; }
.home-hero__stats { margin: 22px 0 0; font-size: 15px; opacity: .85; }
.home-hero__credit { position: absolute; right: 14px; bottom: 8px; margin: 0; font-size: 12px; opacity: .75; z-index: 1; }
.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--verm); color: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--light { color: #0f4c5c; } }

.home-hero + section, main > section.wrap { margin: 56px auto; }
main > section.wrap > h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 6px; }

.how { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.how__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--verm); color: #fff; font: 700 16px/1 var(--font-display); }
.how h3 { margin: 12px 0 6px; font-size: 19px; }
.how p { margin: 0; color: var(--muted); font-size: 16px; }

.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.region-card { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--region); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.region-card h3 { margin: 0; font-size: 20px; }
.region-card h3 a { color: var(--ink); text-decoration: none; }
.region-card h3 a:hover { color: var(--verm-ink); }
.region-card .meta, .place .meta { font-size: 13px; color: var(--muted); }
.region-card__prefs { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region-card__prefs a { font-size: 14px; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.region-card__prefs a:hover { background: var(--teal-soft); color: var(--teal-ink); }
