/* makedestiny.com. One accent, deep neutrals, no scripts. */
:root {
  --ink: #14171a;
  --ink-2: #1d2125;
  --paper: #f4f0e6;
  --paper-2: #ebe6d9;
  --rule: #cfc8b6;
  --muted: #5d625f;
  --accent: #f2a33a;
  --accent-ink: #1a1203;
  --link: #8a4b00;

  --bg: var(--paper);
  --fg: var(--ink);
  --bg-soft: var(--paper-2);
  --line: var(--rule);
  --fg-muted: var(--muted);
  --link-c: var(--link);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 4vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101315;
    --fg: #efeadd;
    --bg-soft: #181c1f;
    --line: #2c3236;
    --fg-muted: #a2a8a4;
    --link-c: #f2b45c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.002em;
}
a { color: var(--link-c); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand .mark { width: 38px; height: 38px; color: var(--fg); }
.mark-star { fill: var(--accent); }
.wordmark { font-family: var(--sans); font-size: 22px; letter-spacing: -0.03em; line-height: 1; }
.wm-make { font-weight: 400; }
.wm-destiny { font-weight: 800; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); font-size: 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--fg); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--accent); }
.nav .nav-coffee {
  padding: 8px 14px;
  border: 1px solid var(--fg);
  border-radius: 0 10px 0 10px;
  font-weight: 600;
}
.nav .nav-coffee:hover, .nav .nav-coffee.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7.2vw, 104px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h1 em { font-style: italic; color: var(--link-c); }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 700; color: var(--fg-muted); margin: 0 0 18px; }
.lead { font-size: clamp(19px, 2vw, 26px); line-height: 1.45; max-width: 44ch; margin: 22px 0 0; }
.prose { max-width: 60ch; margin: 18px 0 0; }
.updated, .note { color: var(--fg-muted); font-size: 15px; }
.note { max-width: 52ch; margin-top: 14px; }

/* ---------- buttons ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 0; }
.btn {
  display: inline-block;
  padding: 14px 22px;
  font: 700 17px/1 var(--sans);
  text-decoration: none;
  border: 2px solid var(--fg);
  border-radius: 0 14px 0 14px;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-quiet { background: transparent; color: var(--fg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-big { font-size: 20px; padding: 18px 30px; }
.soon { display: inline-block; padding: 12px 16px; border: 1px dashed var(--fg-muted); color: var(--fg-muted); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 8vw, 120px) var(--pad) clamp(40px, 7vw, 100px);
}
.hero-art { display: grid; place-items: center; color: var(--fg); }
.hero-art .mark { width: min(100%, 520px); height: auto; aspect-ratio: 1; color: var(--fg); }
.hero-art .mark-line { stroke-width: 4.2; }

/* ---------- apps list ---------- */
.apps { padding: 0 var(--pad) clamp(40px, 6vw, 90px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 2px solid var(--fg); padding-top: 18px; }
.section-head p { margin: 0; color: var(--fg-muted); }
.app-list { list-style: none; margin: 14px 0 0; padding: 0; }
.app-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.app-no { font-family: var(--serif); font-size: 22px; color: var(--fg-muted); }
.app-body p { margin: 6px 0 0; color: var(--fg-muted); }
.app-body h3 a { color: var(--fg); text-decoration: none; }
.app-body h3 a:hover { color: var(--link-c); }
.app-meta { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted); }
.app-go { display: inline-flex; gap: 8px; align-items: center; color: var(--fg); font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 2px solid var(--accent); }
.app-go:hover { gap: 14px; }

/* ---------- promise ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promise-item { padding: clamp(24px, 4vw, 56px) var(--pad); }
.promise-item + .promise-item { border-left: 1px solid var(--line); }
.promise-item h3 { font-size: 26px; }
.promise-item p { margin: 10px 0 0; color: var(--fg-muted); max-width: 32ch; }

/* ---------- coffee band ---------- */
.coffee-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin: clamp(32px, 5vw, 72px) var(--pad);
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 28px 0 28px;
}
.coffee-band h2 { color: var(--paper); }
.coffee-band p { margin: 12px 0 0; max-width: 52ch; color: #d9d4c6; }

/* ---------- inner pages ---------- */
.page { padding: clamp(36px, 6vw, 88px) var(--pad) clamp(40px, 6vw, 96px); }
.crumbs { font-size: 15px; color: var(--fg-muted); margin: 0 0 26px; }
.app-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.app-page-side { border-top: 2px solid var(--fg); padding-top: 18px; }
.app-page-side h2 { font-size: 24px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: scale(1.5);
}
.doc { margin-top: clamp(28px, 4vw, 56px); display: grid; gap: 4px; max-width: 78ch; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.doc p { margin: 8px 0 0; }
.big-link { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 40px); }

.coffee-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 6vw, 96px); align-items: center; }
.cup { display: grid; place-items: center; }
.cup svg { width: min(100%, 360px); height: auto; }
.cup-body { fill: var(--fg); }
.cup-handle { stroke: var(--fg); }
.cup-heart { fill: var(--accent); }
.steam { stroke: var(--fg-muted); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding: 28px var(--pad) 40px;
  border-top: 2px solid var(--fg);
  font-size: 15px;
}
.foot p { margin: 0; }
.foot-line strong { font-weight: 800; letter-spacing: -0.02em; margin-right: 8px; }
.foot-small { color: var(--fg-muted); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero, .app-page, .coffee-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; justify-items: start; }
  .hero-art .mark { width: 180px; }
  .promise { grid-template-columns: minmax(0, 1fr); }
  .promise-item + .promise-item { border-left: 0; border-top: 1px solid var(--line); }
  .cup { justify-items: start; }
  .cup svg { width: 200px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .app-row { grid-template-columns: 40px minmax(0, 1fr); }
  .app-meta, .app-go { grid-column: 2; }
  .top { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .app-go { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- ways to pay ---------- */
.pay { margin-top: clamp(32px, 5vw, 72px); border-top: 2px solid var(--fg); padding-top: 22px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: 22px; align-items: start; }
.pay-card { padding: 24px; border: 2px solid var(--fg); border-radius: 0 22px 0 22px; background: var(--bg-soft); }
.pay-card h3 { font-size: 30px; }
.pay-card p { margin: 12px 0 0; }
.pay-venmo { border-color: var(--accent); }
.pay-handle { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.copybox { margin: 16px 0 0; padding: 14px 16px; background: var(--bg); border: 2px dashed var(--fg-muted); overflow-wrap: anywhere; }
.copybox code { font: 700 clamp(18px, 2.4vw, 24px)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; -webkit-user-select: all; }
.copy-btn { cursor: pointer; font-family: var(--sans); }
.copy-btn[hidden] { display: none; }
.steps { margin: 16px 0 0; padding-left: 22px; color: var(--fg); }
.steps li { margin: 8px 0; padding-left: 4px; }
