/* Instant Gesina Journal
   Layout: a travel journal. Linen paper, ink text, instant-print photos,
   handwritten notes in the margin, and a route that ties the cities together. */
@font-face { font-family: 'Gesina Hand'; src: url('fonts/GesinaHand-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --linen: #F3EDE2;
  --paper: #FFFDF8;
  --ink: #1F2430;
  --ink-soft: #3C4150;
  --muted: #5A5F6B;
  --line: #D9CFBF;
  --vermilion: #A8371C;
  --nile: #A9C6BC;
  --rose: #E7C1BB;
  --shadow: rgba(31, 36, 48, 0.16);
  --on-accent: #FFFDF8;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Gesina Hand', 'Caveat', 'Bradley Hand', cursive;
  --font-script: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.6rem, 6vw, 4.5rem);

  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--vermilion); text-underline-offset: 3px; }
a:hover { color: var(--vermilion); }
:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 64px; }
.band-tight { padding-block: 40px; }

/* Preview note */
.preview-note { background: var(--rose); color: var(--ink); font-size: var(--step--1); }
.preview-note .wrap { padding-block: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-hand); font-size: 2.1rem; font-weight: 700; text-decoration: none; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { text-decoration: none; padding-block: 10px; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--vermilion); }

/* Small type */
.eyebrow { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--vermilion); }
.hand { font-family: var(--font-hand); font-size: 1.85rem; line-height: 1.1; color: var(--vermilion); }
.meta { font-size: var(--step--1); color: var(--muted); }
.crumbs { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--vermilion); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 56px 32px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
.hero-photos { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; padding-top: 16px; }

.prose { max-width: 40rem; display: flex; flex-direction: column; gap: 18px; font-size: 1.125rem; }
.prose h2 { font-size: var(--step-2); margin-top: 12px; }

/* Instant print */
.print { margin: 0; background: var(--paper); padding: 14px 14px 52px; box-shadow: 0 10px 28px var(--shadow); width: 320px; max-width: 100%; }
.print.tilt-left { transform: rotate(-3deg); }
.print.tilt-right { transform: rotate(4deg); width: 230px; margin: -36px 0 0 110px; padding-bottom: 44px; }
.print figcaption { margin-top: 12px; font-family: var(--font-hand); font-size: 1.5rem; text-align: center; color: var(--ink); }
.photo-slot { aspect-ratio: 1 / 1; max-width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: var(--step--1); color: var(--ink); background: var(--nile); }
.photo-slot.rose { background: var(--rose); }
.photo-slot.wide { aspect-ratio: 16 / 10; }
@media (max-width: 560px) {
  .print.tilt-right { margin: -24px 0 0 40px; }
}

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--step-3); }

/* Story cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; }
.card:hover { border-color: var(--vermilion); color: var(--ink); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 1.5rem; line-height: 1.2; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card.soon { border-style: dashed; }

/* Good to know */
.know { background: var(--paper); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.know h2 { font-size: var(--step-2); }
.know ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 12px; }
.know li { padding-left: 4px; }
.know strong { font-weight: 700; }
.check { font-size: var(--step--1); color: var(--vermilion); font-weight: 700; }

.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > * { flex: 1 1 360px; min-width: 0; }

/* Ramen rules: a little numbered list, because the order is the ritual */
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: flex; flex-direction: column; gap: 14px; }
.rules li { counter-increment: rule; display: flex; gap: 14px; align-items: baseline; }
.rules li::before { content: counter(rule); font-family: var(--font-hand); font-size: 2rem; line-height: 1; color: var(--vermilion); min-width: 1.2rem; }

/* The route */
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.stop { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; position: relative; padding: 0 16px 24px 0; }
.stop-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--vermilion); position: relative; z-index: 1; }
.stop-line { position: absolute; top: 8px; left: 18px; right: 0; border-top: 2px dashed var(--vermilion); }
.stop:last-child .stop-line { display: none; }
.stop-leg { font-family: var(--font-hand); font-size: 1.4rem; color: var(--vermilion); line-height: 1; min-height: 1.4rem; }
.stop-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.stop-name.plain { color: var(--muted); }
.stop p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .route { flex-direction: column; }
  .stop { padding: 0 0 24px 34px; }
  .stop-dot { position: absolute; left: 0; top: 4px; }
  .stop-line { top: 22px; bottom: 0; left: 8px; right: auto; border-top: 0; border-left: 2px dashed var(--vermilion); }
}

