: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);
  --measure: 42rem;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::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;
  overflow-x: clip;
}

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; }
em { font-style: italic; }

::selection { background: var(--beige-200); color: var(--ink); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.button:focus-visible { outline-color: var(--ink); }

.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, .button, .link, .signature-name, .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; font: 600 12.5px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.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 { display: block; }

.title {
  font: 500 clamp(40px, 4.2vw, 64px)/1.04 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.standfirst { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; 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;
  background: var(--ink); color: var(--paper);
  transition: background-color 0.3s;
}
.button:hover { background: #000; }

/* The letter: set for reading */

.prose { font-size: 21px; line-height: 1.72; }
.prose p { text-wrap: pretty; }
.prose p + p { margin-top: 1.15em; }

.dropcap::first-letter {
  float: left;
  margin: 0.035em 0.08em 0 -0.02em;
  font: 500 6.1em/0.74 var(--display);
}

.prose .pull {
  margin: 1.6em 0;
  font: italic 500 clamp(32px, 3vw, 44px)/1.18 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.prose .pull + p { margin-top: 0; }

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

.opening {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(88px, 9vw, 136px) var(--gutter) clamp(80px, 8vw, 120px);
  text-align: center;
}
.opening .standfirst { max-width: 27em; margin-top: 32px; }

.welcome {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-top: clamp(40px, 6vw, 96px);
  background: var(--beige-100);
}
.welcome-photo img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; object-position: 50% 24%; }
.welcome-text { align-self: center; max-width: calc(var(--measure) + 2 * var(--gutter)); padding: var(--section) var(--gutter); }

.column {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) 0;
}
.embed-film + .column { padding-top: 0; }

.band, .bleed { margin: clamp(80px, 8vw, 128px) 0; }
.band { margin-inline: calc(50% - 50vw); }
.band img { width: 100vw; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 42%; }
.column > figure:last-child { margin-bottom: 0; }

.bleed { width: calc(50vw + 50%); }
.bleed-left { margin-left: calc(50% - 50vw); }
.bleed-right { margin-right: calc(50% - 50vw); }
.bleed img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bleed-left img { object-position: 62% 50%; }
.bleed-right img { object-position: 30% 40%; }

.difference {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ink); color: var(--paper);
}
.difference-text { align-self: center; justify-self: end; max-width: calc(var(--measure) + 2 * var(--gutter)); padding: var(--section) var(--gutter); }
.difference .pull { margin-top: 0; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.14; }
.difference-photo img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; object-position: 66% 30%; }

.philosophy {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 4vw, 72px);
  padding: var(--section) var(--gutter);
  background: var(--beige-200);
  text-align: center;
}
.philosophy-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.philosophy-text p { margin-top: 32px; font-size: 21px; line-height: 1.7; text-wrap: pretty; }

.sign-off { margin-top: 64px; }
.signature { font: italic 500 clamp(56px, 5vw, 72px)/1 var(--display); letter-spacing: -0.01em; }
.signature-name { margin-top: 20px; }
.prose .postscript { margin-top: 56px; font-style: italic; }

/* Closing */

.closing {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--beige-50);
  text-align: center;
}
.closing .button { margin-top: 56px; }
.closing .link { margin-top: 24px; }

/* 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; }
.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: 400 15px/1 var(--text);
}
.footer-base img { height: 11px; width: auto; }

/* Fade-ins */

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

/* Tablet */

@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); }

  .welcome, .difference { grid-template-columns: 1fr; }
  .welcome { padding-top: 0; }
  .welcome-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .welcome-text, .difference-text { justify-self: center; padding: clamp(64px, 10vw, 96px) var(--gutter) var(--section); }
  .difference-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 5; object-position: 70% 30%; }

  .philosophy { grid-template-columns: 1fr 1fr; gap: 56px 12px; }
  .philosophy-text { grid-column: 1 / -1; grid-row: 1; justify-self: center; max-width: 30em; }

  .bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
}

/* Phone */

@media (max-width: 640px) {
  :root { --section: 96px; }
  body { font-size: 18px; }
  .display { font-size: 44px; }
  .title { font-size: 40px; }
  .prose, .philosophy-text p { font-size: 19px; line-height: 1.68; }
  .prose .pull { font-size: 30px; }
  .difference .pull { font-size: 34px; }
  .opening { padding-top: 64px; }
  .opening .standfirst { margin-top: 24px; }
  .band img { aspect-ratio: 4 / 3; }
  .bleed img { aspect-ratio: 4 / 3; }
  .closing .button { align-self: stretch; }
  .footer-links { flex-direction: column; gap: 14px; }
  .footer-base { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
}

