/* Destination pages: one shared template (tools/build.mjs, buildDestination). Loaded after system.css, so its rules take
   two classes and !important where system.css sets type. Italics are allowed here only: one word per heading. */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-400-italic.woff2') format('woff2');
}

.dest {
  --d-hair: rgba(26, 26, 26, 0.2);
  --d-pad: var(--section);
  --d-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  display: block;
}
html body .dest em { font-style: italic !important; }
.dest figure { margin: 0; overflow: hidden; background: #d9d3c8; }
.dest figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dest :is(.dest-place, .dest-journey, .dest-onward, .dest-notes, .dest-also, .dest-close) { padding: var(--d-pad) var(--edge) 0; }
.dest .dest-close { padding-bottom: var(--d-pad); }

/* Labels: Jost 12px capitals, Grey */
html body .dest .dest-label, html body .dest .dest-crumbs, html body .dest .dest-crumbs a, html body .dest .dest-related, html body .dest .dest-related a {
  font: 400 var(--label)/1.6 var(--font-sans) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--grey) !important;
}
html body .dest .dest-label { text-align: center; margin: 0 0 40px; }
html body .dest .dest-crumbs a, html body .dest .dest-related a { text-decoration: none; }
html body .dest .dest-crumbs a:hover, html body .dest .dest-related a:hover { color: var(--ink) !important; }
html body .dest .dest-heading { font: 300 var(--h1)/1.15 var(--font-serif) !important; color: var(--ink) !important; margin: 0 0 32px; }

/* 1 · Arrival: the full screen, the photograph slowly closing in, the names at the foot */
.dest-arrival { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); display: flex; align-items: flex-end; justify-content: center; }
.dest-hero, .dest-hero picture { position: absolute; inset: 0; }
.dest-hero img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.dest-arrival::before, .dest-arrival::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; pointer-events: none; }   /* above the photograph */
.dest-arrival::before { top: 0; height: 240px; background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.5) 35%, rgba(10, 10, 10, 0)); }   /* the header words stay legible over a bright sky */
.dest-arrival::after { bottom: 0; height: 75%; background: linear-gradient(to top, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.64) 30%, rgba(10, 10, 10, 0.3) 62%, rgba(10, 10, 10, 0) 100%); }
.dest-arrival-text { position: relative; z-index: 2; padding: 0 var(--gutter) 72px; text-align: center; color: var(--cream); }
html body .dest .dest-display { font: 300 64px/1.1 var(--font-serif) !important; color: var(--cream) !important; margin: 0; text-wrap: balance; }
html body .dest .dest-h1 { font: 400 var(--label)/1.6 var(--font-sans) !important; letter-spacing: 0.28em !important; text-transform: uppercase !important; color: var(--cream) !important; margin: 20px 0 0; text-wrap: balance; }
.dest-arc { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-top: 36px; font: 400 11px/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); }
.dest-arc span { padding-bottom: 0; transform: translateY(5px); }
.dest-arc svg { width: 280px; height: 48px; overflow: visible; flex: none; }
.dest-arc path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dest-draw 1.6s var(--d-ease) 0.6s forwards; }

/* 2 · The place: a centred column between two hairlines, two small photographs floating beside it */
.dest-place { padding-top: 40px !important; }
html body .dest .dest-crumbs { max-width: var(--container); margin: 0 auto 80px; }
.dest-place-col { position: relative; max-width: var(--container); margin: 0 auto; padding: 96px 0; border-top: 1px solid var(--d-hair); border-bottom: 1px solid var(--d-hair); }
html body .dest .dest-place-col p { max-width: 600px; margin: 0 auto; }
html body .dest .dest-place-col p + figure + p { margin-top: 28px; }
.dest-float { position: absolute; }
.dest-float-a { top: 64px; right: 0; width: 180px; height: 200px; }
.dest-float-b { bottom: 64px; left: 0; width: 150px; height: 150px; }

/* 3 · The journey: a tall photograph on the left, the text on the right */
.dest-journey { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 96px; align-items: center; max-width: calc(var(--container) + 2 * var(--edge)); margin: 0 auto; }
.dest-journey-photo { aspect-ratio: 4 / 5; max-width: 100%; }
.dest-journey-text { max-width: 560px; min-width: 0; }
html body .dest .dest-journey-text p + p { margin-top: 20px; }

/* 4 · Onward: three small photographs, each with its name and one line */
.dest-onward-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1000px; margin: 0 auto; padding: 0; }
.dest-onward-list figure { aspect-ratio: 4 / 5; max-width: 100%; margin-bottom: 20px; }
html body .dest .dest-onward-name { font: 400 17px/1.4 var(--font-serif) !important; color: var(--ink) !important; margin: 0 0 6px; }
html body .dest .dest-onward-list p { font-size: 15px !important; line-height: 1.6 !important; color: var(--grey) !important; }

