/*
  Goldhawk IT website.

  The same black and gold as the support portal (support.goldhawkit.com):
  obsidian for the chrome (header, hero, footer), a warm paper canvas for
  reading, and one metallic gold used sparingly, for the thing that matters.
  Colours are the portal's oklch tokens, so the two read as one company.
  Light and dark follow the visitor's system setting; the obsidian bands
  stay obsidian in both.
*/

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

:root {
  color-scheme: light dark;

  /* Canvas and ink */
  --background: oklch(0.982 0.004 85);
  --foreground: oklch(0.185 0.012 80);
  --card: oklch(0.999 0.002 85);
  --muted: oklch(0.955 0.008 85);
  --muted-foreground: oklch(0.47 0.018 80);
  --border: oklch(0.905 0.012 85);
  --input: oklch(0.64 0.016 85);
  --ring: oklch(0.58 0.105 80);

  /* The gold */
  --gold: oklch(0.72 0.118 85);
  --gold-strong: oklch(0.58 0.105 80);
  --gold-soft: oklch(0.93 0.045 90);
  --gold-ink: oklch(0.48 0.1 80);

  --destructive-ink: oklch(0.47 0.17 27);
  --success: oklch(0.6 0.14 155);
  --success-ink: oklch(0.43 0.1 155);
  --success-soft: oklch(0.93 0.05 155);

  /* Obsidian chrome: the same in both themes */
  --shell: oklch(0.155 0.012 80);
  --shell-raised: oklch(0.2 0.016 80);
  --shell-accent: oklch(0.245 0.02 80);
  --shell-foreground: oklch(0.87 0.014 85);
  --shell-muted: oklch(0.7 0.014 85);
  --shell-strong: oklch(0.985 0.005 85);
  --shell-border: oklch(1 0 0 / 9%);
  --shell-glow: oklch(0.72 0.118 85 / 22%);
  --shell-gold: oklch(0.78 0.11 88);

  --shadow-card: 0 1px 2px oklch(0.2 0.02 80 / 6%), 0 0 0 1px oklch(0.2 0.02 80 / 5%);
  --shadow-pop: 0 24px 60px -24px oklch(0 0 0 / 60%), 0 6px 18px -10px oklch(0 0 0 / 40%);

  --radius: 0.75rem;
  --page: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.175 0.012 80);
    --foreground: oklch(0.95 0.008 85);
    --card: oklch(0.215 0.014 80);
    --muted: oklch(0.24 0.016 80);
    --muted-foreground: oklch(0.74 0.014 85);
    --border: oklch(1 0.01 85 / 11%);
    --input: oklch(0.52 0.014 85);
    --ring: oklch(0.86 0.09 88);
    --gold: oklch(0.78 0.11 88);
    --gold-strong: oklch(0.86 0.09 88);
    --gold-soft: oklch(0.3 0.04 85);
    --gold-ink: oklch(0.84 0.1 88);
    --destructive-ink: oklch(0.78 0.14 25);
    --success-ink: oklch(0.8 0.12 155);
    --success-soft: oklch(0.3 0.05 155);
    --shadow-card: 0 1px 2px oklch(0 0 0 / 30%), 0 0 0 1px oklch(1 0 0 / 6%);
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--shell-gold);
  color: var(--shell);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-gold {
  background: var(--shell-gold);
  color: var(--shell);
  box-shadow: 0 8px 24px -12px oklch(0.78 0.11 88 / 70%);
}

.btn-gold:hover {
  background: oklch(0.84 0.1 88);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: oklch(0.78 0.11 88 / 35%);
  background: var(--shell-accent);
  color: var(--shell-foreground);
}

.btn-ghost:hover {
  border-color: oklch(0.78 0.11 88 / 70%);
  color: var(--shell-strong);
}

.btn-ghost svg {
  color: var(--shell-gold);
}

.btn-ink {
  background: var(--foreground);
  color: var(--background);
}

.btn-ink:hover {
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--shell);
  color: var(--shell-foreground);
  border-bottom: 1px solid var(--shell-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
}

