/* Marq with Whimsy LLC — site styles. No external fonts, images or scripts. */

:root {
  color-scheme: light dark;
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f4eee3;
  --ink: #23264a;
  --muted: #555874;
  --line: #e4dccd;
  --accent: #b43c0d;        /* links and buttons: AA on --bg and --surface */
  --accent-ink: #ffffff;
  --coral: #ff8a5c;         /* decorative only */
  --lilac: #b9a8ff;         /* decorative only */
  --mint: #8fd6bd;          /* decorative only */
  --focus: #5b45d6;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(35 38 74 / 6%), 0 8px 28px rgb(35 38 74 / 8%);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14162b;
    --surface: #1d2040;
    --surface-2: #232750;
    --ink: #f4efe6;
    --muted: #b9bbd4;
    --line: #34386a;
    --accent: #ffa27a;
    --accent-ink: #1a1326;
    --focus: #c4b6ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 28px rgb(0 0 0 / 30%);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  padding-block: 1.1rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand em { font-style: normal; color: var(--accent); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 8vw, 5.5rem);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}
.hero::before {
  width: 520px; height: 520px;
  right: -140px; top: -180px;
  background: radial-gradient(circle at 30% 30%, var(--lilac), transparent 68%);
}
.hero::after {
  width: 440px; height: 440px;
  left: -180px; bottom: -220px;
  background: radial-gradient(circle at 60% 40%, var(--coral), transparent 66%);
  opacity: 0.35;
}
.hero { isolation: isolate; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--coral); }
.hero h1 { max-width: 15ch; }
.squiggle {
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 12 2 22 7 T 42 7 T 62 7 T 82 7 T 102 7 T 118 6' fill='none' stroke='%23ff8a5c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- App portfolio ---------- */
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.app-icon {
  width: 120px; height: 120px;
  border-radius: 27px;
  box-shadow: var(--shadow);
  background: #fff;
}
.app-card h3 { font-size: 1.55rem; margin-bottom: 0.2rem; }
.pill {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.pill.soft { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.meta { color: var(--muted); font-size: 0.95rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1rem; font-weight: 600; }

.placeholder-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
}
.placeholder-card .icon { margin: 0; }

@media (max-width: 560px) {
  .app-card { grid-template-columns: 1fr; }
  .app-icon { width: 96px; height: 96px; border-radius: 22px; }
}

/* ---------- App page hero ---------- */
.app-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}
.app-hero .app-icon { width: clamp(112px, 18vw, 168px); height: auto; aspect-ratio: 1; border-radius: 22.5%; }
.app-hero h1 { margin-bottom: 0.25rem; }
@media (max-width: 560px) {
  .app-hero { grid-template-columns: 1fr; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem; top: 1.1rem;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--coral);
  color: #23264a;
  font-weight: 800;
  font-family: var(--font-display);
}
.steps strong { display: block; }

.verdicts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.verdicts li { padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.verdicts strong { display: block; font-family: var(--font-display); }
.dot { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; margin-right: 0.4em; vertical-align: 0.02em; }
.dot.green { background: #2f9e6b; }
.dot.amber { background: #e0a100; }
.dot.red { background: #d6342c; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 5px solid var(--coral);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.important { border-left-color: #d6342c; }

/* ---------- Prose (policies, support) ---------- */
.prose { padding-block: clamp(2rem, 6vw, 4rem); }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.12rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.updated { color: var(--muted); font-size: 0.95rem; }
.breadcrumb { font-size: 0.95rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted); }

.subnav, .prose .subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.subnav a:hover { border-color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0.85rem 1.1rem; margin-bottom: 0.75rem; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 0.5rem; }

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: 0.35rem; }
.contact-card .big { font-family: var(--font-display); font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 800; overflow-wrap: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .container { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-size: 1rem; color: var(--ink); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.lost .big { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 8rem); font-weight: 900; line-height: 1; color: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Utilities ---------- */
.mt { margin-top: 1.5rem; }
.actions.center { justify-content: center; }
