/* ═══════════════════════════════════════════════════════
   LOST AND FOUND AT SEA — Ghost Theme
   © Adrift Enterprises, LLC
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --hull:     #0D1B2A;
  --barnacle: #1E2F3D;
  --pewter:   #8FA3B1;
  --salt:     #EEF2F5;
  --amber:    #D4842A;
  --amber-dim: rgba(212,132,42,0.12);
  --amber-line: rgba(212,132,42,0.4);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --max-w: 760px;
  --max-w-wide: 1100px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--hull);
  color: var(--salt);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(143,163,177,0.1);
}

.nav-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  display: block;
}

.nav-title-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--salt);
  letter-spacing: 0.03em;
}

.nav-title-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.nav-title-sub {
  font-style: italic;
  font-weight: 400;
  color: var(--pewter);
  font-size: 14px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--salt); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-insta {
  display: flex;
  align-items: center;
  color: var(--pewter);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-insta:hover { color: var(--amber); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  padding: 7px 16px;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--hull);
}

.nav-toggle { display: none; }


/* ── Masthead banner ── */
.site-masthead {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--hull);
  overflow: hidden;
  padding-top: 72px; /* clear fixed nav */
}

.masthead-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
}

.masthead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,27,42,0.9) 40%, rgba(13,27,42,0.3) 100%);
}

.masthead-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 72px 40px;
  width: 100%;
}

.masthead-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  color: var(--salt);
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.masthead-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.masthead-rule {
  width: 100%;
  height: 2px;
  background: var(--amber);
  opacity: 0.6;
  margin: 14px 0 10px;
  max-width: 520px;
}

.masthead-sub {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 400;
  color: var(--pewter);
  letter-spacing: 0.02em;
  line-height: 1;
}

.masthead-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--pewter);
  max-width: 540px;
  line-height: 1.7;
  margin: 0;
}


.nav-cta:hover {
  background: var(--amber);
  color: var(--hull);
}

/* ─── MAIN ─── */
#site-main { padding-top: 72px; }
/* Homepage masthead handles its own nav clearance */
.site-masthead { margin-top: -72px; padding-top: calc(72px + 0px); }

/* ─── HERO ─── */
/* ── Counter strip — sits between masthead and logbook ── */
.counter-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  width: 100%;
  background: #1E2F3D;
  border-top: 2px solid #D4842A;
  border-bottom: 2px solid #D4842A;
  box-sizing: border-box;
}

.counter-label {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #EEF2F5;
  white-space: nowrap;
}

.counter-display {
  font-family: 'Courier New', monospace;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  color: #D4842A;
  letter-spacing: 0.04em;
  line-height: 1;
}

.counter-hms {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #8FA3B1;
}


/* ─── HORIZON RULE ─── */
.horizon-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(143,163,177,0.2) 20%, rgba(143,163,177,0.2) 80%, transparent 100%);
  margin: 0;
}

/* ─── SECTION LABELS ─── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 56px;
  line-height: 1.1;
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--pewter);
}

/* ─── LOGBOOK / POST LIST ─── */
.logbook { padding: 80px 40px; }

.logbook-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

/* ─── POST CARD ─── */
.post-card {
  background: var(--barnacle);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.post-card:hover { background: #243548; }

.post-card-image-link { display: block; overflow: hidden; }

.post-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

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

.post-card-content {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--amber-line);
}

.post-card-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  display: inline-block;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--salt);
  line-height: 1.25;
  margin-bottom: 12px;
}

.post-card-title a { transition: color 0.2s; }
.post-card-title a:hover { color: var(--amber); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--pewter);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.7;
}

.post-card-read {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--amber);
  transition: letter-spacing 0.2s;
}

.post-card-read:hover { letter-spacing: 0.2em; }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 56px 0 0;
}

.pagination a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  padding: 8px 20px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--amber);
  color: var(--hull);
}

.pagination .page-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--pewter);
}

/* ─── POST FULL ─── */
.post-full, .page-full {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}

.post-header { margin-bottom: 48px; }