.brand img {
  height: 1.9rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--shell-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--shell-strong);
  background: var(--shell-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn {
  min-height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 1px solid var(--shell-border);
  border-radius: 999px;
  background: var(--shell-accent);
  color: var(--shell-strong);
  cursor: pointer;
}

.menu-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-button .icon-close,
.menu-button[aria-expanded='true'] .icon-open {
  display: none;
}

.menu-button[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 56rem) {
  .menu-button {
    display: inline-flex;
  }

  .site-header .wrap {
    gap: 0.75rem;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-block: 0.75rem;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }

  .site-header.is-open .nav a {
    padding: 0.8rem 0.75rem;
    font-size: 1rem;
  }

  .site-header.is-open .header-actions {
    padding-top: 0.75rem;
    border-top: 1px solid var(--shell-border);
  }

  .site-header.is-open .header-actions .btn {
    min-height: 2.9rem;
    font-size: 0.95rem;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--shell);
  color: var(--shell-foreground);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7.5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 78% 30%, var(--shell-glow) 0%, transparent 70%),
    radial-gradient(40% 40% at 10% 0%, oklch(0.72 0.118 85 / 10%) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shell-gold), transparent);
  opacity: 0.5;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.band .eyebrow {
  color: var(--shell-gold);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  color: var(--shell-strong);
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.hero h1 .gold {
  color: var(--shell-gold);
}

.hero .lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--shell-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-actions .btn {
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points svg {
  width: 1rem;
  height: 1rem;
  color: var(--shell-gold);
}

/* The illustration: a support ticket and a deploy, the two halves of the business. */
.hero-art {
  position: relative;
  min-height: 25rem;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(26rem, 95%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.14;
}

.hero-mark::before,
.hero-mark::after {
  content: '';
  position: absolute;
  inset: -12%;
  border: 1px solid oklch(0.78 0.11 88 / 45%);
  border-radius: 50%;
}

.hero-mark::after {
  inset: -28%;
  opacity: 0.5;
}

.hero-mark img {
  width: 100%;
  height: 100%;
}

.mock {
  position: absolute;
  border: 1px solid var(--shell-border);
  border-radius: 1rem;
  background: oklch(0.2 0.016 80 / 92%);
  box-shadow: var(--shadow-pop);
  color: var(--shell-foreground);
  font-size: 0.85rem;
  line-height: 1.45;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mock-ticket {
  top: 0.5rem;
  right: 0;
  width: min(22rem, 100%);
  padding: 1.1rem 1.2rem 1.2rem;
  animation: float 9s ease-in-out infinite;
}

.mock-deploy {
  bottom: 0.5rem;
  left: 0;
  width: min(17rem, 85%);
  padding: 1rem 1.1rem;
  animation: float 9s ease-in-out -4.5s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--shell-muted);
  font-size: 0.75rem;
}

.mock-title {
  margin-top: 0.4rem;
  color: var(--shell-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.chip::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.chip-success {
  background: oklch(0.6 0.14 155 / 18%);
  color: oklch(0.82 0.12 155);
}

.chip-gold {
  background: oklch(0.78 0.11 88 / 16%);
  color: var(--shell-gold);
}

.mock-steps {
  display: flex;
  gap: 0.3rem;
  margin: 0.9rem 0;
}

.mock-steps span {
  flex: 1;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--shell-gold);
}

.mock-msg {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--shell-border);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--shell-accent);
  color: var(--shell-gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.avatar img {
  width: 1.1rem;
  height: 1.1rem;
}

.mock-msg strong {
  display: block;
  color: var(--shell-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.mock-msg p {
  color: var(--shell-muted);
  font-size: 0.82rem;
}

.mock-deploy .bars {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.mock-deploy .bar {
  display: flex;
  justify-content: space-between;
  color: var(--shell-muted);
  font-size: 0.78rem;
}

.mock-deploy .bar b {
  color: var(--shell-foreground);
  font-weight: 500;
}

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 22rem;
    max-width: 30rem;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 30rem) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-art {
    min-height: 23rem;
  }
}

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

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 650;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

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

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

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

@media (max-width: 60rem) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.card:hover {
  border-color: oklch(0.72 0.118 85 / 45%);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.icon-tile svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Build: the larger cards, one per thing we make */
.build-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.build-card h3 {
  font-size: 1.35rem;
}

.build-card ul {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.925rem;
}

.build-card li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.build-card li::before {
  content: '';
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-0.1rem);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed oklch(0.72 0.118 85 / 50%);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--gold-soft) 45%, transparent);
}

.note img {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}

.note p {
  color: var(--foreground);
  font-size: 0.975rem;
}

/* ------------------------------------------------------- why (obsidian) */

.band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--shell-border);
  background: var(--shell);
  color: var(--shell-foreground);
}

.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 0% 100%, oklch(0.72 0.118 85 / 12%) 0%, transparent 70%);
  pointer-events: none;
}

