:root {
  --white: #fafaf9;
  --cream: #f5f4f0;
  --stone: #e0dfd8;
  --ink: #1e1c1d;
  --muted: #b4b3b1;
  --blue: #4c64c4;
  --blue-light: #93a7fb;

  --fg: var(--ink);
  --fg-soft: rgba(30, 28, 29, 0.66);
  --line: var(--ink);
  --accent: var(--blue);
  --accent-fg: var(--cream);
  --button-fill: var(--blue-light);
  --button-fill-fg: var(--ink);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --dots: "Doto", var(--mono);

  --fs-1: 0.875rem;
  --fs-2: 1rem;
  --fs-3: 1.25rem;
  --fs-4: 1.75rem;
  --fs-5: 2.25rem;

  --text-xs: var(--fs-1);
  --text-sm: var(--fs-1);
  --text-ui: var(--fs-2);
  --text-item: var(--fs-2);
  --text: var(--fs-3);
  --text-lg: var(--fs-3);
  --text-label: var(--fs-3);
  --title-sm: var(--fs-3);
  --title: var(--fs-4);
  --heading: var(--fs-5);
  --page-title: var(--fs-5);
  --display: var(--fs-5);
  --leading: 1.35;
  --body-font: var(--sans);
  --body-weight: 350;

  --gutter: 50px;

  --side: 25.5%;
  --col-gap: 0px;
  --content: 57.0625rem;
  --section-y: 64px;
  --header-h: 88px;
  --ease: cubic-bezier(0.86, 0, 0.07, 1);
}

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

html {
  font-size: clamp(16px, calc(16px + (100vw - 1440px) * 0.002222), 16.8px);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: var(--text);
  font-weight: var(--body-weight);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

strong,
b {
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
}

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

.section {
  padding: var(--section-y) 0;
  background: var(--section-bg, var(--cream));
  color: var(--fg);
}

.section > .wrap,
.section > .wrap,
.page-grid {
  display: grid;
  grid-template-columns: var(--side) minmax(0, var(--content));
  column-gap: var(--col-gap);
}

.section > .wrap > :not(.plate) {
  grid-column: -2;
}

.plate {
  width: min(11.25rem, calc(100% - 32px));
  aspect-ratio: 1;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section.light { --section-bg: var(--white); }
.section.stone { --section-bg: var(--stone); }

.section.ink {
  --section-bg: var(--ink);
  --fg: var(--cream);
  --fg-soft: rgba(245, 244, 240, 0.66);
  --line: rgba(245, 244, 240, 0.4);
  --accent: var(--blue-light);
  --accent-fg: var(--ink);
}

.section.blue {
  --section-bg: var(--blue);
  --fg: var(--cream);
  --fg-soft: rgba(245, 244, 240, 0.8);
  --line: rgba(245, 244, 240, 0.5);
  --accent: var(--cream);
  --accent-fg: var(--blue);
  --button-fill: var(--cream);
  --button-fill-fg: var(--blue);
}

.label {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section h2,
.heading {
  margin-top: 28px;
  font-size: var(--heading);
  line-height: 1.1;
  max-width: 22em;
}

.lead {
  margin-top: 32px;
  max-width: none;
  font-size: var(--text);
  line-height: var(--leading);
}

.lead + .lead {
  margin-top: 16px;
}

.soft {
  color: var(--fg-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: var(--text-ui);
  font-weight: var(--body-weight);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background-color: var(--button-fill);
  border-color: var(--button-fill);
  color: var(--button-fill-fg);
}

.button.primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.button.primary:hover,
.button.primary:focus-visible {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--cream);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.large {
  justify-content: space-between;
  min-width: min(400px, 100%);
  padding: 22px 24px;
  border-width: 2px;
  font-family: var(--sans);
  font-size: var(--fs-3);
  font-weight: var(--body-weight);
  line-height: 1;
}

.button.large .arrow {
  flex: none;
  transition: transform 0.2s ease-out;
}

.button.large:hover .arrow,
.button.large:focus-visible .arrow {
  transform: translateX(6px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(30, 28, 29, 0.14);
  color: var(--ink);
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-instant {
  transition: none;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: block;
  color: var(--ink);
}

.logo {
  display: block;
  width: auto;
  height: 2.5rem;
}

.nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--cream);
}

.site-header.open .nav {
  display: flex;
}

.nav > a {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-4);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav > a:hover,
.nav > a:focus-visible {
  color: var(--blue);
}

.nav-social {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.nav-social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-social a:hover,
.nav-social a:focus-visible {
  background: var(--button-fill);
  border-color: var(--button-fill);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-toggle .icon-close,
.site-header.open .menu-toggle .icon-open {
  display: none;
}

.site-header.open .menu-toggle .icon-close {
  display: block;
}

.site-footer {
  background: #000;
  color: var(--blue-light);
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: var(--body-weight);
  line-height: 1.5;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-footer .footer-email {
  display: inline-block;
  padding: 12px 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.footer-legal a {
  display: inline-block;
  padding: 12px 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social li + li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-social li + li::before {
  content: "";
  width: 1px;
  height: 22px;
  background: currentColor;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .section > .wrap,
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --gutter: 20px;
  }

}

@media (max-width: 900px) {
  :root {
    --section-y: 56px;
    --header-h: 68px;
    --fs-2: 0.9375rem;
    --fs-3: 1.125rem;
    --fs-4: 1.5rem;
    --fs-5: 1.875rem;
  }

  .logo {
    height: 2rem;
  }

  .site-footer .wrap {
    flex-direction: column-reverse;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-contact {
    justify-content: center;
  }
}

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

  .button,
  .button .arrow,
  .site-header {
    transition: none;
  }
}
