:root {
  --black: #121110;
  --off-white: #f4f1ee;
  --soft: #b5afa9;
  --faint: #8d8781;
  --line: #34312e;
  --tangerine: #ff6a3d;
  --violet: #8b7cf6;
  --violet-pale: #e9e5fd;
  --greige: #d8cec6;
  --brown: #4a2f22;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font: 400 17px/1.6 var(--body);
}
h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--off-white); color: var(--black); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.home { display: inline-flex; }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--off-white); }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none;
}
nav a.btn-light, .btn-light { background: var(--off-white); color: var(--black); }
nav a.btn-light:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); color: #fff; }
.btn-brown { background: var(--brown); color: #fff; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
  padding-block: clamp(48px, 10vw, 128px);
}
h1 {
  font: 600 clamp(54px, 10vw, 136px)/0.94 var(--display);
  letter-spacing: -0.02em;
}
.lede { margin-top: 28px; font-size: clamp(18px, 2vw, 23px); color: var(--soft); }
.hero-mark { display: block; width: 100%; max-width: 380px; justify-self: end; overflow: visible; }

/* the two brands */
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 4vw, 48px); border-radius: 20px; min-height: 460px;
  scroll-margin-top: 24px;
}
.brand p { margin-bottom: 28px; max-width: 28ch; font-size: 18px; }
.brand p, .brand .btn { position: relative; z-index: 1; }
.brand .btn { margin-top: auto; }
/* Each brand's mark, very large and faint, running off the bottom-right corner. */
.giant { position: absolute; max-width: none; height: auto; pointer-events: none; }
.giant-junto { width: 330px; right: -46px; bottom: -48px; opacity: .22; transform: rotate(-8deg); }
.giant-dn { width: 390px; right: -54px; bottom: -40px; opacity: .16; }
.brand-junto { background: var(--violet-pale); color: var(--black); }
.brand-dn { background: var(--greige); color: #1f1f1f; }
.brand a:focus-visible { outline-color: var(--black); }
/* Both logos sit in a box of the same height so the two descriptions start on one line. */
.logo-junto, .logo-dn { height: 68px; object-fit: contain; object-position: left center; margin-bottom: 28px; }
.logo-junto { width: 176px; }
.logo-dn { width: 76px; }

/* footer */
footer {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px;
  margin-top: clamp(64px, 10vw, 120px); padding-block: 40px 48px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--faint);
}
address { font-style: normal; }
.word { font: 600 24px/1.2 var(--display); letter-spacing: -0.015em; color: var(--off-white); margin-bottom: 8px; }
footer a:hover { color: var(--off-white); }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; }

/* tablet and phone */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-mark { order: -1; justify-self: start; width: 180px; }
  .brands, footer { grid-template-columns: minmax(0, 1fr); }
  .brand { min-height: 0; }
}

@media (max-width: 480px) {
  nav { gap: 16px; font-size: 14px; }
  .btn { padding: 9px 14px; }
}

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