/* ===================================================
   Artemis Public Site — Design System
   =================================================== */

:root {
  /* Colors */
  --forest:       #0d1f10;
  --forest-mid:   #1a3520;
  --moss:         #4a6741;
  --moss-light:   #b3c8a8;
  --sage:         #edf4e9;
  --ink:          #1c201c;
  --muted:        #6d7468;
  --soft:         #9aa194;
  --line:         #e4e0d8;
  --cream:        #f9f7f2;
  --sand:         #f2efe7;
  --white:        #ffffff;
  --clay:         #b36d4d;
  --gold:         #e6b422;
  --gold-bg:      #fdf8e8;

  /* Typography */
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", Georgia, serif;
  --sans:  "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;

  /* Layout */
  --max:       1200px;
  --gutter:    clamp(16px, 4vw, 48px);
  --shadow-sm: 0 1px 6px rgba(0,0,0,.06);
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; }

img.protected-image {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo[hidden],
.footer-logo[hidden] {
  display: none;
}

.brand-logo img {
  display: block;
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand span {
  font-family: var(--sans);
  font-size: .68rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ===== Hero (Full Viewport) ===== */
.hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 70% at 20% 80%, rgba(55,100,48,.6), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 25%, rgba(30,70,35,.35), transparent 50%),
    linear-gradient(160deg, #0b1e0e 0%, #091808 45%, #112913 80%, #0d1f10 100%);
  background-size: cover;
  background-position: center;
}

/* Replace with real photo:
.hero-full { background-image: url('../assets/hero.jpg'); } */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.15) 50%,
    rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.hero-mountain {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 14vh, 150px);
  width: 100%;
}

.hero-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0 0 20px;
}

.hero-heading {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #fff;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 38px;
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.8vw, 1.12rem);
  color: rgba(255,255,255,.78);
  max-width: 500px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all .2s;
  text-decoration: none;
}

.hero-btn--solid {
  background: var(--gold);
  color: var(--forest);
}

.hero-btn--solid:hover {
  background: rgba(230,180,34,.88);
  transform: translateY(-2px);
}

.hero-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}

.hero-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.9);
  transform: translateY(-2px);
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: var(--forest);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow { color: var(--gold); }

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #fff;
  margin: 12px 0 16px;
  max-width: 20ch;
}

.page-hero p {
  font-family: var(--sans);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.72);
  max-width: 520px;
  line-height: 1.8;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}

.section-full {
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}

.section-tinted {
  background: var(--sand);
}

.section-dark {
  background: var(--forest);
  color: #fff;
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-dark .section-head h2 { color: #fff; }

.section-head p {
  font-family: var(--sans);
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

.section-dark .section-head p { color: rgba(255,255,255,.65); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ===== Article Cards ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease;
}

.article-card:hover { transform: translateY(-4px); }

.article-card:hover .article-card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--card-tone, linear-gradient(135deg, #e8f0e0, #f6f4ec));
  position: relative;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.article-card:hover .article-card-image img { transform: scale(1.04); }

.article-card-category {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-summary {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.article-card-season,
.article-card-location {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--soft);
}
.article-card-location::before {
  content: "· ";
}

/* ===== Category Cards ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.category-card {
  display: block;
  padding: 28px 24px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.category-card:hover { background: var(--sage); }

.category-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.category-card-desc {
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.sub-chip {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
}

/* ===== Service Band ===== */
.service-band {
  background: var(--forest);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}

.service-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 32px;
}

.service-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

.service-band p {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.68);
  max-width: 560px;
  line-height: 1.8;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  overflow: hidden;
  text-decoration: none;
  transition: background .2s;
}

/* 旧HTML互換: .service-card-role + h3 + p 構造 */
.service-card-role {
  padding: 20px 24px 0;
  font-family: var(--sans);
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}
.service-card > h3 {
  padding: 10px 24px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}
.service-card > p {
  padding: 6px 24px 20px;
  font-family: var(--sans);
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}
.articles-grid .service-card-role { color: var(--muted); }
.articles-grid .service-card > h3  { color: var(--ink); }
.articles-grid .service-card > p  { color: var(--muted); }

a.service-card:hover { background: rgba(255,255,255,.12); }

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.service-card-image--empty {
  aspect-ratio: unset;
  height: 0;
  background: none;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-content {
  padding: 20px 24px 24px;
}

.service-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card-desc {
  font-family: var(--sans);
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-card-cta {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .02em;
}

/* 関連サービスページ（白背景）でのカード上書き */
.articles-grid .service-card {
  border: 1px solid var(--line);
  background: #fff;
}

.articles-grid a.service-card:hover { background: #fafaf8; }

.articles-grid .service-card-image { background: var(--sage); }

.articles-grid .service-card-name { color: var(--ink); }

.articles-grid .service-card-desc { color: var(--muted); }

.articles-grid .service-card-cta { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: var(--forest);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
}

.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}

.btn-white {
  background: #fff;
  color: var(--forest);
  border-color: #fff;
}

.btn-white:hover { background: rgba(255,255,255,.9); }

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
}

.tag-moss {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--forest-mid);
}

/* ===== Divider ===== */
.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* ===== Article view states ===== */
#view-loading:not([hidden]),
#view-error:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* ===== Article Page ===== */
.article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(64px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.article-main {}

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

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.article-meta-bar .tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 3px 9px;
  letter-spacing: .02em;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  flex: 1 1 480px;
}

.article-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}

.article-date-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--sans);
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.4;
}

