/* BitesMap guides: a calm, Medium-style reading layout.
   White page, near-black text, one narrow column. Same-origin; no scripts. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #242424;
  --muted: #6b6b6b;
  --rule: #e6e6e6;
  --soft: #f7f5f2;
  --brand: #ff6b00;
  --brand-dark: #d94700;
  --link: #242424;
  --serif: charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  padding-top: env(safe-area-inset-top);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 10px 24px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 8px; }

/* Buttons: every action is a real, thumb-sized target (min 44px tall). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--soft); color: var(--text); }
.btn-outline { background: #fff; color: var(--text); border-color: #d9d2cc; }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-tint { background: #fff1e6; color: #b33a00; border-color: #ffd9bd; }
.btn-tint:hover { background: #ffe4cf; color: #8f2e00; border-color: #ffc69c; }
.btn-white { background: #fff; color: #b33a00; }
.btn-white:hover { color: #8f2e00; box-shadow: 0 8px 20px rgba(33, 20, 22, 0.2); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Article column */
.article { max-width: 680px; margin: 0 auto; padding: 48px 24px 64px; }
.article .back { margin: 0 0 24px; }
h1, h2, h3 { font-family: var(--sans); color: var(--text); letter-spacing: -0.016em; }
h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.2; font-weight: 800; text-wrap: balance; }
.subtitle { margin: 0 0 28px; font-family: var(--sans); font-size: 22px; line-height: 1.4; color: var(--muted); font-weight: 500; }
.byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; margin-bottom: 36px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 15px;
}
.byline img { width: 40px; height: 40px; border-radius: 50%; }
.byline div { display: grid; line-height: 1.4; }
.byline span { color: var(--muted); }

.article p { margin: 0 0 28px; }
.article section { margin-top: 56px; }
h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.25; font-weight: 800; }
h3 { margin: 40px 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; }
h3 .at { font-weight: 500; color: var(--muted); }

/* A spot, in the flow of the article */
.spot figure { margin: 0 0 22px; }
.spot figure img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.facts { margin: 0 0 12px; padding: 0 0 0 22px; }
.facts li { margin: 0 0 6px; }
.facts strong { font-family: var(--sans); font-size: 0.85em; font-weight: 700; }
.article .note { margin: 0 0 8px; font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--muted); }
.article .note.is-unconfirmed { color: #9a4a00; }
.article .spot-link { margin: 14px 0 0; }

/* Questions */
.faq h3 { margin-top: 28px; font-size: 20px; }
.faq p { margin-bottom: 0; }

/* Related + index */
.related ul, .guide-list { list-style: none; padding: 0; margin: 0; }
.related ul { display: grid; gap: 10px; }
.related-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 18px; border: 1.5px solid var(--rule); border-radius: 14px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.35;
  color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.related-link:hover { border-color: var(--brand); background: #fffaf6; color: var(--text); }
.related-link .icon { flex: none; color: var(--brand-dark); }
.guide-list li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.guide-list li.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: center; }
.guide-list h2 { margin: 0 0 8px; font-size: 24px; }
.guide-list h2 a { text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; }
.article .guide-desc {
  margin: 0 0 14px; color: var(--muted); font-size: 18px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-thumb { display: block; }
.guide-thumb img { width: 180px; height: 135px; object-fit: cover; border-radius: 4px; background: var(--soft); }

/* Map banner */
.map-banner {
  margin: 64px 0 0; padding: 32px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: center;
  border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #ff9e0f 0%, #ff6b00 45%, #d94700 100%);
  box-shadow: 0 18px 40px -18px rgba(217, 71, 0, 0.55);
}
.map-banner-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; padding: 6px; box-shadow: 0 6px 16px rgba(33, 20, 22, 0.18); }
.map-banner h2 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.article .map-banner p { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.map-banner-button { grid-column: 1 / -1; justify-self: start; margin-top: 16px; min-height: 48px; padding: 12px 24px; font-size: 16px; font-weight: 800; }

/* Footer */
.site-footer { margin-top: 72px; background: #211416; color: #d9c8bd; font-family: var(--sans); font-size: 15px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px;
}
.footer-logo { display: inline-block; padding: 8px 12px; border-radius: 14px; background: #f5e5cc; }
.footer-logo img { height: 38px; width: auto; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; line-height: 1.6; color: #bfaea4; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ff9e0f; }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: #f5e5cc; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(245, 229, 204, 0.14); font-size: 13px; color: #a8958b;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* Tablets */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 18px; line-height: 1.58; }
  .site-header-inner { padding: 8px 16px; }
  .brand img { height: 30px; }
  .site-header nav { gap: 4px; }
  .site-header .btn { padding: 10px 14px; font-size: 14px; }
  .site-header .btn-primary .icon { display: none; }
  .article { padding: 32px 16px 48px; }
  h1 { font-size: 32px; }
  .subtitle { font-size: 19px; }
  h2 { font-size: 24px; margin-bottom: 12px; }
  h3 { font-size: 20px; margin-top: 32px; }
  .article p { margin-bottom: 22px; }
  .article section { margin-top: 44px; }
  .map-banner { padding: 24px 20px; margin-top: 48px; grid-template-columns: 1fr; }
  .map-banner h2 { font-size: 22px; }
  .map-banner-button { justify-self: stretch; white-space: normal; text-align: center; }
  .spot-link .btn { width: 100%; min-height: 48px; font-size: 16px; }
  .related-link { font-size: 15px; padding: 14px 16px; }
  .facts { padding-left: 20px; }
  .guide-list li { padding: 22px 0; }
  .guide-list li.has-thumb { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; }
  .guide-list h2 { font-size: 19px; line-height: 1.3; }
  .article .guide-desc { font-size: 16px; -webkit-line-clamp: 2; margin-bottom: 10px; }
  .guide-thumb img { width: 96px; height: 96px; }
  .site-footer { margin-top: 56px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 40px 16px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { min-height: 44px; }
  .footer-base { padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); flex-direction: column; }
}

/* Very narrow phones (e.g. iPhone SE, small Androids) */
@media (max-width: 360px) {
  .brand img { height: 26px; }
  .site-header .btn-ghost { display: none; }
  .guide-list li.has-thumb { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
  .guide-thumb img { width: 80px; height: 80px; }
  .footer-inner { grid-template-columns: 1fr; }
}
