:root {
  color-scheme: light;
  --ink: #1f2520;
  --muted: #667067;
  --line: #d9dfd8;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --moss: #38634f;
  --clay: #a9573f;
  --sky: #dcebf1;
  --shadow: 0 16px 48px rgba(31, 37, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(56, 99, 79, 0.35);
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid rgba(217, 223, 216, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav-item {
  position: relative;
}

nav a,
.nav-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.nav-parent {
  padding: 0;
  cursor: default;
}

.has-submenu {
  padding: 8px 0;
  margin: -8px 0;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 2010;
  display: grid;
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(217, 223, 216, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(31, 37, 32, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: #f1eee7;
  outline: none;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 19, 17, 0.72), rgba(10, 19, 17, 0.34) 52%, rgba(10, 19, 17, 0.08));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  max-width: 760px;
  color: #fffaf0;
  padding-bottom: clamp(28px, 8vh, 74px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c28f;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
}

.hero p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 22px);
}

.content-section,
.plain-page,
.post {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.content-section {
  padding: 64px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading a,
.panel-link {
  color: var(--moss);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.home-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 6vw, 72px);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 19, 17, 0.72), rgba(10, 19, 17, 0.34) 54%, rgba(10, 19, 17, 0.1));
}

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-copy {
  max-width: 780px;
  color: #fffaf0;
  padding-bottom: clamp(28px, 8vh, 74px);
}

.home-hero .eyebrow {
  color: #f0c28f;
}

.home-hero h1 {
  font-size: clamp(54px, 9vw, 112px);
}

.home-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 22px);
}

.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.updates-panel,
.thought-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.updates-panel {
  padding: clamp(22px, 3vw, 34px);
}

.thought-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
}

.thought-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.update-list,
.thought-list {
  display: grid;
  gap: 16px;
}

.update-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.update-item {
  display: grid;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(217, 223, 216, 0.82);
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.42);
}

.update-item:last-child {
  border-bottom: 1px solid rgba(217, 223, 216, 0.82);
}

.update-media {
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1ea;
  color: var(--moss);
  font-weight: 850;
  text-decoration: none;
}

.update-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.update-item h2 {
  margin-top: 7px;
  font-size: clamp(20px, 2.4vw, 28px);
}

.update-item h2 a,
.thought-note h2 a {
  text-decoration: none;
}

.update-item p,
.thought-note p {
  margin: 9px 0 0;
  color: var(--muted);
}

.thought-note {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.thought-note:last-child {
  border-bottom: 0;
}

.thought-note time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.thought-note h2 {
  margin: 6px 0 0;
  font-size: 21px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  min-height: 260px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-card-image {
  min-height: 100%;
}

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

.post-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-card h2 {
  margin-top: 12px;
  font-size: 24px;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  margin: 12px 0 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: #294455;
  font-size: 12px;
  font-weight: 750;
}

.site-footer {
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.post {
  padding: 44px 0 84px;
}

.post-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  margin-bottom: 48px;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
}

.post-hero p {
  color: var(--muted);
  font-size: 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--moss);
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
}

.article-body h2 {
  margin-top: 44px;
  font-size: 32px;
}

.article-body h3 {
  margin-top: 32px;
  font-size: 24px;
}

.article-body p,
.article-body ul,
.article-body blockquote,
.article-body pre {
  margin: 18px 0;
}

.article-body blockquote {
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--clay);
  color: #4d564f;
  font-size: 20px;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e9ece4;
  font-size: 0.9em;
}

.article-body pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: #1f2520;
  color: #f7f5ef;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-body img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.missing-media {
  display: block;
  margin: 1.25rem auto;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.wordpress-body {
  max-width: 980px;
}

.wordpress-body > * {
  margin: 22px 0;
}

.wordpress-body h2,
.wordpress-body .has-text-align-center {
  text-align: center;
}

.wordpress-body figure {
  margin: 0;
}

.wordpress-body .wp-block-image {
  line-height: 0;
}

.wordpress-body .wp-block-image img,
.wordpress-body .wp-block-media-text__media img,
.wordpress-body .wp-block-video video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wordpress-body .wp-block-video {
  margin: 0;
}

.wordpress-body .wp-block-columns {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
}

