/* Daily IQ by Meyer LLC — site styles. Brand colours are defined once below. */
:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-alt: #eeeae3;
  --text: #1e2430;
  --muted: #4a5262;
  --border: #ddd7cc;
  --teal: #0e7c74;      /* brand primary — buttons (white text: 4.9:1) */
  --teal-ink: #0b6a63;  /* darker teal for text links on light backgrounds (≥5.8:1) */
  --teal-soft: #e3f1ef;
  --coral: #f2725b;     /* accent — decorative only (borders, marks) */
  --amber: #e8a23a;     /* secondary — decorative only */
  --amber-soft: #fbf0dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(30 36 48 / 6%), 0 4px 16px rgb(30 36 48 / 5%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.section h2:first-child, .card h2, .card h3, .contact-aside h2 { margin-top: 0; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.container.narrow { width: min(100% - 2.5rem, 46rem); }
.page { padding-block: 2.5rem 4rem; }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--text); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; margin-right: auto; }
.brand-name { font-size: 1.05rem; }
.main-nav ul, .footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.main-nav a { color: var(--text); text-decoration: none; padding: 0.35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--border); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--teal); font-weight: 600; }
.lang { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 0.2rem 0.3rem; font-weight: 600; min-width: 1.6rem; text-align: center; }
.lang a[aria-current="true"] { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 40rem) {
  .header-inner { gap: 0.5rem 1rem; }
  .brand { width: 100%; }
  .main-nav { margin-right: auto; }
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(40rem 20rem at 100% 0%, var(--teal-soft), transparent 70%),
    radial-gradient(30rem 16rem at 0% 100%, var(--amber-soft), transparent 70%);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 600; color: var(--teal-ink); margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); color: var(--muted); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.center .actions { justify-content: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.9rem; padding: 0.65rem 1.35rem; border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button-ghost { background: transparent; color: var(--teal-ink); }
.button-ghost:hover { background: var(--teal-soft); color: var(--teal-ink); }
.arrow-link { font-weight: 600; }
.arrow-link::after { content: " →"; }

/* Sections and cards */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--surface-alt); }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); border-top: 5px solid var(--teal);
}
.card-amber { border-top-color: var(--amber); }
.card-coral { border-top-color: var(--coral); }
.card > :last-child { margin-bottom: 0; }
.fineprint { font-size: 0.875rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 0.75rem; }
.cta { text-align: center; }
.cta .actions { justify-content: center; }
.text-link { font-weight: 600; }

.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--amber-soft); color: #6b4708; border: 1px solid var(--amber);
}
.notice {
  background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin-block: 1.75rem;
}
.draft-banner {
  background: var(--amber-soft); border: 1px solid var(--amber); color: #5a3c06; padding: 0.75rem 1rem; border-radius: 10px;
}
.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.5rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg);
}
.link-list { padding-left: 1.2rem; }
.link-list li { margin-bottom: 0.4rem; }
.prose section { margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.big-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--teal-soft); -webkit-text-stroke: 2px var(--teal); line-height: 1; margin: 1rem 0; }
address { font-style: normal; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.contact-aside h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; color: var(--muted); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid #8a8f99; border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 2.9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--teal-ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9rem; margin: 0.3rem 0 0; font-weight: 600; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--teal); flex: none; }
.field-check label { font-weight: 400; margin: 0; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 1rem; }
.form-status:empty { display: none; }
.form-status { padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; }
.form-status.is-success { background: var(--teal-soft); border: 1px solid var(--teal); color: #064d48; }
.form-status.is-error { background: #fdecea; border: 1px solid #b3261e; color: #8c1d18; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--text); color: #e9ebef; margin-top: auto; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.footer-inner { display: grid; gap: 1.5rem; padding-block: 2.25rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 1.2fr 1fr auto; align-items: start; } }
.footer-brand { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer .lang, .site-footer .lang a { color: #c9cdd5; }
.site-footer .lang a[aria-current="true"] { color: #fff; }

@media print {
  .site-header nav, .lang, .skip-link, .actions { display: none; }
  body { background: #fff; }
}
