/* With the Top Down — shared site styles.
   Palette: cream #F1EFE8, taupe #D3D1C7, charcoal #2C2C2A,
   twilight violet #534AB7 (header bar and main buttons). Sky blue is NOT used on the site: Kate finds it clashes with violet. */
:root {
  --cream: #F1EFE8;
  --taupe: #D3D1C7;
  --charcoal: #2C2C2A;
  --violet: #534AB7;
  --violet-dark: #433A9A;
  --blue: #185FA5;
  --muted: #5F5E5A;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--charcoal);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
body.is-checking main { visibility: hidden; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.tagline { font-family: var(--font-head); font-style: italic; }
.muted { color: var(--muted); }

/* header */
.site-header { background: var(--violet); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.wordmark { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; text-decoration: none; color: var(--cream); }
.wordmark:hover { color: var(--cream); }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--cream); }
.site-nav a:hover { border-bottom-color: rgba(241,239,232,.6); color: var(--cream); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.site-nav button { font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.site-header :focus-visible { outline-color: var(--cream); }

/* footer */
.site-footer { border-top: 1px solid var(--taupe); margin-top: 96px; padding: 28px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* layout */
main { padding: 72px 0 0; }
.hero { padding-bottom: 24px; }
.hero .lede { font-size: 1.25rem; max-width: 34ch; margin-bottom: 1.5em; }
.divider { border: 0; border-top: 1px solid var(--taupe); margin: 56px 0; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { border: 1px solid var(--taupe); border-radius: 12px; padding: 28px; background: rgba(255,255,255,.35); }
.card h3 { margin-bottom: .35em; }
.card .status { font-size: .8rem; letter-spacing: .02em; color: var(--muted); margin-bottom: .6em; }
.card .status.done { color: var(--charcoal); font-weight: 600; }

/* buttons + forms */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--violet); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; min-height: 44px; }
.btn:hover { background: var(--violet-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-quiet { background: transparent; color: var(--charcoal); border: 1px solid var(--taupe); }
.btn-quiet:hover { background: var(--taupe); color: var(--charcoal); }
form.stack { display: grid; gap: 18px; max-width: 380px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input[type=email], input[type=password] { width: 100%; font: inherit; padding: 11px 12px; min-height: 44px;
  border: 1px solid var(--charcoal); border-radius: 8px; background: #fff; color: var(--charcoal); }
.msg { min-height: 1.5em; font-size: .95rem; }
.msg.error { color: #8A1F1F; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.draft-note { border: 1px dashed var(--taupe); border-radius: 8px; padding: 12px 16px; font-size: .9rem; color: var(--muted); margin-bottom: 2em; }

/* text-style buttons */
.linklike { font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.linklike:hover { color: var(--violet); }
.linklike[disabled] { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
