/*
 * The marketing site's styles. The colours and fonts match the app's design
 * tokens (src/app/globals.css), copied rather than shared: this site shares
 * nothing with the app (docs/ARCHITECTURE.md 11.2).
 */

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

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

:root {
  --ground: #f3f2e8;
  --card: #fff;
  --line: #d6e2da;
  --ink: #1a2333;
  --muted: #46525e;
  --accent: #153462;
  --accent-hover: #0e2547;
  --olive: #4f6200;
  --burnt: #a83c00;
  --mild: #9a5c06;
  --olive-soft: #e6e8c4;
  --amber-soft: #f8dcae;
  --burnt-soft: #f0d0c0;
  --heading: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  margin: 0;
}

.site-header,
.site-footer,
main {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.25rem;
}

.brand img {
  height: 2.25rem;
  width: auto;
  border-radius: 0.375rem;
}

.brand span {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 #ffffff1f,
    0 1px 2px #15346229;
}

.button:hover {
  background: var(--accent-hover);
}

.button-large {
  min-height: 3.25rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.4em;
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.olive {
  color: var(--olive);
}

.burnt {
  color: var(--burnt);
}

.mild {
  color: var(--mild);
}

.lead {
  max-width: 36rem;
  margin: 1.5rem auto 2rem;
  font-size: 1.25rem;
  color: var(--muted);
}

.note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.steps {
  padding-bottom: 5rem;
}

.steps h2 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  border-radius: 1rem;
  padding: 2rem;
}

.step-olive {
  background: var(--olive-soft);
}

.step-amber {
  background: var(--amber-soft);
}

.step-burnt {
  background: var(--burnt-soft);
}

.step-number {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.step p:last-child {
  margin: 0;
  font-size: 1.125rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.75rem 0 0;
}

.site-footer a:not(.brand) {
  color: var(--accent);
}
