/* Maruxa public landing. Tokens come from the marketing page of maruxa-v2
   (assets/css/app.css, .marketing-page) and docs/brand/README.md. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/caveat-latin-variable.woff2") format("woff2");
}

:root {
  --paper: #f4f0e6;
  --surface: #fbf8f0;
  --surface-strong: #fffdf7;
  --ink: #173f31;
  --ink-soft: rgb(23 63 49 / 0.82);
  --ink-muted: rgb(23 63 49 / 0.74);
  --border: rgb(23 63 49 / 0.25);
  --border-soft: rgb(23 63 49 / 0.18);
  --border-strong: rgb(23 63 49 / 0.4);
  --blue: #315d9b;
  --violet: #70428f;
  --plum: #53266e;
  --button-ink: #fffdf7;
  --note: #fff2a6;
  --note-border: #c9a400;
  --note-ink: #173f31;
  --shadow: rgb(23 63 49 / 0.12);
  --private: #173f31;
  --private-text: #f4f0e6;
  --private-muted: rgb(244 240 230 / 0.8);
  --private-accent: #f8df50;
  --gutter: 1rem;
  --max: 76rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111b16;
    --surface: #182620;
    --surface-strong: #1e2d26;
    --ink: #f1eadc;
    --ink-soft: rgb(241 234 220 / 0.84);
    --ink-muted: rgb(241 234 220 / 0.72);
    --border: rgb(241 234 220 / 0.24);
    --border-soft: rgb(241 234 220 / 0.16);
    --border-strong: rgb(241 234 220 / 0.42);
    --blue: #87aef0;
    --violet: #c8a7df;
    --plum: #dcb8f0;
    --button-ink: #0e1713;
    --note: #d8c451;
    --note-border: #f0dc70;
    --note-ink: #111a16;
    --shadow: rgb(0 0 0 / 0.34);
    --private: #08110f;
    --private-text: #f1eadc;
    --private-muted: rgb(241 234 220 / 0.76);
    --private-accent: #f5dc66;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--plum);
}

a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

p,
ul,
ol,
dl {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10;
  background: var(--surface-strong);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  left: 0.5rem;
}

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

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 38rem;
}

.muted {
  color: var(--ink-muted);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-15 {
  margin-top: 1.5rem;
}

.hand {
  font-family: "Caveat", "Segoe Print", cursive;
  font-weight: 600;
  color: var(--violet);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--plum);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.7rem 1.2rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--button-ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--violet);
}

.button-secondary:hover {
  background: var(--surface-strong);
  border-color: var(--plum);
  color: var(--plum);
}

.header-cta {
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */

.section {
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
  scroll-margin-top: 1rem;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

/* Hero */

.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin-top: 1rem;
  max-width: 15ch;
}

.hero .lead {
  margin-top: 1.5rem;
}

.hero figure {
  position: relative;
  margin: 0 auto;
  max-width: 26rem;
}

.hero figcaption {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  font-size: 1.7rem;
  transform: rotate(-3deg);
}

/* Cards and lists */

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 1.4rem 1.3rem;
  box-shadow: 4px 5px 0 var(--shadow);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p + p,
.card p + ul,
.card ul + p {
  margin-top: 0.75rem;
}

.card p,
.card li {
  color: var(--ink-soft);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 9px 10px 0 var(--shadow);
}

.steps li {
  counter-increment: step;
  padding: 1.4rem 1.3rem;
  border-bottom: 1px solid var(--border-soft);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  content: counter(step) ".";
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--plum);
}

.steps strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.note {
  margin-top: 1.75rem;
  border: 1px solid var(--note-border);
  background: var(--note);
  color: var(--note-ink);
  padding: 1rem 1.2rem;
  max-width: 46rem;
}

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--violet);
  border-radius: 50%;
}

.ticks.stop li::before {
  border-radius: 0;
  border-color: var(--plum);
  background: var(--plum);
}

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-top: 0.9rem;
}

.models li {
  border: 1px solid var(--border-strong);
  padding: 0.1rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Private (installation) block */

.private {
  background: var(--private);
  color: var(--private-text);
  border-bottom: 0;
}

.private .eyebrow {
  color: var(--private-accent);
}

.private .lead,
.private p,
.private li {
  color: var(--private-muted);
}

.private h2,
.private h3 {
  color: var(--private-text);
}

.private a {
  color: var(--private-accent);
}

.private .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.private .ticks li::before {
  border-color: var(--private-accent);
}

/* Closing call */

.closing .wrap {
  display: grid;
  gap: 1.5rem;
}

.closing .script {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--plum);
}

/* Legal page */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.9rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose ul,
.prose dl {
  margin-top: 0.9rem;
}

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

.prose dt {
  font-weight: 600;
}

.prose dd {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--ink-soft);
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
  }

  .actions {
    flex-direction: row;
  }

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

  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 3rem;
  }

  .site-nav {
    display: flex;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    padding-top: 1rem;
  }

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

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

  .steps li {
    border-right: 1px solid var(--border-soft);
  }

  .steps li:nth-child(3n) {
    border-right: 0;
  }

  .steps li:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .private .wrap {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
  }

  .closing .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

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

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