/* Shared styles of the public pages. Colors from docs/design.md; system fonts
   keep the pages light and never call third parties. */
:root {
  --background: #fbfaf6;
  --surface: #ffffff;
  --on-surface: #2b2620;
  --on-surface-variant: #6e655a;
  --heading: #4a3b2e;
  --primary: #287268;
  --on-primary: #ffffff;
  --radius-card: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1916;
    --surface: #26221e;
    --on-surface: #f3efe6;
    --on-surface-variant: #a79e92;
    --heading: #e8d9c6;
    --primary: #5fc4b4;
    --on-primary: #1c1916;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 480px; margin: 0 auto; padding: 32px 16px; }
.logo { display: block; width: 160px; height: auto; margin: 0 auto 24px; }
h1 { color: var(--heading); font-size: 1.5rem; line-height: 1.3; text-align: center; }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; }
.code {
  font-size: 2rem; font-weight: 700; letter-spacing: 0.1em; text-align: center;
  font-variant-numeric: tabular-nums; margin: 16px 0;
}
.button {
  display: block; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary); text-align: center;
  text-decoration: none; font-weight: 600; margin-top: 12px;
}
.hint { color: var(--on-surface-variant); }
@media (prefers-color-scheme: dark) { .logo { content: url("/assets/brand/orma-logo-reversed.svg"); } }
/* Tag page (/t/CODE). */
[hidden] { display: none !important; }
.center { text-align: center; }
.small { font-size: 0.875rem; margin-top: 24px; }
h2 { color: var(--heading); font-size: 1.25rem; margin-top: 0; }
.card + .card, article .card { margin-top: 16px; }
.photo {
  display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1;
  object-fit: cover; border-radius: var(--radius-card); margin: 0 auto 16px;
}
.banner {
  background: #fdecc8; color: #5a3d00; border-radius: 12px; padding: 12px 16px;
  font-weight: 600; text-align: center;
}
.message { font-size: 1.125rem; margin-top: 0; }
label { display: block; font-weight: 600; margin: 16px 0 4px; }
textarea, input[type="tel"] {
  width: 100%; font: inherit; color: inherit; background: var(--background);
  border: 1px solid var(--on-surface-variant); border-radius: 12px; padding: 12px; min-height: 48px;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; }
[data-captcha] { margin-top: 16px; min-height: 65px; }
button.button { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.button:disabled { opacity: 0.6; }
.error { color: #b3261e; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .banner { background: #4a3a10; color: #fdecc8; }
  .error { color: #f2b8b5; }
}
/* Care sheet (/c/TOKEN). */
.pre { white-space: pre-line; margin: 0; }
section.card ul { padding-left: 20px; margin: 0 0 8px; }
/* Website pages (/, /veterinari/, /privacy/, /termini/, /supporto/, /en/). */
.site main { max-width: 720px; }
.site header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; max-width: 720px; margin: 0 auto; padding: 16px;
}
.site header .logo { width: 120px; margin: 0; }
.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
a { color: var(--primary); }
.site nav a, .site footer a { font-weight: 600; }
.site nav a { display: inline-block; padding: 12px 0; }
.site h1 { text-align: left; font-size: 2rem; }
.site .lead { font-size: 1.125rem; }
.site section.card ul { padding-left: 20px; }
.site section.card li + li { margin-top: 8px; }
.site footer { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; font-size: 0.875rem; }
.site footer a { display: inline-block; padding: 12px 0; }
input:not([type]), input[type="email"], select {
  width: 100%; font: inherit; color: inherit; background: var(--background);
  border: 1px solid var(--on-surface-variant); border-radius: 12px; padding: 12px; min-height: 48px;
}
/* Home while Orma is not launched: "work in progress" tag and the honeypot
   field that Brevo expects empty (hidden from people and screen readers). */
.tag {
  display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: var(--surface); color: var(--heading); font-weight: 600; font-size: 0.875rem;
}
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
