/* Nunito (variable, OFL): self-hosted, see /fonts/OFL.txt */
/* latin-ext */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hyperfocus Hive: plain CSS, no build step. Palette: Sorbet. */

:root {
  --mint: #C3E8D5;
  --sky: #C4DCF3;
  --lilac: #DCCFF2;
  --honey: #F5C45E;

  --bg: #FFFBF4;
  --ink: #2B2940;          /* darker ink derived from #34324A; ~14:1 on bg */
  --ink-soft: #46435F;     /* secondary text; >8:1 on bg and on the card tints */
  --accent: #5A5688;       /* slate-lilac, 6.5:1 on bg */
  --panel: #FDEDCF;        /* soft honey wash for the contact panel */
  --line: rgba(43, 41, 64, 0.16);
  --pill-bg: rgba(255, 251, 244, 0.7);
  --btn-bg: #34324A;
  --btn-ink: #FFFBF4;
  --focus: #5A5688;
  --shadow: rgba(52, 50, 74, 0.16);
  --card-mix: 62%;         /* how much of the cell colour a card carries */
  --hl: rgba(245, 196, 94, 0.55);

  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #34324A;
    --ink: #F4F8FD;
    --ink-soft: #CBD1E6;
    --accent: #F5C45E;
    --panel: #3F3C58;
    --line: rgba(244, 248, 253, 0.2);
    --pill-bg: rgba(244, 248, 253, 0.09);
    --btn-bg: #F5C45E;
    --btn-ink: #2B2940;
    --focus: #F5C45E;
    --shadow: rgba(10, 9, 24, 0.4);
    --card-mix: 16%;
    --hl: rgba(245, 196, 94, 0.32);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--honey); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 18px;
}

.brand { display: inline-block; line-height: 0; }
.brand img { height: 34px; width: auto; }

.nav ul { display: flex; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); background: var(--pill-bg); }

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

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: clamp(32px, 8vw, 96px) clamp(8px, 2vw, 24px);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.35rem, 8.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 14ch;
  text-wrap: balance;
}

.hl {
  background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%);
  padding-inline: 0.06em;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.125rem, 2.6vw, 1.3rem);
  color: var(--ink-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-art { width: min(200px, 52vw); justify-self: start; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-art .c-mint { fill: var(--mint); }
.hero-art .c-sky { fill: var(--sky); }
.hero-art .c-lilac { fill: var(--lilac); }
.hero-art .c-honey { fill: var(--honey); }

@media (prefers-color-scheme: dark) {
  .hero-art .c-mint, .hero-art .c-sky, .hero-art .c-lilac { opacity: 0.92; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art .lit { animation: glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }
}

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.35fr 0.65fr; gap: 56px; }
  .hero-art { width: 100%; max-width: 340px; justify-self: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 18px var(--shadow); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--pill-bg); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease; }
  .btn:hover { transform: translateY(-1px); }
}

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

.section { padding-block: clamp(40px, 7vw, 88px); }
.section + .section { padding-top: 0; }
#contact { padding-bottom: clamp(24px, 4vw, 40px); }
.section-head { max-width: 38em; margin-bottom: clamp(28px, 5vw, 48px); }
h2 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- app cards ---------- */

.cards { display: grid; gap: clamp(24px, 4vw, 40px); }

.card {
  --cell: var(--mint);
  display: grid;
  gap: 20px 40px;
  grid-template-areas: "head" "body" "media" "actions";
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--cell);
  background: color-mix(in srgb, var(--cell) var(--card-mix), var(--bg));
  border: 2px solid var(--cell);
  border-color: color-mix(in srgb, var(--cell) 70%, transparent);
}
.card.sky { --cell: var(--sky); }
.card.lilac { --cell: var(--lilac); }
.card.mint { --cell: var(--mint); }

