:root {
  --ink: #282828;
  --paper: #FFFFFF;
  --beige-50: #F8F4F0;
  --beige-100: #F1E9E2;
  --beige-200: #E5D7CC;
  --beige-400: #CDB7A6;
  --display: 'freight-display-pro', 'Freight Display Pro', Georgia, serif;
  --text: 'freight-text-pro', 'Freight Text Pro', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(112px, 11vw, 176px);
  --wide: 1280px;
  --measure: 32em;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --field-line: color-mix(in srgb, var(--ink) 50%, var(--beige-400));
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
cite { font-style: normal; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--beige-200); color: var(--ink); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 15px;
}
.skip:focus { top: 16px; }

/* Magazine style: menu, buttons, facts, names */

.header-menu, .menu-sheet-links, .menu-sheet-foot, .button, .fact, .link, cite, .footer-links {
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */

.header { position: sticky; top: 0; z-index: 20; background: var(--paper); }

.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; padding: 0 clamp(20px, 3vw, 44px);
}
.header-logo img, img.header-logo { width: 272px; height: auto; }
.header-logo { justify-self: center; }
.header-actions { justify-self: end; display: flex; gap: 16px; }

.header-menu { display: flex; justify-content: center; gap: 56px; padding: 0 0 22px; }
.header-menu a { padding: 6px 0; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.header-menu a:hover, .header-menu a[aria-current="page"] { background-size: 100% 1px; }

.icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.icon svg, .menu-sheet-foot svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.header-menu-button { display: none; }

/* Menu sheet (phone) */

.menu-sheet {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 40px;
  border: 0; background: var(--paper); color: var(--ink);
  flex-direction: column;
}
.menu-sheet[open] { display: flex; }
.menu-sheet::backdrop { background: var(--paper); }
.menu-sheet .header-bar { padding: 0 20px; }
.menu-sheet-links { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: auto 0; font-size: 14px; }
.menu-sheet-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em; }
.menu-sheet-foot { display: flex; justify-content: center; gap: 40px; }
.menu-sheet-foot a { display: flex; align-items: center; gap: 10px; }

/* Type */

.display {
  font: 500 clamp(46px, 5.6vw, 84px)/1.02 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display span, .title span { display: block; }

.title {
  font: 500 clamp(38px, 4vw, 60px)/1.06 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.standfirst { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; text-wrap: balance; }
.body { max-width: var(--measure); text-wrap: pretty; }

.quote {
  font: italic 500 clamp(32px, 3.3vw, 50px)/1.16 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em;
  text-decoration-color: var(--beige-400);
  transition: text-decoration-color 0.3s;
}
.link:hover { text-decoration-color: currentColor; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px;
  border: 0; border-radius: 0;
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background-color 0.3s;
}
.button:hover { background: #000; }

/* Closing */

.closing {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--beige-50); text-align: center;
}
.closing .display { max-width: 12em; }
.closing .body { margin-top: 32px; }
.closing .button { margin-top: 48px; }
.closing .link { margin-top: 28px; }

/* Footer */

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding: 88px var(--gutter) 40px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.footer-links a:hover, .footer-email:hover { text-decoration: underline; text-decoration-color: var(--beige-400); text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.footer-email { font-size: 20px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--beige-100);
  font-size: 15px; line-height: 1;
}
.footer-base img { width: 141px; height: auto; }

/* Reveal */

.js .reveal { opacity: 0; transition: opacity 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; }

/* Page head and details */

.contact-head {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(72px, 7vw, 112px) var(--gutter) var(--section);
  text-align: center;
}
.contact-head .standfirst { max-width: 25em; margin-top: 28px; }

.email {
  margin-top: clamp(44px, 4vw, 56px);
  font: 500 clamp(25px, 6.4vw, 48px)/1.2 var(--display); letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--beige-400);
  transition: text-decoration-color 0.3s;
}
.email:hover { text-decoration-color: currentColor; }

.details {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; column-gap: clamp(48px, 6vw, 96px);
  margin-top: clamp(64px, 6vw, 88px); padding-top: 36px;
  border-top: 1px solid var(--beige-400);
}
.details li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.detail {
  font: 500 clamp(21px, 1.6vw, 24px)/1.2 var(--display); letter-spacing: -0.005em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease);
}
.detail:hover { background-size: 100% 1px; }

/* Message: photo beside the form */

.message { display: grid; grid-template-columns: 1fr 1fr; }
.message-photo { position: relative; min-height: 640px; }
.message-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.message-text { padding: clamp(88px, 8vw, 128px) clamp(40px, 7vw, 128px); }

.contact-form { display: grid; gap: 24px; max-width: 34rem; margin-top: 44px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 15px 16px;
  border: 1px solid var(--field-line); border-radius: 0;
  background: var(--paper); color: var(--ink); caret-color: var(--ink);
  font: 400 18px/1.45 var(--text);
  appearance: none;
  transition: border-color 0.3s;
}
.field textarea { min-height: 184px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.contact-form .button { justify-self: start; margin-top: 12px; }

.retail-line {
  max-width: 34rem; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--beige-400);
  font-size: 18px; line-height: 1.55; text-wrap: pretty;
}
.retail-line a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: var(--beige-400);
  transition: text-decoration-color 0.3s;
}
.retail-line a:hover { text-decoration-color: currentColor; }

/* Closing: how booking works */

.closing .body { max-width: 30em; }

/* Tablet and phone */

@media (max-width: 1100px) {
  .header-menu { gap: 36px; }
}

@media (max-width: 900px) {
  .header-menu, .icon-desktop { display: none; }
  .header-menu-button { display: grid; justify-self: start; }
  .header-bar { height: 64px; padding: 0 20px; }
  .header-logo img, img.header-logo { width: 198px; }
  .header { border-bottom: 1px solid var(--beige-100); }

  .message { grid-template-columns: 1fr; }
  .message-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .message-text { padding: 72px var(--gutter) var(--section); }
  .contact-form { max-width: none; }
  .retail-line { max-width: none; }
}

@media (max-width: 640px) {
  :root { --section: 96px; }
  body { font-size: 18px; }
  .display { font-size: 44px; }
  .title { font-size: 36px; }
  .button { align-self: stretch; }

  .contact-head { padding-top: 64px; }
  .contact-head .standfirst { margin-top: 20px; }
  .email { margin-top: 36px; }
  .details { grid-template-columns: 1fr; row-gap: 20px; align-self: stretch; margin-top: 48px; padding-top: 28px; }
  .details li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }
  .detail { font-size: 21px; }
  .message-photo { aspect-ratio: 4 / 5; }
  .contact-form { margin-top: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .button { justify-self: stretch; }
  .retail-line { margin-top: 56px; }

  .footer { padding-top: 80px; }
  .footer-links { flex-direction: column; gap: 18px; }
  .footer-base { flex-direction: column; gap: 16px; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
  .header-menu a, .button, .link, .email, .detail, .field input, .field textarea, .retail-line a { transition: none; }
}
