@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@400;500;600;700&display=swap');

.travel-journal {
  --canvas: #edf1e7;
  --paper: #fffdf4;
  --ink: #172b24;
  --muted: #475e50;
  --rule: #b7c7b6;
  --accent: #214e3e;
  --accent-ink: #fffdf4;
  --body: 'DM Sans', sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
}
.travel-journal :is(button, .action, input) { border-radius: .25rem; }
.travel-home { max-width: 1380px; margin: auto; padding: clamp(2rem, 6vw, 6rem) 5vw; }
.travel-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.travel-intro h1 { font-size: clamp(4rem, 9vw, 9rem); font-weight: 400; letter-spacing: -.04em; }
.travel-intro p { max-width: 33ch; margin: 1.15rem 0; }
.travel-hero figure { background: var(--paper); padding: .8rem; border: 1px solid var(--rule); }
.travel-hero img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.travel-hero figcaption { padding: .65rem .25rem .15rem; }
.travel-steps { margin-top: 3.2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
.travel-steps h2 { font-size: 2rem; font-weight: 400; margin-bottom: .45rem; }
.travel-studio { max-width: 1400px; margin: auto; display: grid; grid-template-columns: minmax(225px, .75fr) minmax(0, 2fr); gap: clamp(1rem, 3vw, 3rem); padding: 2.5rem 5vw 4rem; }
.journey-controls { align-self: start; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 0 .25rem 1rem; }
.journey-controls h2 { font-size: 2rem; font-weight: 400; }
.journey-controls nav { padding-top: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.journey-controls ol { padding-left: 1.25rem; }
.journey-controls li { margin: .35rem 0; }
.travel-studio .settings, .date-fields { display: grid; gap: .8rem; }
.travel-edition { background: var(--paper); padding: clamp(1.15rem, 4vw, 3.8rem); border: 1px solid var(--rule); }
.travel-journal .edition-cover { display: grid; align-items: center; grid-template-columns: 1fr .82fr; gap: 1.2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.travel-journal .edition-cover h1 { font-size: clamp(3rem, 6vw, 6.2rem); font-weight: 400; }
.travel-journal .edition-cover p + p, .travel-journal .author { margin-top: .55rem; }
.travel-journal .cover-feature img { height: auto; aspect-ratio: 4 / 3; }
.travel-journal .chapter { display: grid; grid-template-columns: minmax(105px, .6fr) minmax(0, 2fr); gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.travel-journal .chapter h2 { font-size: 2.65rem; font-weight: 400; }
.travel-journal .chapter-place { color: var(--muted); margin-top: .4rem; font-size: .9rem; }
.travel-journal .memory { display: grid; gap: .6rem; padding: 0 0 1rem; }
.travel-journal .memory + .memory { padding-top: 1rem; border-top: 1px solid var(--rule); }
.travel-journal .post-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(126px, 100%), 1fr)); gap: .45rem; }
.travel-journal .post-photos img { height: auto; aspect-ratio: 4 / 3; }
.day-editor { margin-top: .7rem; font-size: .83rem; }
.day-editor summary { cursor: pointer; }
.day-editor form { display: grid; gap: .5rem; margin-top: .5rem; }
@media screen and (max-width: 820px) {
  .travel-hero, .travel-studio { grid-template-columns: 1fr; }
  .journey-controls { position: static; max-height: none; }
  .date-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 520px) {
  .travel-steps, .travel-journal .edition-cover, .travel-journal .chapter, .date-fields { grid-template-columns: 1fr; }
}
@media print {
  .travel-journal .edition-cover, .travel-journal .chapter { display: block; }
}
