/* Quiet Magic landing page. One scroll, five parts: top, the work, founder, how we work, contact. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/karla-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --berry: #1A1220;
  --chalk: #E6E2D6;
  --flower: #A88CA8;
  --sap: #A9BF4D;
  --sap-hover: #C4D96E;
  --hairline: #3A2F42;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--berry); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--berry);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--chalk); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sap-hover); }
:focus-visible { outline: 2px solid var(--sap); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--sap); color: var(--berry); padding: 12px 16px; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 16px; color: var(--berry); }

.page { padding-inline: 16px; }
.wrap { max-width: 1040px; margin: 0 auto; }

.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; }
.masthead svg { width: 168px; height: auto; display: block; }
.masthead .logo { display: block; }
.masthead .hello { font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
  margin: 0;
  color: var(--chalk);
}
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--chalk); opacity: 0.88; }

/* hero: the headline carries it, with the glow point's light behind */
.hero {
  display: grid; gap: 24px;
  padding-block: 56px 104px;
  background: radial-gradient(ellipse 36% 46% at 74% 46%, rgba(169, 191, 77, 0.14), rgba(169, 191, 77, 0) 100%);
}
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 8px; }
.hero-actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  background: var(--sap); color: var(--berry); text-decoration: none;
  font-weight: 600; font-size: 16px; border-radius: 999px;
  transition: background-color 160ms ease;
}
.btn:hover { background: var(--sap-hover); color: var(--berry); }

.block { border-top: 1px solid var(--hairline); padding-block: 72px; }
.two { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two > * { min-width: 0; }
.stack { display: grid; gap: 20px; align-content: start; }

/* the work */
.stat { font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; font-size: 64px; line-height: 1; color: var(--sap); font-weight: 400; }
.stat-cap { font-size: 15px; color: var(--flower); margin-top: 6px; }
.standing h3 { font: 600 16px/1.4 var(--body); color: var(--flower); margin: 0 0 8px; }
.standing ul { list-style: none; margin: 0; padding: 0; }
.standing li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--hairline); }
.standing li::before {
  content: ""; width: 9px; height: 11px; margin-top: 8px;
  background: var(--sap);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.standing li.next::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sap); }
.footnote { font-size: 13px; color: var(--flower); margin-top: 18px; }

/* founder */
.founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.portrait { margin: 0; max-width: 360px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 3px; }

/* how we work */
.principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.principles dl { margin: 0; display: grid; gap: 28px; }
.principles dt { font-family: var(--display); font-variation-settings: "opsz" 48, "SOFT" 60, "WONK" 1; font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.principles dd { margin: 0; color: var(--chalk); opacity: 0.85; max-width: 56ch; }

/* contact */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--flower); border-radius: 999px; text-decoration: none;
  font-weight: 500; transition: border-color 160ms ease, color 160ms ease;
}
.chip:hover { border-color: var(--sap); color: var(--sap-hover); }
.addr { color: var(--flower); font-size: 15px; }
.addr span { color: var(--chalk); user-select: all; overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--hairline); padding-block: 28px 48px; font-size: 13px; color: var(--flower); display: grid; gap: 6px; }
.foot p { max-width: none; }

@media (max-width: 820px) {
  .two { grid-template-columns: 1fr; }
  .hero { padding-block: 32px 72px; }
  .block { padding-block: 56px; }
  .masthead svg { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
