:root {
  --ink: #0b1020;
  --ink-2: #1c2340;
  --paper: #f6f4ee;
  --paper-2: #ece8dd;
  --muted: #5b617a;
  --star: #f2c14e;
  --line: rgba(11, 16, 32, 0.12);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.brand svg { width: 26px; height: 26px; }

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero .wrap { position: relative; }

.hero h1 { max-width: 14ch; }

.hero p.lead {
  font-size: 1.2rem;
  max-width: 44ch;
  color: rgba(246, 244, 238, 0.82);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 20px;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Sections */
section { padding: 72px 0; }

section + section { border-top: 1px solid var(--line); }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

.card p { color: var(--muted); margin-bottom: 0; }

/* Apps */
.app {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}

.app img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
  box-shadow: 0 6px 18px rgba(11, 16, 32, 0.14);
}

.app h3 { margin-bottom: 4px; }

.app .where {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.app a.site { font-size: 0.95rem; }

/* About */
.two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.facts {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 26px;
  font-size: 0.95rem;
}

.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: #fff; }
.contact a.mail {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-family: "Fraunces", Georgia, serif;
  color: var(--star);
  text-decoration: none;
  border-bottom: 2px solid rgba(242, 193, 78, 0.4);
  padding-bottom: 2px;
}
.contact a.mail:hover { border-color: var(--star); }
.contact p { color: rgba(246, 244, 238, 0.78); }

/* Footer */
footer {
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer a { color: var(--muted); }

/* Legal page */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 720px) {
  .two { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 14px; font-size: 0.9rem; }
  .hero { padding: 56px 0 64px; }
  section { padding: 52px 0; }
}
