@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gochi Hand';
  src: url('/fonts/gochi-hand-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f7f4ec;
  --card: #fcfbf7;
  --ink: #1f2226;
  --ink-soft: #5b5f64;
  --rule: #e3ded1;
  --crayon: #2b50c8;
  --crayon-deep: #1f3ea3;
  --oak: #c4975c;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --edge: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--crayon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ top */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px var(--edge);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
}
.brand__name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.brand__tiny {
  font: 400 1.9rem / 1 var(--hand);
}
.brand__masters {
  font: 400 0.95rem / 1 var(--serif);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.top__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 1.8rem);
  font-size: 0.95rem;
  font-weight: 600;
}
.top__nav a {
  text-decoration: none;
}
.top__nav a:not(.top__open):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.top__open {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background-color 140ms;
}
.top__open:hover {
  background: #fff;
}
@media (max-width: 520px) {
  .top__nav a:not(.top__open) {
    display: none;
  }
}

/* ------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) var(--edge) clamp(48px, 7vw, 96px);
}
.hero__kicker {
  margin: 0 0 1rem;
  font: 400 1.35rem / 1.2 var(--hand);
  color: var(--crayon);
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.1rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.hero__actions--centre {
  justify-content: center;
}
.hero__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero__view {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 40px 80px -40px rgba(60, 44, 20, 0.55),
    0 10px 24px -14px rgba(60, 44, 20, 0.35);
  /* A frame of oak round the view, as the pictures inside have. */
  border: 10px solid var(--oak);
  outline: 1px solid rgba(110, 78, 36, 0.35);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__view {
    order: -1;
    border-width: 7px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 140ms,
    transform 140ms var(--ease);
}
.button:hover {
  background: #fff;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button--primary {
  border-color: var(--crayon);
  background: var(--crayon);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(31, 62, 163, 0.9);
}
.button--primary:hover {
  background: var(--crayon-deep);
  border-color: var(--crayon-deep);
}
.button:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------ how */

.how,
.views,
.private,
.last {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--edge);
}
.section-title {
  margin: 0 0 1.6rem;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 34px -26px rgba(60, 44, 20, 0.45);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: rgba(43, 80, 200, 0.09);
  color: var(--crayon);
  font: 400 1.6rem / 1 var(--hand);
}
.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ views */

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.view {
  margin: 0;
}
.view--wide {
  grid-column: 1 / -1;
}
.view img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 28px 60px -36px rgba(60, 44, 20, 0.55);
}
.view figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .views {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ private */

.private {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.private p {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: var(--ink-soft);
}
.private__list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 24px 26px;
  border-radius: 12px;
  background: var(--card);
  list-style: none;
  font-weight: 600;
}
.private__list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.private__list li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crayon);
  transform: translateY(-1px);
}
.private__list li:last-child::before {
  background: #f2b632;
}
@media (max-width: 860px) {
  .private {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ last */

.last {
  text-align: center;
  padding-bottom: clamp(56px, 8vw, 110px);
}
.last__sig {
  margin: 0 0 0.6rem;
  font: 400 clamp(2.4rem, 1.6rem + 3vw, 3.8rem) / 1 var(--hand);
  color: var(--crayon);
  transform: rotate(-2deg);
}

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px var(--edge) 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.foot p {
  margin: 0 0 0.3rem;
}