.article-date-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.article-date-label {
  font-weight: 700;
  color: var(--ink);
}

.article-lead {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 640px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #dce6d5 0%, #f6f3eb 38%, #d7e6e8 100%);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.article-body p {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: #3a3e39;
  line-height: 2;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 20px;
}

.article-body li {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: #3a3e39;
  line-height: 1.9;
  margin-bottom: 6px;
}

.article-body .image-caption {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 20px;
}

.article-body .article-note {
  border: 1px solid var(--gold);
  border-left: 4px solid #a07515;
  background: var(--gold-bg);
  color: #5c3b05;
  padding: 14px 16px;
  margin: 24px 0;
  font-family: var(--sans);
  font-size: .96rem;
  line-height: 1.8;
}

.article-body .article-note-warning::before {
  content: '注意';
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 1px 7px;
  background: #a07515;
  color: #fff;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  vertical-align: 1px;
}

/* ===== Share buttons ===== */

.share-buttons {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.share-label {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}

.share-btn:hover  { opacity: .82; }
.share-btn:active { transform: scale(.97); }

.share-btn--x       { background: #000;     color: #fff; }
.share-btn--facebook{ background: #1877f2;  color: #fff; }
.share-btn--line    { background: #06c755;  color: #fff; }
.share-btn--hatena  { background: #00a4de;  color: #fff; }
.share-btn--copy    { background: var(--gold-bg); color: var(--forest); }
.share-btn--copy.is-copied { background: var(--gold); color: var(--forest); }

.share-btn svg { flex-shrink: 0; }

.article-safety {
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  background: #fff7f7;
  padding: 16px 20px;
  margin-top: 32px;
  margin-bottom: 0;
}

.article-safety-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #9b1c1c;
  margin-bottom: 8px;
}

.article-safety-text {
  font-family: var(--sans);
  font-size: .92rem;
  line-height: 1.8;
  color: #6b2020;
  white-space: pre-wrap;
}

.article-share-top {
  margin-top: 10px;
}

.share-links--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.share-btn--compact {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-radius: 3px;
  opacity: .75;
}

.share-btn--compact:hover { opacity: 1; }

.share-btn--compact.is-copied { background: var(--gold); color: var(--forest); opacity: 1; }

/* ============================= */

.author-profile-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.author-profile-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.author-profile-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
}

.author-profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  align-self: flex-start;
  border-radius: 50%;
  background: var(--sage);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
}

.author-profile-avatar img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
}

.author-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.author-profile-eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.author-profile-name {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
}

.author-profile-title {
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.author-profile-bio {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
}

.article-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
}

.sidebar-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
}

.sidebar-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line);
  margin-top: 2px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.related-item:last-child { border-bottom: none; padding-bottom: 0; }

.related-item:hover .related-item-title { text-decoration: underline; }

.related-item-thumb {
  aspect-ratio: 1.1 / 1;
  background: linear-gradient(135deg, #eef4e9, #f9f7f2);
  overflow: hidden;
}

.related-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-item-body {
  min-width: 0;
}

.related-item-cat {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.related-item-title {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.article-related-section {
  padding-top: 0;
}

/* ===== Category Page ===== */
.category-list-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.category-item {
  background: var(--white);
  padding: 28px 24px 24px;
  text-decoration: none;
  display: block;
  transition: background .15s;
}

a.category-item:hover { background: var(--sage); }

.category-item h3,
.category-item-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.category-item p,
.category-item-desc {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.category-item-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ===== Category detail back link ===== */
.page-hero-back {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.page-hero-back-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.back-link {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.feature-card {
  display: block;
  border: 1px solid var(--line);
  padding: 28px 24px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-card-season {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-card p {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== Referral ===== */
.referral-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}

.referral-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.referral-card-role {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.referral-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.referral-card p {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== Loading State ===== */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--soft);
  font-family: var(--sans);
  font-size: .88rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: clamp(32px, 5vw, 56px) var(--gutter);
}

.footer-brand-group {
  display: grid;
  gap: 8px;
}

.footer-logo img {
  display: block;
  max-height: 40px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}

.footer-copy {
  font-family: var(--sans);
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: .8rem;
}

.footer-links a:hover { color: rgba(255,255,255,.85); }

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-top: 10px;
}
.footer-legal a { color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ===== Legal pages ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--forest-mid);
  margin-bottom: 8px;
}
.legal-page-meta {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2.2em;
  margin-bottom: .5em;
  color: var(--forest-mid);
}
.legal-page p {
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: .9em;
}
.legal-page ul {
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.9;
  color: var(--ink);
  padding-left: 1.6em;
  margin-bottom: .9em;
}
.legal-page-body a { color: var(--moss); text-decoration: underline; }
.legal-page-body a:hover { color: var(--forest-mid); }

/* Company info table */
.company-table { width: 100%; }
.company-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .9rem;
}
.company-label { color: var(--muted); font-weight: 600; }
.company-value { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .categories-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-cards { grid-template-columns: 1fr; }
  .service-band-inner { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .category-list-full { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .articles-grid, .articles-grid.two-col { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-heading { font-size: clamp(2.8rem, 14vw, 4rem); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { display: none; }
  .author-profile-head { align-items: flex-start; }
}
