:root {
  --ink: #0a0b0f;
  --ink-2: #13141a;
  --bone: #eadfca;
  --bone-dim: #b5ab98;
  --lantern: #eaa94e;
  --rule: rgba(234, 223, 202, .18);
  --display: "IM Fell English", Georgia, "Times New Roman", serif;
  --caps: "IM Fell English SC", Georgia, serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 clamp(19px, 1.25vw, 22px)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(38px, 5.2vw, 76px); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }

.eyebrow { font: 400 1em/1 var(--caps); color: var(--lantern); letter-spacing: .08em; margin-bottom: 18px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--bone); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

.button {
  display: inline-block;
  padding: 15px 30px 14px;
  background: var(--lantern);
  color: #16100a;
  font: 400 1.1em/1 var(--caps);
  letter-spacing: .05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .2s, box-shadow .3s;
}
.button:hover { background: #f6c070; box-shadow: 0 0 34px rgba(234, 169, 78, .4); }
.button.is-pending { background: transparent; color: var(--bone-dim); outline: 1px dashed var(--bone-dim); box-shadow: none; cursor: default; }

/* Top bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 10; padding: 22px var(--gutter); }
.bar nav { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.bar a { font: 400 1em/1 var(--caps); letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.bar a:hover { color: var(--lantern); }
.bar .bar-cta { border-bottom: 1px solid var(--lantern); padding-bottom: 4px; color: var(--lantern); }
.menu-toggle { display: none; padding: 8px 0; background: none; border: 0; color: inherit; font: 400 1em/1 var(--caps); letter-spacing: .05em; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 84px var(--gutter) 48px; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 15, .9) 0%, rgba(10, 11, 15, .62) 32%, rgba(10, 11, 15, 0) 56%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 11, 15, 0) 22%);
}
.hero-copy { width: min(100%, 460px); }
.hero-logo { width: clamp(230px, 22vw, 340px); margin: 0 0 22px -12px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(46px, 5.4vw, 80px); margin-bottom: 14px; }
.hero-copy > p { font-size: 1.14em; line-height: 1.4; margin-bottom: 26px; max-width: 26em; }

/* Intro */
.intro { padding: clamp(80px, 12vw, 170px) var(--gutter); max-width: 1120px; margin: auto; }
.lede { font: 400 clamp(30px, 3.9vw, 54px)/1.16 var(--display); margin-bottom: 30px; text-wrap: pretty; }
.intro p:last-child { max-width: 32em; color: var(--bone-dim); }

/* History */
.history { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); padding: clamp(70px, 9vw, 130px) var(--gutter); background: var(--ink-2); border-block: 1px solid var(--rule); }
.history-head { position: sticky; top: 90px; align-self: start; }
.history-head h2 { margin-bottom: 20px; }
.history-head p:last-child { color: var(--bone-dim); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font: 400 1.5em/1.1 var(--display); }
.fire time { color: var(--lantern); text-shadow: 0 0 22px rgba(234, 169, 78, .55); }

