:root {
  --md-default-fg-color--lightest: #dde3ea;
  --surface-0: #f4efe7;
  --surface-1: #fffdf9;
  --surface-2: #ffffff;
  --surface-3: #f7f2ea;
  --ink-0: #1b2430;
  --ink-1: #334155;
  --ink-2: #64748b;
  --accent: #0f766e;
  --accent-soft: #d9f3ef;
  --line: #d9dfdd;
  --shadow: 0 16px 40px rgba(27, 36, 48, 0.08);
  --max-width: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-0);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f4efe7 48%, #efe8dc 100%);
  font-family: var(--serif);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

img {
  max-width: 100%;
  height: auto;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 14px;
  background: #10212a;
  color: #e8f0f4;
}

pre code {
  color: inherit;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.09);
  font-size: 0.92em;
}

blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid #9bc7c0;
  color: var(--ink-1);
}

iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(14, 12, 9, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header__inner,
.site-footer__inner,
.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  line-height: 1.15;
}

.site-brand__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: #f0ebe2;
  letter-spacing: 0.01em;
}

.site-brand__tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(240, 235, 226, 0.42);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(240, 235, 226, 0.65);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0.8rem;
  right: 0.8rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: #f0ebe2;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: #f0ebe2;
}

.site-header__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(240, 235, 226, 0.72);
  border-radius: 1px;
  transition: transform 240ms ease, opacity 200ms ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 5, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__close {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(240, 235, 226, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 160ms ease;
}

.nav-overlay__close:hover {
  color: #f0ebe2;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}

.nav-overlay__links a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 400;
  color: rgba(240, 235, 226, 0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.nav-overlay__links a:hover {
  color: #f0ebe2;
}

.site-shell {
  padding: 1.4rem 0 0.5rem;
}

.topic-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  background: rgba(14, 12, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topic-nav__inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0.55rem 0 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.topic-nav__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-family: var(--sans);
}

.topic-nav__group span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 235, 226, 0.32);
  margin-right: 0.2rem;
}

.topic-nav__group a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 235, 226, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 160ms ease, color 160ms ease;
}

.topic-nav__group a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f0ebe2;
}

.content-card {
  margin: 0 0 1.25rem;
  padding: 1.6rem;
  border: 1px solid rgba(217, 223, 221, 0.85);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.site-shell > .content-card:last-child {
  margin-bottom: 0;
}

.home-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 241, 0.96)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 30%);
}

.page-header {
  margin-bottom: 1.4rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.page-description,
.eyebrow,
.post-meta,
.post-date,
.post-taxonomy {
  color: var(--ink-2);
  font-family: var(--sans);
}

.eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.85rem;
}

.taxonomy-label {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.taxonomy-chip,
.term-card,
.md-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: var(--accent-soft);
  color: #115e59;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.post-footer-meta {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.taxonomy-row--footer {
  margin-top: 0.7rem;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.25rem;
  align-items: start;
}

.post-main-card {
  min-width: 0;
}

.post-sidebar {
  position: sticky;
  top: 7.4rem;
}

.post-sidebar-card {
  padding: 1rem;
}

.post-sidebar-title {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.taxonomy-stack + .taxonomy-stack {
  margin-top: 1rem;
}

.taxonomy-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.taxonomy-column .taxonomy-chip {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  background: var(--surface-2);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
}

.post-list,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.post-card,
.term-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.post-card__media {
  display: block;
  margin: -1rem -1rem 0.9rem;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.18));
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card h3 {
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.post-card h3 a {
  color: var(--ink-0);
  text-decoration: none;
}

.post-card p {
  margin: 0.25rem 0 0;
}

.post-date,
.post-taxonomy {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
}

.term-card {
  justify-content: space-between;
}

.term-card strong {
  color: var(--ink-0);
}

.term-card span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.taxonomy-hero-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 118, 110, 0.12), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(205, 148, 63, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(250, 246, 239, 0.96));
}

.taxonomy-hero {
  max-width: 48rem;
}

.tag-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.tag-showcase__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(27, 36, 48, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tag-showcase__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(27, 36, 48, 0.1);
  border-color: rgba(15, 118, 110, 0.26);
}

.tag-showcase__label {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-showcase__item strong {
  color: var(--ink-0);
  font-size: 1rem;
  line-height: 1.2;
}

.tag-showcase__item span {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.tag-showcase__item--xl {
  flex: 1 1 260px;
}

.tag-showcase__item--lg {
  flex: 1 1 210px;
}

.tag-showcase__item--md {
  flex: 1 1 180px;
}

.taxonomy-total {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.taxonomy-section-card h2 {
  margin: 0.15rem 0 0;
}

.taxonomy-hero-card--categories {
  background:
    radial-gradient(circle at 10% 25%, rgba(205, 148, 63, 0.14), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(249, 244, 236, 0.96));
}

.terms-grid--dense {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.term-card--tag {
  min-height: 88px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 237, 0.94));
}

.photo-travel-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(205, 148, 63, 0.12), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(15, 118, 110, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(249, 243, 235, 0.96));
}

.post-list--photo {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-card--photo {
  padding-top: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 237, 0.98));
  box-shadow: 0 18px 34px rgba(27, 36, 48, 0.08);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.18;
  color: #13212f;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 4.8rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose .highlight {
  margin: 1rem 0;
}

.site-footer {
  padding: 0;
}

.site-footer__inner {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
}

.pagination a {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .topic-nav {
    top: 70px;
  }

  .content-card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}
