@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
  --paper: #f3efe4;
  --paper-deep: #e8e2d2;
  --ink: #1c2b24;
  --moss: #2f4739;
  --gold: #b8860b;
  --line: #c9c2ac;
  --ink-soft: #4a5a50;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ring-fill: 168deg;
}

@property --ring-fill {
  syntax: "<angle>";
  inherits: true;
  initial-value: 168deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page,
.legal {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
}

main {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: var(--moss);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

header.site {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
  border-radius: 50%;
}
.tagline-mini {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 42px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-shrink: 0;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 80px 0 64px;
  background: radial-gradient(
    ellipse 70% 80% at 88% 12%,
    color-mix(in srgb, var(--gold) 11%, transparent),
    transparent 62%
  );
}
.hero-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 340px;
  padding-top: 8px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 11ch;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ring-wrap {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ring {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--ring-fill), var(--line) 0deg);
  transition: --ring-fill 700ms var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
  animation: fillring 1.4s var(--ease-out) 0.15s both;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--paper);
}
.ring-label {
  position: relative;
  text-align: center;
  font-family: "Fraunces", serif;
}
.ring-label .num {
  display: block;
  font-size: 42px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.ring-label .unit {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

@keyframes fillring {
  from {
    --ring-fill: 0deg;
  }
}

.periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
  max-width: 240px;
}
.period {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 44px;
  width: 100%;
  transition:
    color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}
.period:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.period[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
}

@media (min-width: 701px) {
  .periods {
    display: flex;
    flex-wrap: nowrap;
    max-width: none;
    width: auto;
  }
  .period {
    width: auto;
  }
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
  transition:
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out),
    transform 150ms ease-out,
    border-color 150ms var(--ease-out);
}
.btn {
  background: var(--moss);
  color: var(--paper);
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:active,
.btn-ghost:active,
.period:active {
  transform: scale(0.96);
}
.btn-ghost {
  background: transparent;
  color: var(--moss);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--moss);
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 30px);
  margin: 0 0 28px;
  max-width: 22ch;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.step:first-child {
  border-top: none;
  padding-top: 0;
}
.step .n {
  font-family: "Fraunces", serif;
  font-size: 16px;
  color: var(--gold);
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step .body h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.step .body p {
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.trust p {
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}
.trust p.emph {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 28px);
  font-family: "Fraunces", serif;
  font-weight: 500;
  max-width: 18ch;
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.close p {
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name .brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer.site .links a,
.footer-meta a {
  color: var(--ink-soft);
}
footer.site a:hover {
  color: var(--ink);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  z-index: 40;
  background: var(--moss);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  letter-spacing: 0.01em;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}
.copy-toast[data-show="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.legal main {
  padding: 56px 0 80px;
}
.legal h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 8px;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
.legal .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 20px;
  margin: 36px 0 10px;
}
.legal p {
  color: var(--ink-soft);
  max-width: 64ch;
  text-wrap: pretty;
}

.stagger-item {
  animation: fadeInUp 500ms var(--ease-out) both;
}
.stagger-item:nth-child(1) {
  animation-delay: 0ms;
}
.stagger-item:nth-child(2) {
  animation-delay: 80ms;
}
.stagger-item:nth-child(3) {
  animation-delay: 160ms;
}
.stagger-item:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 700px) {
  .hero-grid {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .hero-text {
    padding-top: 0;
  }
  .tagline-mini {
    display: none;
  }
  header.site .wrap {
    align-items: center;
  }
  .ring-wrap {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    gap: 6px 14px;
  }
}