.wordpress-body .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.wordpress-body .wp-block-media-text {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 24px 0;
}

.wordpress-body .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: minmax(0, 1fr) 42%;
}

.wordpress-body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  grid-column: 2;
}

.wordpress-body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 1;
}

.wordpress-body .wp-block-media-text__content {
  min-width: 0;
}

.wordpress-body .wp-block-media-text__content > :first-child,
.wordpress-body .wp-block-column > :first-child {
  margin-top: 0;
}

.wordpress-body .wp-block-media-text__content > :last-child,
.wordpress-body .wp-block-column > :last-child {
  margin-bottom: 0;
}

.wordpress-body .wp-block-group {
  margin: 26px 0;
}

.wordpress-body .wp-separator {
  width: 76px;
  margin: 30px auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.plain-page {
  min-height: 70vh;
  padding: 72px 0 96px;
}

.plain-page h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 7vw, 82px);
}

.plain-page p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.legacy-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 28px;
}

.compact-hero h1,
.legacy-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
}

.legacy-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(31, 37, 32, 0.72);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 750;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

body.gallery-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  background: rgba(14, 18, 15, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-figure {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  margin: 0;
}

.gallery-lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 8px;
  background: #111511;
}

.gallery-lightbox-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 24px 20px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(14, 18, 15, 0), rgba(14, 18, 15, 0.82) 42%, rgba(14, 18, 15, 0.92));
  color: #fffaf0;
}

.gallery-lightbox-figure h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 44px);
}

.gallery-lightbox-figure p {
  max-width: 720px;
  margin: 0;
}

.gallery-lightbox-figure .eyebrow {
  color: #f0c28f;
}

.gallery-close,
.gallery-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.12);
  color: #fffaf0;
  cursor: pointer;
}

.gallery-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 30px;
}

.gallery-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 42px;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-close:hover,
.gallery-nav:hover {
  background: rgba(255, 250, 240, 0.22);
}

.gallery-close:focus-visible,
.gallery-nav:focus-visible,
.gallery-tile:focus-visible {
  outline: 3px solid #f0c28f;
  outline-offset: 3px;
}

.gallery-lightbox-description {
  font-size: 14px;
}

.journey-page {
  min-height: calc(100vh - 62px);
}

.journey-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}

.journey-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 62px);
  padding: 28px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.96);
}

.journey-panel h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.journey-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.journey-panel code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e9ece4;
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.map-action,
.pin-composer button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.map-action {
  padding: 7px 13px;
}

.map-action.is-active,
.pin-composer button {
  border-color: var(--moss);
  background: var(--moss);
  color: #fffaf0;
}

.pin-list {
  display: grid;
  gap: 8px;
}

.pin-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pin-item span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.pin-item strong {
  font-size: 15px;
}

.pin-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pin-composer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pin-composer h2 {
  font-size: 18px;
}

.pin-composer label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pin-composer input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.pin-composer pre {
  min-height: 64px;
  max-height: 180px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #1f2520;
  color: #f7f5ef;
  font-size: 12px;
  white-space: pre-wrap;
}

.map-stage {
  min-width: 0;
  min-height: calc(100vh - 62px);
}

.journey-map {
  width: 100%;
  height: calc(100vh - 62px);
  min-height: 620px;
  background: var(--sky);
}

.map-popup {
  width: min(280px, 70vw);
}

.map-popup img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.map-popup p {
  margin: 0 0 3px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.map-popup h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.map-popup span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.map-popup a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--moss);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.map-fallback {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 24px;
  color: var(--muted);
}

.essays-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.essays-header {
  margin-bottom: 30px;
}

.essays-header h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.essay-timeline {
  display: grid;
  gap: 28px;
}

.essay-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.essay-date {
  position: sticky;
  top: 96px;
  display: grid;
  justify-items: end;
  gap: 0;
  padding-top: 8px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.essay-date span,
.essay-date small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.essay-date strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.essay-main {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.essay-main header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.essay-main header a {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.18;
  text-decoration: none;
}

.essay-main header time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.essay-content {
  color: #384139;
  font-size: 18px;
  line-height: 1.9;
}

.essay-content p {
  max-width: none;
  margin: 0 0 18px;
  color: inherit;
}

.essay-content p:last-child {
  margin-bottom: 0;
}

.admin-page {
  min-height: 80vh;
}

.admin-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 68px);
}

