:root {
  --bg: #0f1419;
  --surface: #f7f4ef;
  --text: #1c2430;
  --muted: #5c6773;
  --accent: #2d6a9f;
  --accent-hover: #1d4e79;
  --line: #e2ddd4;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
.container { width: min(1120px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 4vw;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--accent); margin-left: 0.2em; }
.nav { display: flex; gap: 1rem 1.25rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) { color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-pill { padding: 0.55rem 1rem; font-size: 0.92rem; }

.featured-hero {
  position: relative;
  min-height: min(68vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(135deg, #1a222c 0%, #2a3544 55%, #1e2836 100%);
}
.featured-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.featured-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,20,25,0.92), rgba(15,20,25,0.35));
}
.featured-hero-inner { position: relative; z-index: 1; padding: 3rem 0 2.5rem; }
.featured-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.8rem;
  max-width: 18ch;
}
.featured-hero h1 a { color: inherit; text-decoration: none; }
.featured-hero .lead { max-width: 52ch; color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.section { padding: 3rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
}
.section-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 60ch; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.topic-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.topic-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(28,36,48,0.08);
}
.topic-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.topic-meta { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }

.post-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.post-rail li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.post-rail a { font-weight: 600; color: var(--text); text-decoration: none; }
.post-rail a:hover { color: var(--accent); }
.post-rail time { color: var(--muted); font-size: 0.88rem; }
.rail-more { margin-top: 1rem; }
.rail-more a { color: var(--accent); font-weight: 600; text-decoration: none; }

.promo-strip { background: #fff; border-block: 1px solid var(--line); }
.promo-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

.newsletter {
  background: var(--bg);
  color: #fff;
}
.newsletter-inner { text-align: center; max-width: 640px; }
.newsletter h2 { font-family: var(--display); margin: 0 0 0.5rem; }
.newsletter p { color: rgba(255,255,255,0.85); }
.newsletter-note { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #fff;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0;
    background: rgba(15, 20, 25, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    max-height: min(75vh, calc(100vh - 5rem));
    overflow-y: auto;
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav > a:not(.btn),
  .site-nav .nav-dropdown-trigger {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav .nav-dropdown { display: block; width: 100%; }
  .site-nav .nav-dropdown-trigger::after { float: right; margin-top: 0.35rem; }
  .site-nav .nav-dropdown-panel {
    display: none;
    position: static;
    min-width: 0;
    max-height: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.15rem 0;
    color: #f3f5f7;
  }
  .site-nav .nav-dropdown.is-open .nav-dropdown-panel,
  .site-nav .nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
  .site-nav .nav-dropdown-panel a {
    color: #f3f5f7;
    padding: 0.65rem 1.25rem 0.65rem 2rem;
    white-space: normal;
    font-weight: 500;
  }
  .site-nav .nav-dropdown-panel a:hover,
  .site-nav .nav-dropdown-panel a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .site-nav .header-cta {
    margin: 0.75rem 1.25rem 0.25rem;
    text-align: center;
    align-self: stretch;
  }
  body.fleet-nav-open { overflow: hidden; }
  .featured-hero { min-height: 52vh; }
}

.hutts-related-posts { margin: 30px 0; padding: 20px; background: #f9f9f9; border-radius: 5px; }
.hutts-related-posts h3 { margin: 0 0 15px 0; font-size: 1.2em; }
.hutts-related-posts ul { margin: 0; padding: 0; list-style: none; }
.hutts-related-posts li { padding: 8px 0; border-bottom: 1px solid #eee; }
.hutts-related-posts li:last-child { border-bottom: none; }
.hutts-related-posts a { text-decoration: none; color: #333; }
.hutts-related-posts a:hover { color: var(--accent, #0073aa); }
.publisher-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1rem;
}
.publisher-newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1 1 100%;
  justify-content: center;
}
.publisher-newsletter input[type="text"],
.publisher-newsletter input[type="email"] {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.publisher-newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
@media (max-width: 520px) {
  .publisher-newsletter-fields { flex-direction: column; align-items: stretch; }
  .publisher-newsletter input[type="text"],
  .publisher-newsletter input[type="email"] { min-width: 0; width: 100%; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* Archive listings (blog + category) */
.publisher-archive .archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
}
.publisher-archive .per-page-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line, #ddd);
  border-radius: 4px;
}
.publisher-archive .archive-summary {
  margin: 0;
  color: var(--muted, #666);
  font-size: 0.95rem;
}
.publisher-archive .archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.publisher-archive .archive-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line, #eee);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}
.publisher-archive .archive-list a {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}
.publisher-archive .archive-list a:hover {
  color: var(--accent, #2d6a9f);
}
.publisher-archive .archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}
.publisher-archive .archive-pagination a {
  color: var(--accent, #2d6a9f);
  text-decoration: none;
}
.publisher-archive .page-status {
  color: var(--muted, #666);
}

/* Header blog → categories dropdown (light panel; do not inherit white nav link color) */
.site-header .nav-dropdown-panel a.nav-menuitem-topics {
  font-weight: 600;
  border-top: 1px solid #e2ddd4;
  margin-top: 0.15rem;
  padding-top: 0.7rem;
}
.site-header .nav-dropdown-panel--multi {
  min-width: min(440px, 92vw);
  column-count: 2;
  column-gap: 0.25rem;
}
.site-header .nav-dropdown-panel--multi a {
  break-inside: avoid;
}
.header-nav-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
.header-inner { flex-wrap: nowrap; }
.logo { flex: 0 1 auto; text-align: left; }

.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  transform: translateY(1px);
}
.site-header .nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  max-width: min(320px, 90vw);
  max-height: 70vh;
  overflow-y: auto;
  background: #fafaf8;
  color: #1c2430;
  border: 1px solid #d8d2c8;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(15, 20, 25, 0.18);
  z-index: 200;
  padding: 0.4rem 0;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.site-header .nav-dropdown-panel a {
  display: block;
  padding: 0.55rem 1rem;
  color: #1c2430;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.4;
}
.site-header .nav-dropdown-panel a[role="menuitem"]:first-child {
  font-weight: 600;
  border-bottom: 1px solid #e2ddd4;
  margin-bottom: 0.15rem;
  padding-bottom: 0.65rem;
}
.site-header .nav-dropdown-panel a:hover,
.site-header .nav-dropdown-panel a:focus-visible {
  background: #ebe8e2;
  color: #0f2840;
}
.site-header .nav-dropdown-panel a:focus-visible {
  outline: 2px solid var(--accent, #2d6a9f);
  outline-offset: -2px;
}