.post-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-block;
  margin-bottom: 20px;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--salt);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.post-excerpt {
  font-size: 20px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.6;
  margin-bottom: 20px;
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.post-date, .post-read-time {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.7;
}

/* Feature Image */
.post-feature-image {
  width: 100%;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto 56px;
}

.post-feature-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-feature-image figcaption {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  opacity: 0.6;
  text-align: center;
  margin-top: 12px;
}

/* ─── POST CONTENT ─── */
.gh-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--pewter);
}

.gh-content p { margin-bottom: 1.6em; }

.gh-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--salt);
  margin: 2.5em 0 0.8em;
  line-height: 1.2;
}

.gh-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--salt);
  margin: 2em 0 0.6em;
}

.gh-content h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 1.8em 0 0.5em;
}

.gh-content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(212,132,42,0.4);
}

.gh-content a:hover { text-decoration-color: var(--amber); }

.gh-content strong { color: var(--salt); font-weight: 500; }

.gh-content em { font-style: italic; color: var(--salt); }

.gh-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 8px 24px;
  margin: 2em 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--salt);
  line-height: 1.5;
}

.gh-content blockquote p { margin-bottom: 0; }

.gh-content hr {
  border: none;
  border-top: 1px solid rgba(143,163,177,0.15);
  margin: 2.5em 0;
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}

.gh-content li { margin-bottom: 0.4em; }

.gh-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--barnacle);
  color: var(--amber);
  padding: 2px 6px;
  border-radius: 2px;
}

.gh-content pre {
  background: var(--barnacle);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 1.6em;
  border-left: 2px solid var(--amber-line);
}

.gh-content pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--pewter);
}

.gh-content figure { margin: 2em 0; }

.gh-content figure img { width: 100%; }

.gh-content figcaption {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  opacity: 0.6;
  text-align: center;
  margin-top: 10px;
}

/* Drop cap */
.gh-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 900;
  color: var(--amber);
  float: left;
  line-height: 0.75;
  margin: 0.08em 0.12em 0 0;
}

/* ─── POST FOOTER ─── */
.post-footer {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(143,163,177,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.post-footer-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pewter);
  background: var(--barnacle);
  padding: 4px 10px;
  border-radius: 2px;
  transition: color 0.2s;
}

.post-footer-tag:hover { color: var(--amber); }

.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-share-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.6;
}

.share-link {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--amber);
  transition: opacity 0.2s;
}

.share-link:hover { opacity: 0.7; }

/* ─── POST NAV ─── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
}

.post-nav-item {
  background: var(--barnacle);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}

.post-nav-item:hover { background: #243548; }

.post-nav-next { text-align: right; }

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--salt);
  line-height: 1.3;
}

/* ─── TAG HEADER ─── */
.tag-header {
  padding: 100px 40px 60px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  border-bottom: 1px solid rgba(143,163,177,0.1);
}

.tag-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 16px;
}

.tag-description {
  font-size: 18px;
  color: var(--pewter);
  max-width: 560px;
  margin-bottom: 20px;
}

.tag-count {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.6;
}

/* ─── SUBSCRIBE BAND ─── */
.subscribe-band {
  padding: 100px 40px;
  border-top: 1px solid rgba(143,163,177,0.15);
  border-bottom: 1px solid rgba(143,163,177,0.15);
  text-align: center;
}

.subscribe-inner { max-width: 500px; margin: 0 auto; }

.subscribe-eyebrow {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.subscribe-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 16px;
}

.subscribe-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--pewter);
}

.subscribe-sub {
  font-size: 16px;
  color: var(--pewter);
  margin-bottom: 36px;
  line-height: 1.65;
}

.subscribe-form form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.25);
  border-right: none;
  color: var(--salt);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  border-radius: 2px 0 0 2px;
}

.subscribe-form input[type="email"]::placeholder { color: var(--pewter); opacity: 0.5; }

.subscribe-form button {
  background: var(--amber);
  color: var(--hull);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: opacity 0.2s;
}

.subscribe-form button:hover { opacity: 0.85; }

