*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; background: var(--slab); }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.dusk :focus-visible,
.enquire :focus-visible,
.menu :focus-visible,
.site-header[data-theme="dark"] :focus-visible { outline-color: var(--fresh); }

::selection { background: var(--fresh); color: var(--turf-900); }

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--paper-2);
  color: var(--ink);
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

/* Headings: Gambetta, light, with an italic for the phrase that matters */
h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.nb { white-space: nowrap; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* the tick-and-line reads as the end of a measuring tape */
.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 0.7em;
  border-left: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat;
}

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head h2 { font-size: var(--step-3); margin-top: 1.1rem; }
.section__intro { margin-top: 1.4rem; max-width: 34rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid currentColor;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--light { background: var(--paper-2); border-color: var(--paper-2); color: var(--turf-900); }
.btn--light:hover { background: var(--fresh); border-color: var(--fresh); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.5rem;
}
.link-arrow::after {
  content: "";
  width: 1.8rem;
  height: 0.6rem;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 1px 100% no-repeat;
  transition: width 0.3s var(--ease);
}
.link-arrow:hover::after { width: 2.6rem; }

/* Photo captions: a dimension line with end ticks, then place/date and spec */
.cap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat;
}
.cap::before, .cap::after {
  content: "";
  position: absolute;
  top: 0;
  height: 0.5rem;
  width: 1px;
  background: currentColor;
  opacity: 0.6;
}
.cap::before { left: 0; }
.cap::after { right: 0; }
.cap span:first-child { font-weight: 500; color: var(--ink); }

/* Scroll reveals, only when JS is running */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
