/* Devine Travel. Plain CSS, no framework. Ink and gold come from Aaron's logo. */
@font-face { font-family: "Marcellus"; src: url("/assets/fonts/marcellus-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ink: #18191e;
  --ink-soft: #3d3f47;
  --paper: #f7f2e8;
  --paper-deep: #efe7d6;
  --gold: #d4a93c;
  --gold-deep: #8a6a14;
  --line: #d9cdb0;
  --white: #ffffff;
  --head: 108px;
  --display: "Marcellus", "Times New Roman", serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.panel :focus-visible { outline-color: var(--gold-deep); }

/* Buttons: squared, gold on ink or ink on paper */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--gold); border-radius: 3px; background: var(--gold); color: var(--ink); font-family: var(--text); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.btn:hover { background: #e6c15c; color: var(--ink); }
.btn-line { background: transparent; color: var(--paper); }
.btn-line:hover { background: var(--gold); color: var(--ink); }

/* Header: solid, stays put, thins once the page moves */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid #2c2e36; }
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--head); transition: min-height .22s ease; }
.brand { display: block; flex: none; }
.brand img { width: 248px; height: auto; transition: width .22s ease; }
.site-header.shrunk .bar { min-height: 76px; }
.site-header.shrunk .brand img { width: 186px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--paper); text-decoration: none; font-size: 17px; white-space: nowrap; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.search { position: relative; flex: none; }
.search input { width: 170px; height: 44px; padding: 0 14px; border: 1px solid #55575f; border-radius: 3px; background: #22242b; color: var(--paper); font: inherit; font-size: 16px; }
.search input::placeholder { color: #b9b4a6; }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); padding: 6px; }
.search-results a { display: block; padding: 10px 12px; text-decoration: none; border-radius: 2px; }
.search-results a:hover, .search-results a:focus { background: var(--paper-deep); color: var(--ink); }
.search-results strong { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; }
.search-results span { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.search-results p { margin: 0; padding: 10px 12px; font-size: 16px; }
.icon-btn, .mmenu summary { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid #55575f; border-radius: 3px; background: transparent; color: var(--paper); cursor: pointer; }
.icon-btn svg, .mmenu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mmenu { display: none; }
.mmenu summary { list-style: none; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #2c2e36; border-bottom: 1px solid var(--gold); padding: 8px 20px 18px; }
.mmenu:not([open]) .mmenu-panel { display: none; }
.mmenu-panel a { display: flex; align-items: center; min-height: 52px; color: var(--paper); text-decoration: none; font-family: var(--display); font-size: 24px; border-bottom: 1px solid #2c2e36; }

/* The photo that stays put. Each pane is a window cut through the page: the photo inside is fixed to the
   screen and the pane's own edges clip it, so the page slides over a picture that never moves. */
.pane { position: relative; clip-path: inset(0); }
.backdrop { position: fixed; inset: 0; z-index: 0; }
.backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.backdrop .tall { display: none; }

.hero { min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); display: flex; align-items: flex-end; color: var(--white); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 16, 28, .62) 0%, rgba(10, 16, 28, .28) 38%, rgba(10, 16, 28, 0) 62%); }
.hero-words { position: relative; z-index: 2; width: min(1280px, 100% - 64px); margin-inline: auto; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { font-size: clamp(46px, 5.4vw, 80px); letter-spacing: -0.01em; max-width: 8.5em; text-shadow: 0 2px 22px rgba(8, 12, 22, .45); }
.hero h1 span { white-space: nowrap; }
.hero p { margin: 18px 0 0; max-width: 25em; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.45; text-shadow: 0 1px 14px rgba(8, 12, 22, .6); }

.window { height: 64vh; min-height: 380px; }
.window-top { height: 46vh; min-height: 300px; }
/* Desktop: the words sit over the open water to the right of the ships, clear of the pier */
@media (min-width: 981px) {
  .hero-words { padding-left: 59%; padding-bottom: clamp(56px, 12vh, 120px); }
  .hero::after { background: linear-gradient(to top left, rgba(8, 14, 26, .66) 0%, rgba(8, 14, 26, .3) 34%, rgba(8, 14, 26, 0) 60%); }
}

/* Paper panels */
.panel { position: relative; z-index: 1; background: var(--paper); padding: 104px 0; }
.panel h1, .panel h2 { font-size: clamp(36px, 4.2vw, 58px); margin-bottom: 30px; }
.panel .means h2, .panel .person h2 { font-size: 28px; margin-bottom: 12px; }
.panel .person h2 { margin-top: 4px; }
.saying.first { margin-top: 0; padding-top: 0; border-top: 0; }
.next { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.panel h3 { font-size: 28px; margin-bottom: 12px; }

.plan-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
.plan-grid .lead { font-size: 22px; line-height: 1.55; }
.means { border-top: 1px solid var(--gold-deep); padding-top: 26px; }
.means li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.saying { margin: 76px 0 0; padding-top: 44px; border-top: 1px solid var(--gold-deep); font-family: var(--display); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.14; max-width: 15em; text-wrap: balance; }
.after-saying { margin: 26px 0 0; max-width: 34em; font-size: 20px; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.person { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.person img { width: 210px; height: auto; aspect-ratio: 4 / 5; border-radius: 2px; }
.person h3 { margin-top: 4px; }
.person p { margin: 0; }

.reviews .quote { border-top: 1px solid var(--gold-deep); padding-top: 28px; }
.reviews blockquote { margin: 0; }
.reviews blockquote p { margin: 0; }
.reviews .who { margin: 16px 0 0; color: var(--ink-soft); font-size: 16px; }
.quote-wide blockquote p { font-size: 21px; line-height: 1.6; max-width: 46em; }
.quote-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }

/* Plan my trip: ink panel */
.contact { position: relative; z-index: 1; background: var(--ink); color: var(--paper); padding: 104px 0 96px; }
.contact :focus-visible { outline-color: var(--gold); }
.contact h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 22px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact .lead { font-size: 21px; max-width: 22em; }
.ways { display: grid; gap: 14px; margin-top: 30px; justify-items: start; }
.ways .btn { min-width: 300px; justify-content: flex-start; }
form.trip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
form.trip .full { grid-column: 1 / -1; }
form.trip label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
form.trip input, form.trip textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #6b6d75; border-radius: 3px; background: #22242b; color: var(--paper); font: inherit; font-size: 17px; }
form.trip textarea { min-height: 120px; resize: vertical; }
form.trip input:focus, form.trip textarea:focus { border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: var(--paper); border-top: 1px solid var(--gold); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 64px; align-items: start; }
.foot-logo { width: 230px; height: 230px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--gold); }
.foot .name { font-family: var(--display); font-size: 26px; margin-bottom: 10px; }
.foot-links li { margin: 0; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2c2e36; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 15px; color: #cfc9ba; }
.legal p { margin: 0; }
.legal a { color: #cfc9ba; display: inline-flex; align-items: center; min-height: 44px; }
.legal a:hover { color: var(--gold); }

/* Short pages */
.short { position: relative; z-index: 1; background: var(--paper); padding: 120px 0 130px; min-height: 56vh; }
.short h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 20px; max-width: 14em; }
.short p { font-size: 21px; max-width: 30em; }
.short .btn-dark { margin-top: 14px; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c2e36; color: var(--paper); }

.callbar { display: none; }

@media (max-width: 1080px) {
  .bar { gap: 20px; }
  .nav { gap: 20px; }
  .search input { width: 130px; }
  .plan-grid, .contact-grid { gap: 48px; }
  .team { gap: 40px; }
  .person { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 200px 1fr 1fr; gap: 40px; }
  .foot-logo { width: 200px; height: 200px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .bar > .btn { margin-left: auto; }
  .icon-btn { display: inline-flex; }
  .mmenu { display: block; }
  .mmenu summary { display: inline-flex; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 12px 20px 16px; border-bottom: 1px solid var(--gold); }
  .site-header.search-open .search { display: block; }
  .search input { width: 100%; height: 48px; }
  .search-results { position: static; width: auto; margin-top: 10px; box-shadow: none; }
}

@media (max-width: 760px) {
  :root { --head: 82px; }
  html { scroll-padding-top: 84px; }
  body { font-size: 17px; padding-bottom: 68px; }
  .wrap { width: calc(100% - 40px); }
  .bar { gap: 10px; }
  .icon-btn { margin-left: auto; }
  .brand img { width: 178px; }
  .site-header.shrunk .bar { min-height: 70px; }
  .site-header.shrunk .brand img { width: 160px; }
  .bar > .btn { display: none; }

  .backdrop .wide { display: none; }
  .backdrop .tall { display: block; }
  .hero { min-height: calc(100vh - var(--head) - 68px); min-height: calc(100svh - var(--head) - 68px); }
  .hero::after { background: linear-gradient(to top, rgba(8, 14, 24, .86) 0%, rgba(8, 14, 24, .58) 30%, rgba(8, 14, 24, 0) 58%); }
  .hero-words { width: calc(100% - 40px); padding-bottom: 30px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; margin-top: 12px; }

  .window { height: 56vh; min-height: 320px; margin: 0 14px; border: 1px solid var(--gold-deep); }
  .window-band { background: var(--paper); position: relative; z-index: 1; }

  .panel { padding: 44px 0; }
  .panel h1, .panel h2 { font-size: 34px; margin-bottom: 20px; }
  .panel .means h2, .panel .person h2 { font-size: 25px; margin-bottom: 12px; }
  .window-top { height: 38vh; min-height: 240px; margin-top: 14px; }
  .next .btn { width: 100%; }
  .panel h3 { font-size: 25px; }
  .plan-grid, .team, .quote-pair, .contact-grid, .foot { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid .lead { font-size: 20px; }
  .saying { margin-top: 40px; padding-top: 30px; font-size: 32px; }
  .after-saying { font-size: 18px; }
  .person img { width: 230px; max-width: 100%; }
  .quote-wide blockquote p { font-size: 18px; }
  .quote-pair { margin-top: 36px; }
  .contact { padding: 48px 0 44px; }
  .contact h2 { font-size: 40px; }
  .ways .btn { min-width: 0; width: 100%; white-space: normal; }
  form.trip { grid-template-columns: 1fr; }
  .site-footer { padding: 40px 0 30px; }
  .foot-logo { width: 220px; height: 220px; }
  .legal { margin-top: 28px; }
  .short { padding: 48px 0 40px; min-height: 0; }
  .short p { font-size: 19px; }

  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px; background: var(--ink); border-top: 1px solid var(--gold); }
  .callbar .btn { min-height: 48px; padding: 10px 8px; font-size: 16px; }
}
