:root {
  --bg:      #faf9f7;
  --ink:     #1a1815;
  --body:    #565049;
  --label:   #6f675e;
  --line:    #e7e2da;
  --field:   #d6cfc4;
  --navy:    #101f3f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

/* ---------- header ---------- */

header { padding: 28px 0; }
.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.bar nav {
  display: flex;
  gap: 22px;
}
.bar a.nav {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}
.bar a.nav:hover { color: var(--ink); }

/* ---------- hero band ---------- */

/* Navy-and-gold marble, baked to a single 102 KB image. The scrim sits
   between the image and the copy — without it, white text over the
   brighter gold veining loses contrast in patches. */
.heroband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* relative to this stylesheet, which lives in assets/ */
  background: var(--navy) url("hero-marble.webp") center / cover no-repeat;
}
.heroband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(8,15,32,.62) 0%,
    rgba(8,15,32,.42) 45%,
    rgba(8,15,32,.20) 100%);
}
/* vertical only — the horizontal padding comes from .wrap, and a
   `padding` shorthand here would silently zero it out on narrow screens */
.hero {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 76px;
}

h1 {
  font-size: clamp(32px, 5.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 12em;
  color: #ffffff;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: #dde5f2;
  margin: 0 0 34px;
  max-width: 33em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 12px 22px;
  border-radius: 4px;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--bg);
}
.btn:hover { opacity: .88; }

.hero .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}

/* ---------- sections ---------- */

section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: none; }

h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 32px;
}

.item {
  margin-bottom: 26px;
  max-width: 34em;
}
.item:last-child { margin-bottom: 0; }
.item b { font-weight: 600; color: var(--ink); }
.item span { color: var(--body); }

section p {
  color: var(--body);
  margin: 0 0 18px;
  max-width: 34em;
}
section p:last-child { margin-bottom: 0; }

/* ---------- apps ---------- */

/* The app icon is the product's own mark, not decoration — it is the one
   place on the page where an image earns its keep. No card around it. */
.app {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 34em;
  margin-top: 28px;
  text-decoration: none;
}
.app img { border-radius: 12px; flex: none; }
.app b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.app span span { color: var(--body); }
.app:hover b { text-decoration: underline; }

/* ---------- contact ---------- */

form { margin-top: 28px; max-width: 420px; }
.field { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  color: var(--label);
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;          /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: #ffffff;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 4px;
}
input:focus, textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
  border-color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
form .btn { margin-top: 6px; }
/* honeypot: hidden from people and out of the tab order; bots that fill it
   in have their submission discarded by Netlify */
.hp { display: none; }
.alt { margin-top: 22px; font-size: 15px; color: var(--body); }
.alt a { color: var(--ink); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 60px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--label);
}
footer p { margin: 0; max-width: 44em; }
footer a { color: var(--label); }

@media (max-width: 560px) {
  .hero { padding-top: 60px; padding-bottom: 56px; }
  section { padding: 52px 0; }
}


/* ================= document pages (privacy etc.) ================= */

.doc { padding: 56px 0 8px; }
.doc h1 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 36px);
  max-width: none;
  margin: 0 0 10px;
}
.doc .updated {
  font-size: 13px;
  color: var(--label);
  margin: 0 0 8px;
}
.doc section { padding: 34px 0; }
.doc h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 14px;
}
.doc h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 10px;
}
.doc p, .doc li { color: var(--body); max-width: 34em; }
.doc ul { margin: 0 0 18px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--ink); }
.doc .fill {
  background: #f4e6c4;
  padding: 0 4px;
  border-radius: 2px;
  color: #4a3c16;
}
