:root {
  color-scheme: dark;
  --ink: #f0f4f7;
  --muted: #9daebb;
  --line: #233542;
  --surface: #0d202b;
  --surface2: #102a37;
  --navy: #06131d;
  --gold: #d9b66f;
  --blue: #77b9eb;
  --mint: #9fc9bc;
}

* { box-sizing: border-box; }
html { background: var(--navy); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); font-size: 16px; }
body { margin: 0; min-height: 100vh; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.draft-banner { position: sticky; top: 0; z-index: 2; padding: 11px 20px; text-align: center; background: #442b19; color: #ffe2aa; border-bottom: 1px solid #86633b; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.wordmark small { margin-left: 5px; color: var(--gold); font-size: 10px; letter-spacing: .16em; }
.mark { width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-family: Georgia, serif; font-size: 19px; }
.header-note { color: var(--muted); font-size: 14px; }
.intro { padding: 76px 0 42px; max-width: 760px; }
.eyebrow, .app-type { color: var(--gold); font-size: 12px; letter-spacing: .16em; font-weight: 700; }
.intro h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -.045em; font-weight: 560; margin: 18px 0; }
.lede { max-width: 650px; color: var(--muted); font-size: 20px; line-height: 1.55; margin: 0; }
.portfolio-note { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgb(16 42 55 / 62%); color: var(--muted); line-height: 1.5; }
.portfolio-note p { margin: 0; }
.portfolio-note strong { color: var(--ink); }
.portfolio-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #d9b66f1b; color: var(--gold); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--surface2), var(--surface)); text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease; }
.app-card:hover, .app-card:focus-visible { border-color: #5b8394; transform: translateY(-2px); outline: none; }
.app-index { position: absolute; top: 26px; right: 28px; color: #8194a0; font-size: 14px; font-variant-numeric: tabular-nums; }
.app-type { font-size: 11px; }
.app-card h2 { font-size: 30px; letter-spacing: -.035em; font-weight: 580; margin: 30px 0 10px; }
.app-card p { color: var(--muted); line-height: 1.55; max-width: 420px; margin: 0 0 22px; }
.card-link { margin-top: auto; color: var(--blue); font-weight: 650; }
.card-link span { padding-left: 5px; }
.companion { box-shadow: inset 3px 0 0 #d9b66f; }
.food { box-shadow: inset 3px 0 0 #9fc9bc; }
.translator { box-shadow: inset 3px 0 0 #77b9eb; }
.pulso { box-shadow: inset 3px 0 0 #bca9e8; }
.site-footer { margin: 32px 0 48px; padding: 22px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--blue); }

@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 28px), 520px); }
  .site-header { height: 70px; }
  .header-note { font-size: 12px; max-width: 130px; text-align: right; }
  .intro { padding: 52px 0 30px; }
  .app-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-card { min-height: 230px; padding: 23px; }
  .app-index { top: 22px; right: 23px; }
  .app-card h2 { font-size: 27px; margin-top: 25px; }
  .site-footer { flex-direction: column; }
}
