/* HataGou Blog — shared styles
 * Inherits the existing Coming Soon palette: dark base, gold accent, Fraunces + Inter
 */

:root {
  --bg: #1a1f1c;
  --bg-elev: #232827;
  --bg-card: #1f2522;
  --text: #f5f1e8;
  --text-muted: rgba(245, 241, 232, 0.68);
  --text-dim: rgba(245, 241, 232, 0.45);
  --accent: #c9a570;
  --accent-strong: #d4b482;
  --accent-soft: rgba(201, 165, 112, 0.18);
  --accent-bg: rgba(201, 165, 112, 0.08);
  --border: rgba(245, 241, 232, 0.10);
  --border-strong: rgba(201, 165, 112, 0.3);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 720px;
  --measure-wide: 960px;
  --radius: 10px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: var(--bg); }

/* ─── Site header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 31, 28, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; color: var(--accent); }
.site-logo svg { width: 32px; height: 32px; flex-shrink: 0; }

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ─── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--measure);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: none; }
.breadcrumbs span[aria-current] { color: var(--text-muted); }
.breadcrumbs__sep {
  color: var(--text-dim);
  margin: 0 6px;
}

/* ─── Article layout ───────────────────────────────────────── */
.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.article-header {
  margin-bottom: 32px;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
}

.article-meta {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.article-meta__author { color: var(--text-muted); font-weight: 500; }
.article-meta__sep { color: var(--text-dim); }

/* ─── Hero image ───────────────────────────────────────────── */
.article-hero {
  margin: 0 -24px 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--bg-card);
}

.article-hero figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 16px 0;
}

@media (min-width: 768px) {
  .article-hero { margin-left: 0; margin-right: 0; }
}

/* ─── TL;DR box ───────────────────────────────────────────── */
.tldr {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 0 0 40px;
}

.tldr h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.tldr ul {
  list-style: none;
  padding: 0;
}

.tldr li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.tldr li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ─── Article body ─────────────────────────────────────────── */
.article-body { font-size: 17px; }

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin: 56px 0 20px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  margin: 36px 0 14px;
  color: var(--text);
}

.article-body h2 + p,
.article-body h3 + p { margin-top: 0; }

.article-body p {
  margin: 0 0 20px;
  color: var(--text);
}

.article-body p:last-child { margin-bottom: 0; }

.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-muted); }

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}

.article-body a:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--accent); font-weight: 600; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Tables ──────────────────────────────────────────────── */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 28px -8px;
  border-radius: var(--radius);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 480px;
}

.article-body th {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

/* ─── Cabin card (used in listicles) ───────────────────────── */
.cabin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cabin-card:hover {
  border-color: var(--border-strong);
}

.cabin-card__num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-right: 10px;
  vertical-align: middle;
}

.cabin-card h3 {
  display: inline;
  margin: 0 !important;
  vertical-align: middle;
}

.cabin-card__region {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 4px 0 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cabin-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  list-style: none;
}

.cabin-card__features li {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.cabin-card__price {
  font-weight: 600;
  color: var(--accent);
}

/* ─── Pull quote / callout ─────────────────────────────────── */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
}

.callout strong:first-child { color: var(--accent); }

/* ─── Image with caption ───────────────────────────────────── */
.article-body figure {
  margin: 32px 0;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ─── FAQ accordion ────────────────────────────────────────── */
.faq {
  margin: 64px 0 48px;
}

.faq h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--border); }

.faq summary {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-right: 8px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 12px;
  padding-right: 32px;
}

.faq details p:not(:last-child) { margin-bottom: 12px; }

/* ─── Read also (related articles) ─────────────────────────── */
.read-also {
  margin: 64px 0 48px;
}

.read-also h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.read-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.read-also__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}

.read-also__card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.read-also__card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.read-also__card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--text);
}

.read-also__card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Newsletter / CTA ─────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, #1f4432 0%, #1a3a2a 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 56px 0 32px;
  text-align: center;
}

.cta__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta__button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta__button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  color: var(--bg);
  text-decoration: none;
}

/* ─── Author byline / footer ───────────────────────────────── */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4432 0%, #c9a570 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg);
}

.author-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.author-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Site footer ──────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a { color: var(--accent); }
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-footer__links a { color: var(--text-muted); }
.site-footer__links a:hover { color: var(--accent); text-decoration: none; }

/* ─── Blog index ───────────────────────────────────────────── */
.blog-hero {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}

.blog-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--text);
}

.blog-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

.blog-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text);
}

.post-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.post-card__meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ─── About page ───────────────────────────────────────────── */
.about-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.about-page .about-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4432 0%, #c9a570 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--bg);
}

.about-page h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.15;
}

.about-page .about-role {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.about-page p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-page h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
}

/* ─── Accessibility helpers ────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 8px; text-decoration: none; }

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Comparison table ─────────────────────────────────────── */
.comparison-table {
  margin: 32px 0;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  min-width: 560px;
}
.comparison-table thead th {
  background: var(--accent-bg);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-strong);
}
.comparison-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  width: 28%;
}
.comparison-table tbody td {
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table__note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: -16px;
  margin-bottom: 28px;
  font-style: italic;
}

/* ─── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header__inner { padding: 12px 20px; }
  .site-logo { font-size: 18px; }
  .site-logo svg { width: 28px; height: 28px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }

  .article { padding: 24px 20px 48px; }
  .breadcrumbs { padding: 0 20px; font-size: 12px; }
  .article-body { font-size: 16px; }
  .article-body h2 { margin-top: 40px; }
  .article-hero { margin-left: -20px; margin-right: -20px; border-radius: 0; }

  .tldr { padding: 20px 22px; }
  .cabin-card { padding: 18px; }
  .cabin-card__num { font-size: 26px; }

  .cta { padding: 32px 20px; }
  .blog-hero { padding: 48px 20px 32px; }
  .blog-grid { padding: 24px 20px 48px; gap: 16px; }
}