.card-head { grid-area: head; display: flex; align-items: center; gap: 18px; }
.card-body { grid-area: body; }
.card-media { grid-area: media; }
.card-actions { grid-area: actions; align-self: end; display: flex; flex-wrap: wrap; gap: 12px; }

.icon-wrap { flex: none; filter: drop-shadow(0 6px 10px var(--shadow)); }
.app-icon {
  width: 68px;
  height: 78.5px;
  object-fit: cover;
  clip-path: url(#hex-clip);
}

h3 { font-size: clamp(1.5rem, 4.4vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
.tagline { margin-top: 4px; color: var(--ink-soft); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}
.tags li.pilot { background: var(--honey); border-color: transparent; color: #2B2940; }

.desc { margin-top: 18px; max-width: 36em; }

.features { margin-top: 18px; display: grid; gap: 10px; max-width: 36em; }
.features li { position: relative; padding-left: 28px; }
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 13px;
  height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -36 64 72'%3E%3Cpath d='M-5.3 -32.94Q0 -36 5.3 -32.94L25.88 -21.06Q31.18 -18 31.18 -11.88L31.18 11.88Q31.18 18 25.88 21.06L5.3 32.94Q0 36 -5.3 32.94L-25.88 21.06Q-31.18 18 -31.18 11.88L-31.18 -11.88Q-31.18 -18 -25.88 -21.06Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -36 64 72'%3E%3Cpath d='M-5.3 -32.94Q0 -36 5.3 -32.94L25.88 -21.06Q31.18 -18 31.18 -11.88L31.18 11.88Q31.18 18 25.88 21.06L5.3 32.94Q0 36 -5.3 32.94L-25.88 21.06Q-31.18 18 -31.18 11.88L-31.18 -11.88Q-31.18 -18 -25.88 -21.06Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-soft); max-width: 36em; }

.shots { display: flex; justify-content: center; gap: 14px; }
.shot {
  margin: 0;
  width: min(210px, 44%);
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 14px 30px var(--shadow);
  line-height: 0;
}
.shots.single .shot { width: min(220px, 62%); }
.shot img { width: 100%; }

@media (min-width: 900px) {
  .card {
    grid-template-columns: minmax(0, 1fr) 460px;
    grid-template-areas:
      "head media"
      "body media"
      "actions media";
    grid-template-rows: auto 1fr auto;
  }
  .card-media { align-self: center; }
}

/* ---------- about ---------- */

.about { display: grid; gap: 28px; align-items: start; }
.about-text { display: grid; gap: 18px; max-width: 38em; font-size: 1.125rem; }
.about-text p:first-child::first-line { font-weight: 700; }
.about-art { width: 120px; }
.about-art svg { width: 100%; height: auto; display: block; }
.about-art .c-mint { fill: var(--mint); }
.about-art .c-sky { fill: var(--sky); }
.about-art .c-lilac { fill: var(--lilac); }
.about-art .c-honey { fill: var(--honey); }

@media (min-width: 820px) {
  .about { grid-template-columns: 1.4fr 0.6fr; gap: 56px; }
  .about-art { width: 100%; max-width: 220px; justify-self: center; }
}

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

.contact-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  gap: 24px;
  justify-items: start;
}
.contact-panel p { max-width: 34em; color: var(--ink-soft); font-size: 1.125rem; }

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer img { width: 32px; height: 32px; }
.site-footer .made { margin-left: auto; }

@media (max-width: 480px) {
  .site-footer .made { margin-left: 0; flex-basis: 100%; }
}

/* ---------- 404 ---------- */

.lost { min-height: 60vh; display: grid; align-content: center; gap: 20px; justify-items: start; padding-block: 48px; }
.lost p { color: var(--ink-soft); max-width: 30em; font-size: 1.15rem; }

@media (max-width: 420px) {
  .site-header { gap: 0 8px; }
  .brand img { height: 30px; width: auto; }
  .nav a { padding: 0 8px; font-size: 0.95rem; }
}