/* Next stop */
.next { background: var(--nile); }
.next .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.next-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.next .hand { color: var(--ink); }
.next h2 { font-size: var(--step-3); }
.next-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; background: var(--ink); color: var(--linen); }
.btn:hover { background: var(--vermilion); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { border-color: var(--vermilion); color: var(--vermilion); background: transparent; }

/* Booklet band */
.booklet { background: var(--nile); }
.booklet .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.booklet-photo { flex: 1 1 280px; min-width: 0; transform: rotate(-1.5deg); box-shadow: 0 10px 28px var(--shadow); }
.booklet-photo .photo-slot { background: var(--paper); }
.booklet-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.booklet .hand { color: var(--ink); }
.booklet h2 { font-size: var(--step-3); }

/* More links */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.more a { text-decoration: none; border-top: 3px solid var(--vermilion); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.more .place { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.more .ttl { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; }

/* Newsletter */
.letter { background: var(--paper); border: 1px solid var(--line); padding: 36px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; }
.letter-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.letter h2 { font-size: var(--step-2); }
.letter form { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.letter label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); font-weight: 500; }
.letter input { font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px; border: 1px solid var(--muted); background: var(--linen); color: var(--ink); }
.letter .status { flex-basis: 100%; font-size: var(--step--1); color: var(--muted); min-height: 1.2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: var(--step--1); color: var(--muted); }
.site-footer .hand { color: var(--ink); font-size: 1.6rem; }
.site-footer a { color: var(--muted); }

/* Landing: two ways in */
.ways { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-block: 1px solid var(--line); }
.jump .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.jump a { text-decoration: none; padding-block: 8px; }

/* Places */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.place-tile { position: relative; text-decoration: none; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.place-tile:hover { border-color: var(--vermilion); color: var(--ink); }
.place-tile .photo-slot { aspect-ratio: 4 / 3; }
.place-tile .tile-body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place-tile h3 { font-size: 1.6rem; }
.count { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.place-tile.soon { border-style: dashed; }

/* Topics */
.topics { display: flex; flex-wrap: wrap; gap: 12px; }
.topic { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 500; background: var(--paper); }
.topic:hover { border-color: var(--vermilion); color: var(--vermilion); }
.topic .count { color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.about .print { width: 260px; transform: rotate(2deg); }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 40rem; }
.about h2 { font-size: var(--step-3); }
.bio { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .print, .card, .booklet-photo { transition: transform 200ms ease, border-color 200ms ease; }
  .print.tilt-left:hover { transform: rotate(-1deg); }
  .card:hover { transform: translateY(-3px); }
}

/* Hero: one photo, one line, one way in */
.hero-one { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-block: 48px 56px; }
.hero-one .hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-one h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.hero-one .lede { font-size: var(--step-1); max-width: 30rem; color: var(--ink-soft); }
.hero-one .print.big { width: 440px; max-width: 100%; transform: rotate(-2deg); }
.hero-one .print.big .photo-slot { aspect-ratio: 4 / 5; }
.hero-one .hero-photos { flex: 1 1 340px; min-width: 0; padding-top: 0; }
.preview-foot { font-size: var(--step--1); color: var(--muted); }

/* Gesina's own handwriting only for the logo and the red notes; other scribbles stay in Caveat */
.site-footer .hand, .next .hand, .booklet .hand, .rules li::before { font-family: var(--font-script); }

/* Landing hero in the design-preview style: red note, big serif title, two tilted prints */
.hero-one .hand { font-size: 2.1rem; }
.hero-one .hero-photos { display: flex; flex-direction: column; align-items: center; }

/* Real photos inside the instant prints */
.print img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.hero-one .print.tilt-left img { aspect-ratio: 4 / 5; object-position: 50% 70%; }
.about .print img { object-position: 62% 50%; }
.inline-photo { margin: 8px 0; background: var(--paper); padding: 12px 12px 40px; box-shadow: 0 10px 28px var(--shadow); transform: rotate(-1deg); max-width: 100%; }
.inline-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.inline-photo figcaption { margin-top: 10px; font-family: var(--font-script); font-size: 1.4rem; text-align: center; }

/* Photos inside cards and tiles */
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.place-tile > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-one .print.tilt-right img { aspect-ratio: 1 / 1; object-position: 30% 60%; }

/* Keep photos in proportion: the width/height attributes only reserve space */
.print img, .card > img, .place-tile > img, .inline-photo img { height: auto; }
.hero-one .print.tilt-left { width: 360px; }
.hero-one .print.tilt-right { width: 260px; }
.places { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
@media (max-width: 560px) {
  .hero-one .print.tilt-left { width: 280px; }
  .hero-one .print.tilt-right { width: 200px; margin: -28px 0 0 60px; }
  .places { grid-template-columns: 1fr; }
}

/* Not-yet-live items look calm, not clickable */
span.topic:hover { border-color: var(--ink); color: var(--ink); }
div.card.soon:hover, div.place-tile.soon:hover { border-color: var(--line); transform: none; }
span.btn[aria-disabled="true"] { cursor: default; opacity: 0.7; }

/* Calm placeholder for photos still to come */
.photo-slot.soon-slot { background: var(--linen); border: 1.5px dashed var(--line); color: var(--muted); font-family: var(--font-script); font-size: 1.5rem; }

/* In the blog posts themselves, photos are never cropped: the full frame, as shot */
.hero .print img, .inline-photo img { aspect-ratio: auto; object-fit: contain; height: auto; }

/* Polaroid captions in Gesina's own handwriting */
.print figcaption, .inline-photo figcaption { font-family: var(--font-hand); }