/* 5 · Notes for the journey: two columns of statements, hairlines between them */
.dest-notes-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; column-gap: 64px; max-width: 1000px; margin: 0 auto; padding: 0; border-bottom: 1px solid var(--d-hair); }
html body .dest .dest-notes-list li { padding: 22px 0; border-top: 1px solid var(--d-hair); }

/* 6 · Also by private arrangement: the heading, a vertical hairline, four cards in full colour */
.dest-also { background: var(--paper); }
.dest-also-inner { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); max-width: var(--container); margin: 0 auto; }
html body .dest .dest-also-head { margin: 0; padding-right: 48px; border-right: 1px solid var(--d-hair); align-self: stretch; }
.dest-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: end; gap: 24px; margin: 0; padding: 0 0 0 48px; min-width: 0; }
.dest-cards a { display: block; color: inherit; text-decoration: none; }
.dest-cards figure { aspect-ratio: 200 / 240; max-width: 100%; margin-bottom: 16px; }
.dest-card-name { display: block; font: 400 19px/1.3 var(--font-serif); color: var(--ink); margin-bottom: 6px; }
.dest-card-line { display: block; font: 400 14px/1.6 var(--font-serif); color: var(--grey); }
.dest-cards a:hover .dest-card-name, .dest-cards a:focus-visible .dest-card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dest-cards a:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

/* 7 · Closing */
.dest-close { text-align: center; }
html body .dest .dest-close-line { font: 300 var(--h1)/1.2 var(--font-serif) !important; color: var(--ink) !important; margin: 0 0 32px; }
html body .dest .dest-enquire { display: inline-block; font: 400 var(--label)/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 14px 0 10px; border-bottom: 1px solid var(--ink); margin-right: -0.16em; }
html body .dest .dest-close-note { font-size: 15px !important; color: var(--grey) !important; margin: 40px auto 0; max-width: 600px; }
html body .dest .dest-related { margin-top: 16px; }

/* Motion: everything else that moves on these pages is in css/motion.css; the arc between the two names draws here */
@keyframes dest-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dest-arc path { animation: none; stroke-dashoffset: 0; }
}

