@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f2eb;
  --paper-2: #ede7dc;
  --ink: #17131a;
  --ink-2: #4a434f;
  --ink-3: #685f6c;
  --line: rgb(23 19 26 / 0.12);
  --line-strong: rgb(23 19 26 / 0.22);
  --accent: #e5482b;
  --accent-text: #b4301a;

  --night: #0b0610;
  --night-2: #1a0a22;
  --night-text: #f3e6ee;
  --night-muted: #c9adbd;
  --magenta: #f80184;
  --violet: #a300fa;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.33rem + 0.85vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(5rem, 3rem + 8vw, 9rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --radius-icon: 22.5%;

  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  --max: 1180px;
  --dur: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  z-index: 10;
}

.skip:focus {
  top: var(--space-4);
}

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  gap: var(--space-2);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 500;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

@media (max-width: 560px) {
  .nav .nav-optional {
    display: none;
  }
}

/* Shared type */

.eyebrow {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8) var(--space-9);
}

.hero h1 {
  margin-top: var(--space-5);
  font-size: var(--step-4);
  max-width: 13ch;
}

.hero .lede {
  margin: var(--space-5) 0 0;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.button-solid {
  background: var(--ink);
  color: var(--paper);
}

.button-solid:hover {
  background: #2d2533;
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:active {
  transform: translateY(1px);
}

/* Signature: a home screen of app slots, the first one taken. */

.homescreen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.6rem);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, #fbf8f3 0%, var(--paper-2) 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 30px 60px -40px rgb(23 19 26 / 0.35);
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  text-align: center;
}

.slot-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-icon);
}

.slot-icon.is-empty {
  border: 1.5px dashed var(--line-strong);
}

.slot img.slot-icon {
  box-shadow: 0 14px 28px -14px rgb(60 0 60 / 0.55);
}

.slot figcaption {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.3;
}

.slot.is-live figcaption {
  color: var(--ink);
  font-weight: 600;
}

/* Section scaffolding */

.section {
  padding-block: var(--space-9);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-2);
}

/* App feature card (Positions keeps its own dark identity) */

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding: clamp(1.75rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, #44144c 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, #3d0b5e 0%, transparent 70%),
    var(--night);
  color: var(--night-text);
  overflow: hidden;
}

.app-id {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.app-id img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
}

.app-id h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-id .meta {
  margin: var(--space-1) 0 0;
  font-size: var(--step--1);
  color: var(--night-muted);
}

.tag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.1rem 0.55rem;
  border: 1px solid rgb(243 230 238 / 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--night-text);
  vertical-align: 0.15em;
}

.app-tagline {
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.app-tagline em {
  font-style: italic;
  background: linear-gradient(90deg, var(--magenta), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.app-copy {
  margin: var(--space-5) 0 0;
  max-width: 32rem;
  color: var(--night-muted);
}

.facts {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  color: var(--night-text);
}

.facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid rgb(243 230 238 / 0.25);
  border-radius: var(--radius-s);
  line-height: 1.2;
}

.store small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.store span {
  font-weight: 600;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--step--1);
}

.app-links a {
  color: var(--night-muted);
  text-underline-offset: 3px;
}

.app-links a:hover {
  color: var(--night-text);
}

.app-shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.app-shots img {
  border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}

.app-shots img:last-child {
  margin-top: var(--space-8);
}

.app-note {
  margin: var(--space-5) 0 0;
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  counter-increment: principle;
}

.principles li::before {
  content: "0" counter(principle);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--accent-text);
  line-height: 1.3;
}

.principles h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.principles p {
  margin: var(--space-2) 0 0;
  color: var(--ink-2);
}

/* Contact */

.contact {
  text-align: center;
}

.contact h2 {
  font-size: var(--step-3);
}

.contact p {
  margin: var(--space-4) auto 0;
  max-width: 32rem;
  color: var(--ink-2);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contact .contact-cta {
  align-items: center;
}

.button-lg {
  min-height: 56px;
  padding-inline: var(--space-7);
  font-size: var(--step-0);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
  text-decoration: none;
  color: var(--ink-2);
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal and support pages */

.doc {
  max-width: 44rem;
  padding-block: var(--space-8) var(--space-9);
}

.doc h1 {
  margin-top: var(--space-4);
  font-size: var(--step-4);
}

.doc .updated {
  margin: var(--space-4) 0 0;
  color: var(--ink-3);
  font-size: var(--step--1);
}

.doc .summary {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-m);
  background: var(--paper-2);
  color: var(--ink-2);
}

.doc .summary p {
  margin: 0;
}

.doc .toc {
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.doc .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
}

.doc .toc a:hover {
  background: var(--ink);
  color: var(--paper);
}

.doc .toc li + li {
  margin-top: 0;
}

.doc h2 {
  margin: var(--space-8) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  scroll-margin-top: var(--space-5);
}

.doc h3 {
  margin: var(--space-6) 0 0;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

.doc p,
.doc ul {
  margin: var(--space-4) 0 0;
  color: var(--ink-2);
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: var(--space-2);
}

.doc strong {
  color: var(--ink);
}

.doc a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.doc a.button {
  text-decoration: none;
}

.doc a.button-solid {
  color: var(--paper);
}

.doc a.button-ghost {
  color: var(--ink);
}

.doc a.button-ghost:hover {
  color: var(--paper);
}

/* Responsive */

@media (max-width: 900px) {
  .hero,
  .app-card,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: var(--space-7);
    padding-top: var(--space-6);
  }

  .homescreen {
    max-width: 420px;
  }

  .app-shots {
    max-width: 480px;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 700ms var(--ease) both;
  }

  .rise-2 {
    animation-delay: 90ms;
  }

  .rise-3 {
    animation-delay: 180ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
