:root {
  --paper: #faf6f2;
  --white: #fffcfa;
  --blush: #f4e7e5;
  --rose: #944b63;
  --pink-ink: #71374c;
  --ink: #392e35;
  --muted: #6d5a64;
  --line: #e8d9db;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
p, h1, h2, h3, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { display: block; width: 100%; object-fit: cover; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-180%); z-index: 5; background: var(--white); padding: .5rem 1rem; }
.skip:focus { transform: none; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner, main, footer { width: min(1330px, 92vw); margin-inline: auto; }
.masthead-inner { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.wordmark { font: 600 clamp(1.9rem, 3.1vw, 2.65rem)/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.wordmark em, h1 em, .section-heading em { color: var(--rose); font-weight: 500; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.8rem, 3.1vw, 2.6rem); font-size: .84rem; font-weight: 600; }
.masthead nav a { padding-block: .45rem; }
section { scroll-margin-top: 1.2rem; }
.journal { padding: clamp(2rem, 5vw, 4.25rem) 0 clamp(3.3rem, 7vw, 6.2rem); }
.journal-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.65rem; }
h1, .section-heading h2 { font: 600 clamp(3.7rem, 8vw, 7rem)/.84 var(--serif); letter-spacing: -.055em; }
.filters, .regions, .destinations { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.filters a, .regions button, .destinations button, #edit-trip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .43rem .77rem; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.filters a[aria-current], .regions button[aria-pressed="true"], .destinations button[aria-pressed="true"] { background: var(--pink-ink); color: white; border-color: var(--pink-ink); }
.filters a:hover, .regions button:hover, .destinations button:hover, #edit-trip:hover { border-color: var(--rose); }
.journal-layout { display: grid; grid-template-columns: minmax(177px, .82fr) minmax(0, 4fr); gap: clamp(1rem, 2.5vw, 2.2rem); align-items: start; }
.journal-sidebar { display: grid; gap: .85rem; position: sticky; top: 1rem; }
.note { background: var(--blush); padding: clamp(1rem, 2vw, 1.55rem); border-radius: 3px; }
.note-title { font: 600 italic 2.3rem/1 var(--serif); letter-spacing: -.04em; }
.note-title span { color: var(--rose); }
.note p { margin: .65rem 0 .85rem; color: var(--muted); font-size: .91rem; }
.note a, .about a, .quote-card a { font-size: .78rem; color: var(--pink-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.map-teaser { display: block; border: 1px solid var(--line); background: var(--white); border-radius: 3px; overflow: hidden; }
.map-teaser canvas { display: block; width: 100%; height: auto; background: #f0e8ef; }
.map-teaser > span { display: flex; justify-content: space-between; gap: .3rem; padding: .7rem .65rem; font-size: .76rem; font-weight: 700; }
.stories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.card-photo { display: block; aspect-ratio: 1.25; overflow: hidden; background: var(--blush); }
.card-photo img { height: 100%; transition: transform .3s ease; }
.card-photo:hover img { transform: scale(1.035); }
.featured-photo { aspect-ratio: .95; }
.cookie-photo { aspect-ratio: 1.27; }
.coffee-photo { aspect-ratio: 1.6; }
.san-juan-photo { aspect-ratio: 1.32; }
.card-copy { padding: .85rem .95rem 1rem; }
.eyebrow { color: var(--pink-ink); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.card h2 { font: 600 clamp(1.45rem, 2.4vw, 2.2rem)/.99 var(--serif); letter-spacing: -.025em; margin: .35rem 0 .42rem; }
.card-copy p:last-child { font-size: .81rem; color: var(--muted); }
.quote-card { background: var(--blush); min-height: 160px; display: grid; align-items: center; }
.quote-card h2 { font-style: italic; margin: .65rem 0; }
.travel-section { border-top: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 4.5rem) 0 3.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.section-heading h2 { font-size: clamp(3.1rem, 6vw, 5.6rem); margin-top: .65rem; }
.section-heading > p { color: var(--muted); font-size: .9rem; }
.atlas { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr); gap: 1.1rem; align-items: start; }
.atlas-main, .trip { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding: .75rem; }
.map-viewport { aspect-ratio: 1.88; min-height: 290px; position: relative; overflow: hidden; background: #f0e8ef; touch-action: pan-y; }
.map-viewport:active { cursor: grabbing; }
#world-map, #map-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
#world-map { cursor: grab; }
#map-pins { pointer-events: none; }
.map-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; padding: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--pink-ink); border: 2px solid white; box-shadow: 0 1px 3px #51344655; }
.map-pin[aria-pressed="true"] { background: #b15371; outline: 2px solid #71374c; z-index: 2; }
.map-pin:hover { z-index: 3; }
.pin-tooltip { pointer-events: none; opacity: 0; white-space: nowrap; position: absolute; bottom: 23px; left: 50%; transform: translateX(-50%); background: var(--pink-ink); color: white; padding: .16rem .45rem; border-radius: .2rem; font-size: .69rem; }
.map-pin:hover .pin-tooltip, .map-pin:focus-visible .pin-tooltip { opacity: 1; }
.map-controls { display: grid; position: absolute; right: .65rem; bottom: .65rem; border: 1px solid var(--line); border-radius: .25rem; overflow: hidden; }
.map-controls button { background: var(--white); border: 0; border-bottom: 1px solid var(--line); min-width: 34px; min-height: 34px; font-size: 1.14rem; }
.map-controls button:focus-visible { outline-offset: -4px; }
.map-controls button:last-child { border-bottom: 0; }
.map-caption { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .75rem; font-size: .65rem; color: var(--muted); }
.map-caption a { text-decoration: underline; }
.destinations { padding: .5rem .75rem .85rem; }
.trip-image { height: clamp(130px, 16vw, 205px); }
.trip-copy { padding: 1rem 1.2rem 1.15rem; }
.trip h3, .about h2, dialog h2 { font: 600 clamp(2.4rem, 4vw, 3.7rem)/.92 var(--serif); letter-spacing: -.042em; margin: .25rem 0 .45rem; }
.trip-stops { font-size: .85rem; color: var(--muted); }
.trip dl > div { border-top: 1px solid var(--line); padding-top: .62rem; margin-top: .72rem; }
.trip dt { font-weight: 700; font-size: .8rem; }
.trip dd { font-size: .86rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.trip-feedback { margin-top: .45rem; color: var(--pink-ink); font-size: .75rem; }
.trip-feedback:empty { display: none; }
.about { display: grid; grid-template-columns: auto minmax(0,540px); justify-content: center; align-items: center; gap: 1.3rem 3rem; border: 1px solid var(--line); background: var(--blush); padding: 2.15rem 1.25rem; margin-bottom: 3rem; border-radius: 4px; }
.about p:not(.monogram) { color: var(--muted); margin: .65rem 0 .8rem; }
.monogram { font: 600 italic 5rem/.8 var(--serif); color: var(--rose); }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; color: var(--muted); font-size: .77rem; }
.footer-brand { font: 600 1.4rem/1 var(--serif); }
dialog { width: min(690px, calc(100vw - 1.5rem)); max-height: 88vh; border: 1px solid var(--line); border-radius: 5px; padding: 0; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #392e3599; }
body:has(dialog[open]) { overflow: hidden; }
.story-shell { position: relative; }
.story-photo { height: min(34vh, 300px); }
.close { position: absolute; right: .7rem; top: .7rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--white); font-size: 1.5rem; line-height: 1; }
.story-copy, #trip-form { padding: clamp(1.1rem, 5vw, 2.5rem); }
.story-copy h3 { font: 600 1.65rem/1.1 var(--serif); margin-top: 1rem; }
.story-copy h2 { margin-bottom: .8rem; }
.story-copy p + p, .story-copy li + li { margin-top: .55rem; }
.story-copy a { color: var(--pink-ink); text-decoration: underline; }
#trip-form label { display: block; font-size: .88rem; font-weight: 700; margin: .8rem 0; }
#trip-form textarea { display: block; width: 100%; padding: .55rem; margin-top: .27rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; resize: vertical; }
.edit-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.edit-actions button { padding: .42rem .75rem; border-radius: 4px; border: 1px solid var(--line); background: var(--white); }
.edit-actions button[type="submit"] { color: white; background: var(--pink-ink); }
#edit-status { color: var(--rose); font-size: .84rem; margin-bottom: .45rem; }
@media(max-width: 950px) {
  .journal-layout { grid-template-columns: minmax(148px,.9fr) minmax(0,3fr); }
  .stories { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 710px) {
  .masthead-inner { flex-wrap: wrap; padding: .7rem 0; min-height: 0; }
  .masthead nav { font-size: .76rem; }
  .journal-layout, .atlas { grid-template-columns: 1fr; }
  .journal-sidebar { position: static; display: grid; grid-template-columns: 1fr minmax(112px,.65fr); align-items: stretch; }
  .map-teaser { align-self: start; }
  .map-viewport { min-height: 245px; }
  .trip-image { height: 150px; }
}
@media(max-width: 400px) {
  .journal-sidebar { grid-template-columns: 1fr; }
  .map-teaser { display: none; }
  .stories { gap: .52rem; }
  .card-copy { padding: .6rem; }
  .card h2 { font-size: 1.38rem; }
  .about { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.studio { padding: clamp(2rem, 5vw, 4.5rem) 0 5rem; }
.studio h1 { margin-bottom: 1.75rem; }
.studio-layout { display: grid; grid-template-columns: minmax(15rem,.72fr) minmax(0,1.65fr); gap: 1rem; align-items: start; }
.studio-panel { background: #fffdfa; border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.65rem); }
.studio-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.studio h2 { margin: 0; font: 600 clamp(1.85rem, 4vw, 2.45rem)/1.1 var(--serif); }
.studio h3 { margin: 0; font-size: 1rem; }
#post-status { background: #f0e3e4; color: #69354a; border-radius: 999px; padding: .3rem .65rem; font-size: .85rem; }
#post-list, #photo-list { list-style: none; margin: 1rem 0 0; padding: 0; }
#post-list li + li { margin-top: .4rem; }
#post-list button { width: 100%; text-align: left; border: 1px solid transparent; border-radius: .35rem; background: transparent; padding: .6rem; line-height: 1.3; font: inherit; color: inherit; cursor: pointer; }
#post-list button:hover, #post-list button[aria-current] { background: #f4eaeb; border-color: #d9bfc7; }
#post-list span { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
#post-fields { min-width: 0; border: 0; padding: 0; margin: 1.15rem 0 0; }
#post-fields > label, .studio-fields label, #photo-list label { display: block; font-weight: 600; font-size: .95rem; }
#post-fields > label { margin-top: 1rem; }
.studio-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(8rem,1fr); gap: .75rem; }
#post-fields :is(input:not([type=file]),select,textarea) { display: block; width: 100%; min-width: 0; padding: .65rem .75rem; margin-top: .3rem; background: #fff; border: 1px solid #bfa9b1; border-radius: .35rem; color: inherit; font: 400 1rem/1.5 var(--sans); }
#post-fields textarea { resize: vertical; }
.studio-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .5rem .85rem; background: #fffdfa; border: 1px solid #bfa9b1; border-radius: .4rem; color: #552a3e; font: 600 .9rem/1.25 var(--sans); cursor: pointer; }
.studio-button:hover { background: #f4eaeb; }
.studio-button:disabled { opacity: .55; cursor: default; }
.studio-primary { background: #71394e; border-color: #71394e; color: white; }
.studio-primary:hover { background: #572d3e; }
.studio-photos { margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.studio-help, .optional, #list-message { color: var(--muted); font-size: .9rem; font-weight: 400; }
#editor-message { font-size: .95rem; color: #69354a; }
#editor-message:empty, #list-message:empty { display: none; }
.studio-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.studio-actions a { text-decoration: underline; }
#photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem,1fr)); gap: .75rem; }
#photo-list li { padding: .6rem; border: 1px solid var(--line); border-radius: .4rem; }
#photo-list img { display: block; width: 100%; height: 8rem; object-fit: cover; border-radius: .25rem; margin-bottom: .45rem; }
.photo-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.photo-actions button { background: none; border: 0; padding: .25rem 0; color: #69354a; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.upload-label { position: relative; overflow: hidden; }
.upload-label:focus-within { outline: 2px solid #71394e; outline-offset: 2px; }
.upload-label:has(input:disabled) { opacity: .55; cursor: default; }
#photo-input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: inherit; }
.story-paragraph { white-space: pre-line; }
.story-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; margin-top: 1.1rem; }
.story-gallery img { width: 100%; height: auto; border-radius: .35rem; }
@media (max-width: 760px) { .studio-layout { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .studio-fields { grid-template-columns: 1fr; } }

.review-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.review-filters label { font-weight: 600; font-size: .95rem; flex: 1 1 10rem; }
.review-filters select { display: block; margin-top: .3rem; width: 100%; padding: .6rem; border: 1px solid #bfa9b1; border-radius: .35rem; color: inherit; background: var(--white); font: inherit; }
.places-section .review-filters { max-width: 35rem; }
#places-message { color: var(--muted); }
.review-fields { min-width: 0; margin: 1.15rem 0 0; padding: .9rem; border: 1px solid var(--line); border-radius: .4rem; }
.review-fields legend, .review-fields label { font-size: .95rem; font-weight: 600; }
.review-fields .review-filters { margin-bottom: .65rem; }
.place-meta { display: flex; flex-wrap: wrap; gap: .15rem .65rem; align-items: baseline; color: var(--muted); font-size: .9rem; margin: .4rem 0; }
.place-meta strong { color: var(--ink); }
#story-review { margin-bottom: .9rem; }