.subscribe-note, .subscribe-error {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: 16px;
  color: var(--pewter);
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 72px 40px 48px;
  border-top: 1px solid rgba(143,163,177,0.1);
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 280px;
  opacity: 0.85;
  display: block;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-boat {
  width: 28px;
  height: 38px;
  color: var(--salt);
  opacity: 0.6;
}

.footer-wordmark { display: flex; flex-direction: column; align-items: flex-start; }

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--salt);
  letter-spacing: 0.02em;
}

.footer-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: var(--amber);
  margin: 5px 0 4px;
  opacity: 0.6;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pewter);
}


.footer-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-insta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-insta:hover { color: var(--amber); }

.footer-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-counter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.6;
}

.footer-counter-number {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-coords {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--pewter);
  opacity: 0.4;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.4;
}

/* ─── PAGE / ABOUT ─── */
.page-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(143,163,177,0.15);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 16px;
}

.page-excerpt {
  font-size: 19px;
  color: var(--pewter);
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}

/* ─── ERROR ─── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.error-inner { text-align: center; }

.error-code {
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 700;
  color: var(--barnacle);
  line-height: 1;
  margin-bottom: 16px;
}

.error-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 16px;
}

.error-message {
  font-size: 17px;
  color: var(--pewter);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.error-home {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  padding: 10px 24px;
  transition: all 0.2s;
}

.error-home:hover {
  background: var(--amber);
  color: var(--hull);
}

/* ─── KOENIG EDITOR CARDS ─── */

/* Width utilities */
.kg-width-wide,
.gh-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 2em calc(50% - 42.5vw);
}

.kg-width-full,
.gh-content .kg-width-full {
  position: relative;
  width: 100vw;
  margin: 2em calc(50% - 50vw);
}

/* Image card */
.kg-image-card { margin: 2em 0; }
.kg-image-card img { margin: 0 auto; }

/* Gallery card */
.kg-gallery-card { margin: 2em 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; overflow: hidden; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bookmark card */
.kg-bookmark-card {
  margin: 2em 0;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 20px 24px;
}

.kg-bookmark-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--salt);
  margin-bottom: 6px;
}

.kg-bookmark-description {
  font-size: 13px;
  color: var(--pewter);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg-bookmark-icon { width: 16px; height: 16px; }

.kg-bookmark-author, .kg-bookmark-publisher {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  opacity: 0.7;
}

.kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Embed card */
.kg-embed-card {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kg-embed-card iframe { max-width: 100%; }

/* Callout card */
.kg-callout-card {
  margin: 2em 0;
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--barnacle);
  border-left: 3px solid var(--amber);
  border-radius: 0 2px 2px 0;
}

.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }

.kg-callout-text {
  font-size: 16px;
  color: var(--pewter);
  line-height: 1.65;
}

/* Toggle card */
.kg-toggle-card {
  margin: 2em 0;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.15);
  border-radius: 2px;
  padding: 16px 20px;
}

.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.kg-toggle-heading-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--salt);
}

.kg-toggle-content {
  padding-top: 12px;
  font-size: 15px;
  color: var(--pewter);
  line-height: 1.65;
}

/* Divider card */
.kg-divider {
  border: none;
  border-top: 1px solid rgba(143,163,177,0.15);
  margin: 2.5em 0;
}

/* Button card */
.kg-button-card {
  margin: 2em 0;
  display: flex;
  justify-content: center;
}

.kg-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--hull);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.kg-btn:hover { opacity: 0.85; }

/* File card */
.kg-file-card {
  margin: 2em 0;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.15);
  border-radius: 2px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.kg-file-card-contents { flex: 1; }

.kg-file-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--salt);
}

.kg-file-card-caption {
  font-size: 13px;
  color: var(--pewter);
  margin-top: 4px;
}

.kg-file-card-metadata {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  opacity: 0.6;
  margin-top: 6px;
}

/* Audio card */
.kg-audio-card {
  margin: 2em 0;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.15);
  border-radius: 2px;
  overflow: hidden;
}

/* Video card */
.kg-video-card {
  margin: 2em 0;
  position: relative;
  overflow: hidden;
}

.kg-video-card video { width: 100%; display: block; }

/* Header card */
.kg-header-card {
  margin: 2em 0;
  padding: 60px 40px;
  background: var(--barnacle);
  text-align: center;
}

