/* Lightover: shared look for every page. Daybreak palette, readable for older eyes. */
@import url("/css/fonts.css");

:root {
  --daylight: #faf6f0;
  --surface: #f4ece1;
  --surface-2: #efe4d6;
  --card: #fffdf9;
  --dusk: #1b1e25;
  --ink: #23262c;
  --ink-soft: #43474f;
  --muted: #7a7168;
  --on-dusk: #f3ede4;
  --line: rgba(35, 38, 44, 0.14);
  --line-soft: rgba(35, 38, 44, 0.08);
  --accent: #c9403a;
  --accent-ink: #a3302b;
  --gold: #f7b15c;
  --ok: #2f6b4f;
  --dawn: linear-gradient(90deg, #f7b15c 0%, #f08049 45%, #d9473d 100%);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(35, 38, 44, 0.06), 0 8px 24px rgba(35, 38, 44, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--daylight);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
::selection { background: rgba(217, 71, 61, 0.28); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* the mark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.wordmark img { width: 28px; height: 28px; }
.wordmark:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink);
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--surface); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-soft); padding-inline: 12px; }
.btn.quiet:hover { background: var(--surface); }
.btn.danger { color: var(--accent-ink); }
.btn.big { min-height: 60px; padding: 14px 30px; font-size: 1.15rem; border-radius: 14px; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }

/* forms */
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: 400 1rem var(--sans);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; font-family: var(--serif); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field { margin: 0 0 18px; }
.hint { color: var(--muted); font-size: 0.875rem; margin-top: 6px; }
.error { color: var(--accent-ink); font-weight: 600; margin: 0 0 14px; }
.notice { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.notice.good { background: #eaf3ec; border-color: #cfe3d5; color: #1f4a36; }

/* cards and the small centred pages (sign in, join, reset) */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.narrow { max-width: 460px; margin: 0 auto; padding: 40px 20px 80px; }
.narrow .wordmark { margin-bottom: 28px; }
.narrow h1 { font-size: 2rem; }
.rule { height: 3px; border: 0; background: var(--dawn); border-radius: 3px; margin: 0 0 28px; width: 64px; }
