/* ============================================
   rodneycornelius.com — shared stylesheet
   Design system: paper / sage / ink / ochre
   ============================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/fraunces-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/work-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/work-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --paper: #EFEAE0;
  --ink: #232825;
  --sage: #5C6F66;
  --sage-soft: #5C6F6633;
  --ochre: #C2783C;
  --photo: #DCD5C6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

img { max-width: 100%; display: block; border-radius: 3px; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  background: rgba(239, 234, 224, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--sage-soft);
  padding: 22px 0;
}
nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { border-bottom-color: var(--sage); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sage-soft);
  border-radius: 3px;
  width: 36px;
  height: 32px;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px 0;
}

.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sage);
  border: 1px solid var(--sage-soft);
  border-radius: 2px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tag.ochre {
  color: var(--ochre);
  border-color: #C2783C55;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  font-weight: 200;
  color: var(--sage);
}
.hero p.lede {
  font-size: 19px;
  max-width: 480px;
  color: #232825cc;
  margin: 0 0 28px 0;
}

/* ---------- Spotlight ---------- */
.now-block {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}
.spotlight {
  flex: 1 1 320px;
  border-left: 2px solid var(--ochre);
  padding: 14px 20px;
  background: #C2783C0d;
  border-radius: 0 4px 4px 0;
}
.spotlight .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  display: block;
  margin-bottom: 6px;
}
.spotlight .line { font-size: 16px; }
.spotlight .stamp { margin-top: 10px; }

.insta-now { flex: 1 1 240px; }
.insta-now-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}
.insta-now behold-widget {
  display: block;
  border-radius: 3px;
  overflow: hidden;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--sage-soft);
}
section:last-of-type { border-bottom: none; }
section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 18px 0;
}
section p { max-width: 560px; }

.more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- Photo placeholders / images ---------- */
.photo {
  background: var(--photo);
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 120px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #232825aa;
  padding: 8px 10px;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Travel rotator (homepage) ---------- */
.rotator {
  position: relative;
  min-height: 240px;
  margin-top: 22px;
  border-radius: 3px;
  overflow: hidden;
}
.rotator-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.rotator-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.rotator-slide .photo {
  height: 100%;
  min-height: 240px;
  border-radius: 3px;
  align-items: flex-end;
}
.rotator-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}
.rotator-meta .tag { background: var(--paper); }
.rotator-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.rotator-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-soft);
}
.rotator-dots .dot.active { background: var(--sage); }
.rotator-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.rotator-prev, .rotator-next {
  background: none;
  border: 1px solid var(--sage);
  color: var(--sage);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.rotator-prev:hover, .rotator-next:hover {
  background: var(--sage);
  color: var(--paper);
}

/* ---------- Travel feature card (homepage Latest Dispatch) ---------- */
.travel-feature { margin-top: 24px; }
.travel-feature .photo.large { min-height: 240px; margin-bottom: 14px; }
.travel-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.travel-feature h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 8px 0;
}

/* ---------- Teaser cards (Music, Tech) ---------- */
.teaser {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.teaser .content { max-width: 480px; }
.teaser .arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  color: var(--sage);
  line-height: 1;
  margin-top: 6px;
}

.soundcloud-embed { margin-top: 20px; max-width: 480px; }
.soundcloud-embed iframe { display: block; border-radius: 3px; }
.soundcloud-credit {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.soundcloud-credit a { color: var(--sage); text-decoration: none; }
.soundcloud-credit a:hover { text-decoration: underline; }

/* ---------- Connect / Find Me Around ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  max-width: 480px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border: 1px solid var(--sage-soft);
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.link-card svg { color: var(--sage); flex-shrink: 0; }
.link-card .dest { color: var(--sage); margin-left: auto; }

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 60px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-right { display: flex; gap: 20px; flex-wrap: wrap; }
footer a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
footer a:hover { border-bottom-color: var(--sage); }

/* ---------- Travel hub page (cards grid) ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
.entry-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--sage-soft);
  padding-bottom: 28px;
}
.entry-card:last-child { border-bottom: none; }
.entry-card .photo { min-height: 220px; margin-bottom: 16px; }
.entry-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px 0;
}
.entry-card p { margin: 0 0 6px 0; }
.entry-card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Travel entry page (individual write-up) ---------- */
.entry-hero-photo { min-height: 320px; margin-bottom: 24px; }
.entry-body { max-width: 640px; }
.entry-body p { margin: 0 0 22px 0; font-size: 17px; }
.entry-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.entry-gallery .photo { min-height: 180px; }
.entry-gallery .full { grid-column: 1 / -1; min-height: 320px; }
.entry-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.entry-nav a { color: var(--sage); text-decoration: none; }
.entry-nav a:hover { text-decoration: underline; }

.video-embed {
  position: relative;
  margin: 28px 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-embed iframe { width: 100%; height: 100%; border: none; }

/* ---------- Privacy policy page ---------- */
.policy-body { max-width: 640px; }
.policy-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 12px 0;
}
.policy-body h2:first-of-type { margin-top: 0; }
.policy-body p { margin: 0 0 16px 0; }
.policy-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 32px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  section h2 { font-size: 26px; }
  .now-block { flex-direction: column; }
  .link-cards { grid-template-columns: 1fr; }
  .entry-gallery { grid-template-columns: 1fr; }
  .entry-gallery .full { grid-column: 1; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--sage-soft);
    border-top: none;
    margin-top: 1px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--sage-soft);
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* ── Section intro tagline ── */
.section-intro {
  color: var(--ink-mid, #555);
  font-size: 16px;
  margin-top: 6px;
  margin-bottom: 0;
}

/* ── Next trip card (bottom of travel entries) ── */
.next-trip-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ink-faint, #e0dbd0);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  margin-top: 48px;
  transition: background 0.15s;
}
.next-trip-card:hover {
  background: var(--photo, #e8e3d8);
}
.next-trip-card .ntc-thumb {
  width: 72px;
  height: 52px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--photo);
}
.next-trip-card .ntc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.next-trip-card .ntc-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
}
.next-trip-card .ntc-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--sage);
  flex-shrink: 0;
}
.entry-nav-top {
  margin-bottom: 8px;
}
.entry-nav-top a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.entry-nav-top a:hover { text-decoration: underline; }

/* ── Trip selector strip ── */
.trip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0 32px 0;
  padding: 12px 0;
  border-top: 1px solid var(--ink-faint, #e0dbd0);
  border-bottom: 1px solid var(--ink-faint, #e0dbd0);
}
.trip-selector a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid, #888);
  white-space: nowrap;
  transition: color 0.15s;
}
.trip-selector a:hover { color: var(--ink, #232825); }
.trip-selector a.current {
  color: var(--sage);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

/* ── Prev trip card ── */
.prev-trip-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ink-faint, #e0dbd0);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  margin-top: 16px;
  transition: background 0.15s;
}
.prev-trip-card:hover { background: var(--photo, #e8e3d8); }
.prev-trip-card .ntc-thumb {
  width: 72px;
  height: 52px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--photo);
}
.prev-trip-card .ntc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.prev-trip-card .ntc-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
}
.prev-trip-card .ntc-arrow {
  margin-right: auto;
  font-size: 20px;
  color: var(--sage);
  flex-shrink: 0;
  order: -1;
}
.entry-bottom-nav {
  margin-top: 48px;
}