/* Places, lit by the lantern */
.has-lantern .lantern-field.is-lit { opacity: 1; }
.places { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.places-head { position: relative; z-index: 3; max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.hint { display: none; margin-top: 14px; color: var(--bone-dim); font-style: italic; }
.has-lantern .hint { display: block; }
.lantern-field { display: none; }
.has-lantern .lantern-field {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .6s;
  background:
    radial-gradient(circle 520px at var(--lx, 50%) var(--ly, 40%), rgba(234, 169, 78, .1), rgba(234, 169, 78, 0) 70%),
    radial-gradient(circle 560px at var(--lx, 50%) var(--ly, 40%), rgba(10, 11, 15, 0) 22%, rgba(10, 11, 15, .5) 60%, rgba(10, 11, 15, .84) 100%);
}
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(30px, 4vw, 64px) clamp(18px, 2.4vw, 36px); align-items: start; }
.plates figure { margin: 0; }
.plate { filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .65)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.plate img { width: 100%; clip-path: inset(1.6% round 12px); }
.plates figure:hover .plate { transform: rotate(0) scale(1.012); }
figcaption { position: relative; z-index: 3; margin-top: 12px; padding-inline: 2%; color: var(--bone-dim); line-height: 1.3; }
figcaption strong { display: block; font: 400 1.3em/1.2 var(--display); color: var(--bone); }

.p-castle   { grid-column: 1 / span 5; }
.p-theatre  { grid-column: 7 / span 4; margin-top: 90px !important; }
.p-inn      { grid-column: 3 / span 8; }
.p-grave    { grid-column: 1 / span 4; }
.p-hill     { grid-column: 5 / span 4; margin-top: 110px !important; }
.p-brick    { grid-column: 4 / span 6; grid-row: 4; }
.p-overlook { grid-column: 9 / span 4; grid-row: 3; margin-top: 30px !important; }
.p-grave    { grid-row: 3; }
.p-hill     { grid-row: 3; }
.p-castle .plate   { transform: rotate(-1.4deg); }
.p-theatre .plate  { transform: rotate(1.1deg); }
.p-inn .plate      { transform: rotate(-.5deg); }
.p-grave .plate    { transform: rotate(1.2deg); }
.p-hill .plate     { transform: rotate(-1deg); }
.p-brick .plate    { transform: rotate(.7deg); }
.p-overlook .plate { transform: rotate(-1.5deg); }
.p-overlook .plate img { clip-path: inset(3.5% 3% 3.5% 3.5% round 10px); }

/* Interlude */
.interlude { position: relative; height: clamp(420px, 78vh, 820px); display: grid; place-items: end center; overflow: hidden; isolation: isolate; padding-bottom: clamp(14px, 2.4vh, 28px); }
.interlude video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0, rgba(10, 11, 15, 0) 40%), linear-gradient(180deg, var(--ink) 0, rgba(10, 11, 15, 0) 22%); }
.interlude p { font: italic 400 clamp(32px, 4.6vw, 64px)/1.1 var(--display); text-align: center; padding-inline: var(--gutter); }

/* Join */
.walk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px clamp(36px, 6vw, 96px); padding: clamp(70px, 9vw, 130px) var(--gutter); }
.walk-copy h2 { margin-bottom: 20px; }
.walk-copy p:last-child { max-width: 24em; color: var(--bone-dim); }
.details { margin: 0; }
.details div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.details div:last-child { border-bottom: 1px solid var(--rule); }
.details dt { font-family: var(--caps); letter-spacing: .04em; color: var(--bone-dim); }
.details dd { margin: 0; }
.todo { color: var(--lantern); font-style: italic; }
.todo::before { content: "\2192\00a0"; font-style: normal; }
.walk > .button { grid-column: 2; justify-self: start; }

/* Other tours. The filter keeps any swapped-in photo matching the aged prints. */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px clamp(36px, 6vw, 96px); align-items: center; padding: clamp(64px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--rule); }
.offer-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; filter: grayscale(.85) sepia(.35) contrast(1.05) brightness(.82); box-shadow: 0 16px 34px rgba(0, 0, 0, .6); }
.offer-flip .offer-photo { order: 2; }
.offer-copy h2 { margin-bottom: 18px; }
.offer-copy > p:not(.eyebrow) { margin-bottom: 24px; color: var(--bone-dim); }
.offer-copy .details { margin-bottom: 26px; }

/* Footer */
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; padding: 34px var(--gutter); border-top: 1px solid var(--rule); color: var(--bone-dim); font-size: .9em; line-height: 1.35; }
.foot img { width: 96px; }

@media (max-width: 860px) {
  .bar nav { justify-content: space-between; }
  .js .menu-toggle { display: block; }
  .js .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 18px; background: rgba(10, 11, 15, .97); border: 1px solid var(--rule); }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { padding: 14px 0; }
  .js .nav-links a + a { border-top: 1px solid var(--rule); }
  .nav-links { flex-wrap: wrap; }
  .hero { align-items: flex-end; padding-top: 70px; }
  .hero-video { object-position: 52% 50%; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(10, 11, 15, .8) 30%, rgba(10, 11, 15, .04) 54%); }
  .hero-logo { width: 190px; margin-bottom: 12px; }
  .history, .walk, .offer { grid-template-columns: minmax(0, 1fr); }
  .offer-flip .offer-photo { order: 0; }
  .history-head { position: static; }
  .timeline li { grid-template-columns: 3.6em minmax(0, 1fr); gap: 12px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates figure { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
  .plates .p-inn, .plates .p-brick { grid-column: 1 / -1 !important; }
  .walk > .button { grid-column: 1; justify-self: stretch; text-align: center; }
  .details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot { grid-template-columns: auto minmax(0, 1fr); }
  .foot .copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate { transition: none; }
}
