*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth only once main.js has landed: a smooth scroll fixes its destination as it sets off, and on
   arrival the page is still changing height. A later scroll cannot reliably overtake one in flight. */
html.is-landed { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 var(--size-body)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  html.is-landed { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.title-tracked {
  font: 400 var(--size-title)/1.05 var(--font-display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* Tracked capitals push the last letter's spacing past the right edge; pull it back. */
  margin-right: -0.32em;
}
.small { font-size: var(--size-small); }

/* The one button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font: 500 15px/1 var(--font-text);
  text-decoration: none;
  background: var(--ink);
  color: var(--ivory);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button--primary { background: var(--gold); color: var(--ink); }
.button--primary:hover { background: var(--ink); color: var(--ivory); }
.button--field { background: var(--field-ink); color: var(--field); }
.button--quiet { background: transparent; color: currentColor; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 0.3em; }
.button--quiet:hover { transform: none; text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 var(--margin);
  color: var(--ink);
  background: var(--ivory);
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* A link to a home section lands below the fixed header, not under it. */
.house, .lotus, .bespoke, .visit { scroll-margin-top: 72px; }
.site-header[data-over-stage] { background: transparent; color: var(--header-ink, var(--ink)); }
.site-header[data-over-stage].is-scrolled { background: var(--ivory); color: var(--ink); }
.site-header__mark { display: block; width: 44px; height: 44px; }
.site-header__mark svg { width: 100%; height: 100%; fill: currentColor; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .button { margin-left: 8px; }
.menu-toggle { display: none; min-height: 44px; font-size: 15px; }

/* Over a photograph the links sit on a plate of their own: a model's dark hair or glasses can pass
   under them, whichever ink the backdrop calls for. */
@media (min-width: 900px) {
  .site-header[data-over-stage]:not(.is-scrolled) .site-nav { padding-left: 24px; background: var(--ivory); color: var(--ink); }
}
@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}

/* Menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--margin) 40px;
  background: var(--ink);
  color: var(--ivory);
}
.menu.is-open { display: flex; }
.menu__close { align-self: flex-end; min-height: 44px; font-size: 15px; }
.menu__links { display: grid; gap: 8px; }
.menu__links a { font: 500 clamp(40px, 12vw, 72px)/1.05 var(--font-display); text-decoration: none; }
.menu__foot { font-size: var(--size-small); }

/* Footer */
.site-footer {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 120px 0;
  padding: 64px var(--margin) 20px;
  background: var(--ink);
  color: var(--ivory);
}
.site-footer__columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 15px; }
.site-footer__columns li:first-child { color: var(--ivory); }
.site-footer__columns li { color: #CFCFC4; }
.site-footer__columns a { text-decoration: none; }
.site-footer__columns a:hover { text-decoration: underline; }
.footer-wordmark {
  font: 500 calc((100vw - 2 * var(--margin)) / var(--wordmark-ratio))/0.8 var(--font-display);
  letter-spacing: -0.04em;
  white-space: nowrap;
  transform-origin: 50% 100%;
}
.site-footer__legal { padding-top: 20px; font-size: var(--size-small); color: #CFCFC4; }

@media (max-width: 767px) {
  .site-footer__columns { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
}

/* The skip link appears when a keyboard user reaches it. */
.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip-path: none;
  background: var(--ink);
  color: var(--ivory);
}

/* The 404 page. */
.not-found {
  display: grid;
  gap: 32px;
  align-content: center;
  justify-items: start;
  min-height: 100svh;
  padding: 140px var(--margin) 96px;
}
.not-found__title { font: 500 var(--size-title)/1.05 var(--font-display); letter-spacing: -0.02em; }
.not-found__text { max-width: 36em; }
.not-found__links { display: grid; gap: 8px; font: 400 var(--size-heading)/1.2 var(--font-display); }