.admin-header p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.admin-header code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e9ece4;
}

.admin-header a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 1fr);
  gap: 18px;
}

.admin-editor,
.admin-form,
.admin-map-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 520px;
  padding: 16px;
}

.admin-toolbar {
  display: flex;
  gap: 8px;
}

.admin-toolbar button,
.admin-form button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

#save-pins {
  border-color: var(--moss);
  background: var(--moss);
  color: #fffaf0;
}

.admin-status {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e9ece4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-status[data-mode="dirty"] {
  background: #fff0d6;
  color: #80521e;
}

.admin-status[data-mode="saved"] {
  background: #e4f1e8;
  color: var(--moss);
}

.admin-status[data-mode="error"] {
  background: #fae1de;
  color: #9a3324;
}

.admin-pin-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.admin-pin-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-pin-item.is-active {
  border-color: var(--moss);
  box-shadow: inset 4px 0 0 var(--moss);
}

.admin-pin-item span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
}

.admin-pin-item strong {
  font-size: 15px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

#delete-pin {
  grid-column: 1 / -1;
  border-color: #d7aaa1;
  background: #fae1de;
  color: #9a3324;
}

.admin-map-wrap {
  grid-column: 1 / -1;
  overflow: hidden;
}

.admin-map {
  height: 520px;
  background: var(--sky);
}

.review-page h1 {
  max-width: 780px;
}

.review-page {
  width: min(980px, calc(100% - 40px));
}

.review-page .back-link {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  margin-top: 38px;
}

.review-note {
  position: sticky;
  top: 98px;
  padding-top: 4px;
  border-top: 2px solid var(--ink);
}

.review-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.review-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.review-body {
  max-width: none;
  margin: 0;
}

.review-body > p:first-child {
  margin-top: 0;
  color: #384139;
  font-size: 20px;
}

.review-body h2,
.review-body h3 {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 46px;
  font-size: 25px;
}

.review-body h2::after,
.review-body h3::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.archive-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(120px, 0.35fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time,
.archive-list span {
  color: var(--muted);
  font-size: 14px;
}

.archive-list a {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    overflow: hidden;
  }

  nav {
    flex: 1;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-link {
    white-space: nowrap;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .nav-submenu {
    position: static;
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    padding: 0;
    color: var(--muted);
    font-size: 13px;
  }

  .hero {
    min-height: 68vh;
  }

  .post-grid,
  .post-card,
  .post-hero,
  .gallery-grid,
  .home-board,
  .gallery-figure,
  .review-layout,
  .journey-shell,
  .admin-grid,
  .admin-form,
  .essay-card,
  .archive-list li {
    grid-template-columns: 1fr;
  }

  .essay-date {
    position: static;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .essay-date strong {
    font-size: 18px;
  }

  .review-note {
    position: static;
  }

  .essay-main header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-panel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-stage,
  .journey-map {
    height: 72vh;
    min-height: 520px;
  }

  .post-card-image {
    aspect-ratio: 16 / 10;
  }

  .post-hero img {
    aspect-ratio: 16 / 10;
  }

  .home-page {
    width: min(100% - 32px, 1180px);
    padding-top: 38px;
  }

  .home-hero {
    min-height: 66vh;
  }

  .thought-panel {
    position: static;
  }

}

@media (max-width: 520px) {
  .content-section,
  .plain-page,
  .post,
  .essays-page {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 64vh;
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .post-card-body {
    padding: 20px;
  }

  .update-item {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .update-media {
    min-height: 0;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 34px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-lightbox-figure figcaption {
    padding: 48px 16px 16px;
  }

  .article-body {
    font-size: 17px;
  }

  .journey-panel {
    padding: 22px 16px;
  }

  .map-stage,
  .journey-map {
    height: 68vh;
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .wordpress-body {
    max-width: 760px;
  }

  .wordpress-body .wp-block-columns,
  .wordpress-body .wp-block-media-text,
  .wordpress-body .wp-block-media-text.has-media-on-the-right {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wordpress-body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,
  .wordpress-body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    grid-column: auto;
    grid-row: auto;
  }
}