/* Tablet: both floating photographs come into the column; the cards swipe */
@media (max-width: 1179px) {
  .dest-place-col { padding: 72px 0; }
  .dest-float { position: static; }
  .dest .dest-float-a { width: min(360px, 100%); height: auto; aspect-ratio: 4 / 5; margin: 40px auto; }
  html body .dest .dest-place-col p + figure + p { margin-top: 0; }
  .dest .dest-float-b { width: min(360px, 100%); height: auto; aspect-ratio: 3 / 2; margin: 40px auto 0; }
  .dest-journey { column-gap: 56px; }
  .dest-also-inner { grid-template-columns: minmax(0, 1fr); }
  html body .dest .dest-also-head { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid var(--d-hair); margin-bottom: 32px; }
  .dest-cards { display: flex; justify-content: flex-start; gap: 20px; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dest-cards::-webkit-scrollbar { display: none; }
  .dest-cards li { flex: 0 0 200px; scroll-snap-align: start; }
}

/* Phone */
@media (max-width: 767px) {
  html body .dest .dest-display { font-size: 40px !important; }
  .dest-arrival-text { padding-bottom: 56px; }
  .dest-arc { gap: 10px; }
  .dest-arc svg { width: min(200px, 48vw); height: 36px; }
  html body .dest .dest-crumbs { margin-bottom: 48px; }
  .dest-place-col { padding: 56px 0; }
  .dest :is(.dest-float-a, .dest-float-b) { width: 100%; aspect-ratio: 3 / 2; }
  .dest-journey { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .dest-journey-photo { aspect-ratio: 4 / 5; }
  .dest-onward-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dest-onward-list figure { aspect-ratio: 3 / 2; }
  .dest-notes-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .dest-cards { margin-right: calc(-1 * var(--edge)); padding-right: var(--edge); }
}

/* ── The house's private edit (tools/build.mjs, buildEdit): the destination pages as five or six pleasures ──
   Opening: the photograph, the name, one italic line, then the page's heading in small capitals.
   Pleasures alternate between three modules: a = full width with the words below (label left, text right),
   b = a photograph 62% wide pushed right with the words in the left margin, c = its mirror. Photographs are 3:2 here
   and 4:5 on phones. The practical notes close the page in small type, always visible. */
html body .edit .ed-line { font: italic 300 22px/1.4 var(--font-serif) !important; color: var(--cream) !important; margin: 14px 0 0; text-wrap: balance; }
html body .edit .ed-line em { font-style: italic !important; }
html body .edit .dest-h1 { margin-top: 22px; }
.edit .ed-body { padding: 40px var(--edge) var(--d-pad); }
html body .edit .dest-crumbs { margin-bottom: 0; }
html body .edit .ed-kicker { font: 400 var(--label)/1.6 var(--font-sans) !important; letter-spacing: 0.16em !important; text-transform: uppercase !important; color: var(--grey) !important;
  max-width: var(--container); margin: 18vh auto 32px; }
.edit .ed-p { max-width: var(--container); margin: 0 auto; }
.edit .ed-p + .ed-p { margin-top: 18vh; }
.edit .ed-photo { aspect-ratio: 3 / 2; max-width: 100%; }
html body .edit .ed-label { font: 400 var(--label)/1.6 var(--font-sans) !important; letter-spacing: 0.16em !important; text-transform: uppercase !important; color: var(--grey) !important; margin: 0; }
html body .edit .ed-venue { text-transform: none; letter-spacing: 0.04em; color: var(--ink); }
html body .edit .ed-text { font: 300 20px/1.6 var(--font-serif) !important; color: var(--ink) !important; margin: 0; max-width: 34em; }
/* a: the photograph runs the full width of the screen; the label sits left, the text right */
.edit .ed-p--a .ed-photo { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.edit .ed-p--a .ed-words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; padding-top: 36px; }
/* b and c: an inset photograph 62% wide, the words in the margin beside it, set low */
.edit :is(.ed-p--b, .ed-p--c) { display: grid; column-gap: 56px; align-items: end; }
.edit .ed-p--b { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.edit .ed-p--c { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
.edit .ed-p--b .ed-photo { grid-column: 2; grid-row: 1; }
.edit .ed-p--b .ed-words { grid-column: 1; grid-row: 1; }
.edit :is(.ed-p--b, .ed-p--c) .ed-words { display: grid; row-gap: 14px; padding-bottom: 4px; }
/* the closing lines and the enquiry, with room around them */
.edit .ed-closing { max-width: 720px; margin: 18vh auto 0; text-align: center; }
html body .edit .ed-closing p { font: italic 300 clamp(24px, 2.6vw, 34px)/1.4 var(--font-serif) !important; color: var(--ink) !important; margin: 0; text-wrap: balance; }
html body .edit .ed-closing p + p { margin-top: 20px; }
.edit .ed-enquiry { text-align: center; margin: 9vh auto 0; }
/* notes for the journey: small type, two columns on wide screens, never hidden */
.edit .ed-notes { max-width: var(--container); margin: 18vh auto 0; padding-top: 40px; border-top: 1px solid var(--d-hair); }
html body .edit .ed-notes-head { font: 400 var(--label)/1.6 var(--font-sans) !important; letter-spacing: 0.16em !important; text-transform: uppercase !important; color: var(--grey) !important; margin: 0 0 28px; }
.edit .ed-notes-body { column-count: 2; column-gap: 64px; }
html body .edit .ed-notes-body p, html body .edit .ed-notes-list li, html body .edit .ed-also { font-size: 15px !important; line-height: 1.65 !important; color: var(--grey) !important; }
html body .edit .ed-notes-body p { margin: 0 0 14px; break-inside: avoid; }
.edit .ed-notes-list { list-style: none; margin: 0; padding: 0; }
html body .edit .ed-notes-list li { padding: 10px 0; border-top: 1px solid var(--d-hair); break-inside: avoid; }
html body .edit .ed-also { margin: 32px 0 0; }
html body .edit .ed-also a { color: var(--ink); text-underline-offset: 3px; }

/* Tablet: the words sit under the inset photographs */
@media (max-width: 1023px) {
  .edit :is(.ed-p--b, .ed-p--c) { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .edit .ed-p--b .ed-photo, .edit .ed-p--b .ed-words { grid-column: 1; grid-row: auto; }
  .edit .ed-p--b .ed-photo { width: 80%; margin-left: auto; }
  .edit .ed-p--c .ed-photo { width: 80%; }
  .edit .ed-p--a .ed-words { column-gap: 40px; }
}
/* Phone: 4:5 photographs, alternately full width, offset right (48px gutter on the left) and offset left; the label's
   category on one line and the venue on the next, the text beneath */
@media (max-width: 767px) {
  html body .edit .ed-line { font-size: 19px !important; }
  .edit .ed-body { padding-top: 32px; }
  html body .edit .ed-kicker { margin-top: 12vh; }
  .edit .ed-p + .ed-p { margin-top: 12vh; }
  .edit .ed-photo { aspect-ratio: 4 / 5; }
  .edit .ed-p--a .ed-photo { width: 100vw; margin-left: calc(-1 * var(--edge)); }
  .edit .ed-p--b .ed-photo { width: auto; margin: 0 calc(-1 * var(--edge)) 0 calc(48px - var(--edge)); }
  .edit .ed-p--c .ed-photo { width: auto; margin: 0 calc(48px - var(--edge)) 0 calc(-1 * var(--edge)); }
  .edit .ed-p--a .ed-words, .edit :is(.ed-p--b, .ed-p--c) .ed-words { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-top: 22px; }
  html body .edit .ed-venue { display: block; }
  .edit .ed-sep { display: none; }
  html body .edit .ed-text { font-size: 18px !important; }
  .edit .ed-closing, .edit .ed-notes { margin-top: 12vh; }
  .edit .ed-notes-body { column-count: 1; }
}
