:root {
  --night: #1c1f23;
  --deep: #24282d;
  --moon: #ece8de;
  --mist: #b1ada2;
  --haze: #827f77;
  --dawn: #b89a5e;
  --line: rgba(236, 232, 222, .13);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--moon);
  background:
    radial-gradient(90vw 70vh at 90% 110%, rgba(184, 154, 94, .17), transparent 62%),
    radial-gradient(80vw 70vh at 62% 104%, rgba(86, 96, 108, .42), transparent 68%),
    linear-gradient(180deg, #181b1f 0%, var(--night) 40%, #22262b 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--dawn); outline-offset: 4px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }

/* header */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 20px; position: relative; z-index: 2; }
.mark { font-family: var(--display); font-size: 27px; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 15.5px; color: var(--mist); }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); border-bottom-color: var(--dawn); }

/* home */
.hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 6vh; padding-bottom: 9vh; min-height: 66vh; }
#drift { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero > *, main, footer { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(64px, 12.4vw, 196px); line-height: .9; letter-spacing: -0.025em; margin: 0 0 5vh;
}
.hero h1 span { display: block; }
.hero p { max-width: 31ch; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.42; margin: 0 0 30px; color: var(--moon); }
.begin { display: inline-block; font-size: 16px; color: var(--mist); border-bottom: 1px solid var(--dawn); padding-bottom: 3px; }
.begin:hover { color: var(--moon); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.three a { display: block; padding: 30px 28px 38px 0; }
.three a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.three h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.three p { margin: 0; color: var(--mist); font-size: 16px; max-width: 30ch; }
.three a:hover h2 { color: var(--dawn); }

/* inner pages */
.page { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); padding-top: 9vh; padding-bottom: 12vh; align-items: start; }
.page h1 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(44px, 5.3vw, 78px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 22px; position: sticky; top: 40px; }
.page .intro { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; margin: 0 0 44px; max-width: 34ch; }
.body { max-width: 60ch; }
.body p { margin: 0 0 20px; color: var(--mist); }
.body p strong { color: var(--moon); font-weight: 500; }
.body h2 { font-family: var(--display); font-weight: 400; font-size: 31px; line-height: 1.15; margin: 0 0 8px; color: var(--moon); }
.item { padding: 28px 0 14px; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.steps { counter-reset: step; }
.steps .item { display: grid; grid-template-columns: 3.4rem 1fr; }
.steps .item::before { counter-increment: step; content: counter(step); font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1; color: var(--dawn); }
.facts { margin: 8px 0 30px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--haze); } .facts dd { margin: 0; color: var(--moon); }
.note { padding: 34px 0 20px; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 0; padding-top: 0; }
.mail { font-family: var(--display); font-size: clamp(26px, 3.2vw, 44px); border-bottom: 1px solid var(--dawn); display: inline-block; margin: 6px 0 28px; }
.quiet { color: var(--haze); font-size: 15.5px; }

/* footer */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 24px; padding-bottom: 30px; font-size: 14.5px; color: var(--haze); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a:hover { color: var(--moon); }

@media (max-width: 820px) {
  .top { flex-direction: column; gap: 12px; }
  .nav { gap: 4px 20px; }
  .three { grid-template-columns: 1fr; }
  .three a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .page { grid-template-columns: 1fr; padding-top: 6vh; }
  .page h1 { position: static; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
