/* remind.rsvp — polish overlay ("spare but finished")
   Load AFTER styles.css:  <link rel="stylesheet" href="/static/styles.css?v=...">
                           <link rel="stylesheet" href="/static/refresh.css?v=...">
   One idea only: surfaces LIFT off the page instead of being fenced in 2px ink.
   Palette, cobalt, Atkinson, outline buttons, every WCAG ratio and the focus
   ring are left exactly as they were. No new colors, no motion that a person
   didn't trigger, no dark mode added. Everything here is a visual-weight change.
   Selectors match the originals' specificity so this layer simply wins by order. */

:root {
  /* Two levels of elevation, tinted toward ink (not the generic rgba(0,0,0,.1)).
     Resting cards use lift-1; the page card / primary action use lift-2. */
  --lift-1: 0 1px 2px rgba(20, 20, 20, 0.05), 0 2px 10px rgba(20, 20, 20, 0.06);
  --lift-2: 0 2px 6px rgba(20, 20, 20, 0.06), 0 14px 36px rgba(20, 20, 20, 0.10);
  /* A crisp hairline for lifted surfaces — lighter than the old ink outline. */
  --hair: #E2E2E2;
  /* The faintest cobalt wash, for the one "go" notice. */
  --go-wash: rgba(0, 71, 171, 0.045);
}

/* 1 — Figure/ground. The backdrop gets the barest top-to-bottom tone so the
   white card reads as sitting ON something. Still essentially flat grey. */
body { background: linear-gradient(180deg, #EFEFEF 0%, #E6E6E6 100%); background-attachment: fixed; }

/* 2 — The page card itself sits up a little more, with a clean edge. */
@media (min-width: 560px) {
  .phone { box-shadow: var(--lift-2); }
}
@media (min-width: 900px) {
  .phone { box-shadow: var(--lift-2); }
}

/* 3 — THE de-wireframe. Container surfaces lose the heavy 2px ink outline and
   become lifted white cards with a hairline. Wells stay flat (recessed) as the
   deliberate counterpoint, so not everything is a floating card. */
.card,
.boxed {
  border: 1px solid var(--hair);
  box-shadow: var(--lift-1);
  background: #FFFFFF;
}
.notice {
  border: 1px solid var(--hair);
  box-shadow: var(--lift-1);
}
/* The one attention notice keeps cobalt, now as a hairline + faint wash rather
   than a slab border. */
.notice.go-notice {
  border: 1px solid var(--go);
  background: var(--go-wash);
  box-shadow: var(--lift-1);
}
/* "Empty / add" affordance stays dashed, just a softer grey. */
.card.dashed, .dashed { border: 2px dashed #C7C7C7; box-shadow: none; }

/* On the event page's desktop side column the originals force cards white on
   white; give them the hairline so they don't dissolve. */
@media (min-width: 900px) {
  .side-col .boxed, .side-col .card { border: 1px solid var(--hair); box-shadow: var(--lift-1); }
}

/* 4 — Form controls. Drop from 2px ink to a lighter resting edge, but never
   below the 3:1 UI-contrast floor: #8A8A8A is 3.5:1 on white. Focus ring and
   the aria-invalid state are untouched. A hair of inset depth seats the field. */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=time],
textarea,
label.field select {
  border: 1.5px solid #8A8A8A;
  box-shadow: inset 0 1px 2px rgba(20, 20, 20, 0.04);
}
/* The error state as styles.css has it: the rule above has the same specificity and comes later,
   so it would otherwise take the 3px error border away. */
input[aria-invalid=true] { border-color: var(--error); border-width: 3px; }
/* Selectable option cards: lean on the lift for the boundary, keep the checked
   state's bold cobalt exactly as-is (the primary selection signal). */
.choice {
  border: 1px solid var(--hair);
  box-shadow: var(--lift-1);
}

/* 5 — Button hierarchy. Outline buttons stay flat and outlined (kept on
   purpose). The single primary action lifts, with a cobalt-tinted shadow so it
   reads as the thing to press. Transitions are on hover only (user-triggered). */
.btn { transition: box-shadow 0.15s ease, background 0.15s ease; }
.btn.primary {
  box-shadow: 0 1px 2px rgba(0, 71, 171, 0.20), 0 6px 18px rgba(0, 71, 171, 0.22);
}
.btn.primary:hover { box-shadow: 0 2px 4px rgba(0, 71, 171, 0.24), 0 10px 26px rgba(0, 71, 171, 0.28); }
.btn.dark, .btn.go-kit { box-shadow: var(--lift-1); }
.done-mark { box-shadow: var(--lift-1); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 6 — Type hierarchy. The old scale jumped 32 -> 20 -> 18 (h2 barely above
   body). Open the top end and tighten display tracking so headings read as
   headings. Sizes below h2 (lead/small/tiny) are left alone — they carry
   specific meanings across the app. */
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.015em; }
h1.smaller { font-size: 31px; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .split h1 { font-size: 44px; letter-spacing: -0.02em; }
  .split h1.smaller { font-size: 36px; }
}

/* 7 — Reading measure on the wide (desktop) main column. Narrow phone column
   is already well under 80 chars. */
@media (min-width: 900px) {
  .split .main-col p, .split .main-col .lead { max-width: 64ch; }
}

/* 8 — Tiny link nicety: a touch of underline breathing room. Weight, color and
   the 44px targets are unchanged. */
a { text-underline-offset: 2px; }