.band .wrap {
  position: relative;
}

.band .section-head h2 {
  color: var(--shell-strong);
}

.band .section-head p {
  color: var(--shell-muted);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--shell-border);
  border-radius: var(--radius);
  list-style: none;
}

.reasons li {
  padding: 1.75rem 1.5rem;
}

.reasons li + li {
  border-left: 1px solid var(--shell-border);
}

.reasons .num {
  color: var(--shell-gold);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.reasons h3 {
  margin-top: 0.9rem;
  color: var(--shell-strong);
  font-size: 1.1rem;
  font-weight: 600;
}

.reasons p {
  margin-top: 0.5rem;
  color: var(--shell-muted);
  font-size: 0.925rem;
}

@media (max-width: 60rem) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reasons li:nth-child(3) {
    border-left: 0;
  }

  .reasons li:nth-child(n + 3) {
    border-top: 1px solid var(--shell-border);
  }
}

@media (max-width: 38rem) {
  .reasons {
    grid-template-columns: 1fr;
  }

  .reasons li + li {
    border-left: 0;
    border-top: 1px solid var(--shell-border);
  }
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  counter-increment: step;
}

.steps li::before {
  content: '0' counter(step);
  position: absolute;
  top: -0.95rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--background);
  color: var(--gold-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.steps h3 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

@media (max-width: 60rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
}

@media (max-width: 38rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

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

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

@media (max-width: 56rem) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}

.contact .section-head {
  margin-bottom: 2rem;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-color: oklch(0.72 0.118 85 / 55%);
}

.contact-link strong {
  display: block;
  font-size: 0.975rem;
  font-weight: 600;
}

.contact-link span span {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.contact-link > svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: auto;
  color: var(--gold-ink);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 34rem) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  font-size: 0.875rem;
  font-weight: 550;
}

.field .optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--input);
  border-radius: 0.6rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  /* 16px stops iOS Safari zooming the page when a field is focused. */
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23998a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ring);
  outline: none;
  box-shadow: 0 0 0 3px oklch(0.72 0.118 85 / 30%);
}

.field [aria-invalid='true'] {
  border-color: var(--destructive-ink);
}

.field-error {
  color: var(--destructive-ink);
  font-size: 0.85rem;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

/* The honeypot: present for bots that fill every field, absent for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-foot p {
  max-width: 22rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.form-foot .btn {
  min-height: 3rem;
  padding: 0 1.6rem;
}

@media (max-width: 34rem) {
  .form-foot .btn {
    width: 100%;
  }
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  background: color-mix(in oklch, var(--destructive-ink) 10%, transparent);
  color: var(--destructive-ink);
  font-size: 0.925rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-done {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1rem 0;
}

.form-done[hidden] {
  display: none;
}

.form-done .tick {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success-ink);
}

.form-done .tick svg {
  width: 1.5rem;
  height: 1.5rem;
}

.form-done h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.form-done p {
  color: var(--muted-foreground);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.site-footer {
  background: var(--shell);
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-top img {
  height: 2rem;
  width: auto;
}

.footer-top p {
  max-width: 22rem;
  margin-top: 1rem;
}

.footer-top h2 {
  color: var(--shell-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-top ul {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-top a {
  text-decoration: none;
}

.footer-top a:hover {
  color: var(--shell-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--shell-border);
  font-size: 0.85rem;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--shell-strong);
}

@media (max-width: 44rem) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------- small pages (privacy) */

.page {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 650;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.prose p,
.prose ul {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--gold-ink);
  text-underline-offset: 3px;
}

.prose .updated {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.message-page {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - 12rem);
  padding-block: 4rem;
  text-align: center;
}

.message-page .inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 32rem;
}

.message-page img {
  width: 3.5rem;
  height: 3.5rem;
}

.message-page h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 650;
}

.message-page p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.message-page .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