.kg-header-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--salt);
  margin-bottom: 12px;
}

.kg-header-card p {
  font-size: 17px;
  color: var(--pewter);
  margin-bottom: 0;
}

/* Product card */
.kg-product-card {
  margin: 2em 0;
  background: var(--barnacle);
  border: 1px solid rgba(143,163,177,0.15);
  border-radius: 2px;
  padding: 24px;
}

.kg-product-card-image { margin-bottom: 16px; }
.kg-product-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--salt);
  margin-bottom: 8px;
}

/* Code block */
.kg-code-card {
  margin: 2em 0;
}

/* Caption styling for all cards */
.kg-image-card figcaption,
.kg-gallery-card figcaption,
.kg-embed-card figcaption,
.kg-video-card figcaption {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--pewter);
  opacity: 0.6;
  text-align: center;
  margin-top: 10px;
}


/* Hide mobile elements on desktop */.mobile-menu { display: none; }
.mobile-overlay { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }

  .site-masthead { min-height: 280px; }
  .masthead-inner { padding: 56px 20px; }
  .masthead-eyebrow { font-size: 11px; letter-spacing: 0.2em; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-insta { display: none; }
  .nav-toggle { display: flex !important; }
  .site-nav { padding: 0 20px; }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: 1px solid rgba(212,132,42,0.4);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
    transition: all 0.25s;
    transform-origin: center;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile drawer */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(13,27,42,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212,132,42,0.2);
    padding: 24px 24px 32px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .mobile-menu.is-open { transform: translateY(0); }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,0.5);
  }
  .mobile-overlay.is-open { display: block; }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
  }
  .mobile-nav-links li a {
    display: block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(143,163,177,0.1);
    transition: color 0.2s;
  }
  .mobile-nav-links li a:hover { color: var(--salt); }


  .mobile-insta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--pewter);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(143,163,177,0.1);
    margin-bottom: 8px;
  }
  .mobile-nav-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hull);
    background: var(--amber);
    padding: 12px 28px;
    border-radius: 2px;
    text-decoration: none;
    margin-top: 8px;
  }

  .counter-strip { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .logbook { padding: 56px 20px; }
  .post-full, .page-full { padding: 56px 20px; }

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

  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }

  .subscribe-band { padding: 72px 20px; }
  .subscribe-form form { flex-direction: column; }
  .subscribe-form input[type="email"] {
    border-right: 1px solid rgba(143,163,177,0.25);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
  }
  .subscribe-form button { border-radius: 0 0 2px 2px; }

  .site-footer { padding: 56px 20px 40px; }
  .footer-mark { flex-direction: column; text-align: center; }
  .footer-wordmark { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── LOGBOOK PAGE HEADER ─── */
.logbook-page-header {
  padding: 72px 40px 56px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.logbook-page-header-inner {
  max-width: 720px;
}

.logbook-page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--salt);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.logbook-page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.logbook-page-intro {
  font-size: 18px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.7;
  max-width: 580px;
  margin: 0;
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}

@media (max-width: 768px) {
  .logbook-page-header { padding: 48px 20px 40px; }
}

/* ─── STORY SECTION ─── */
.story-section {
  padding: 80px 40px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.story-inner { max-width: 720px; }

.story-text p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--pewter);
  margin-bottom: 22px;
}

.story-text p:last-child { margin-bottom: 0; }

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.8;
  color: var(--amber);
  margin: 8px 14px 0 0;
}

.inline-counter {
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ─── PILLARS SECTION ─── */
.pillars-section {
  background: rgba(30,47,61,0.4);
  padding: 80px 40px;
}

.pillars-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pillar {
  background: rgba(13,27,42,0.6);
  border: 1px solid rgba(143,163,177,0.1);
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}

.pillar:hover { border-color: rgba(212,132,42,0.3); }

.pillar-glyph {
  font-size: 28px;
  margin-bottom: 14px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--salt);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .story-section { padding: 56px 20px; }
  .pillars-section { padding: 56px 20px; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .drop-cap::first-letter { font-size: 56px; }
}

.story-read-more {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,132,42,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.story-read-more:hover { border-color: var(--amber); }
