:root {
  color-scheme: light;
  --ink: #2b2240;
  --bg: #fffaf2;
  --card: #ffffff;
  --muted: #6e6687;
  --line: #efe4d2;
  --pink: #ff5d8f;
  --sun: #ffc23d;
  --sky: #4cc9f0;
  --leaf: #52d17c;
  --grape: #8b5cf6;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 22px 56px; }
main.bare { max-width: none; padding: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 12px; }
a { color: var(--grape); }

.top { display: flex; align-items: center; gap: 18px; padding: 14px 22px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { font-size: 26px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--pink); }
.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink); padding: 6px 14px; border-radius: 99px; font-weight: 700; }
.top nav a.on, .top nav a:hover { background: var(--sun); }

.site-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding: 18px 22px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 15px; }
.site-footer a { font-weight: 700; }
body.bare .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; border: 0; padding: 4px 10px; font-size: 12px; background: transparent; justify-content: flex-end; pointer-events: none; }
body.bare .site-footer span { display: none; }
body.bare .site-footer a { pointer-events: auto; color: #fff; text-shadow: 0 1px 3px #0009; opacity: .8; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 99px; border: 0; font: 800 17px/1 var(--font); cursor: pointer; text-decoration: none; background: var(--pink); color: #fff; box-shadow: 0 4px 0 #d63c6e; transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d63c6e; }
.btn.alt { background: var(--sky); box-shadow: 0 4px 0 #2a9cc1; color: #08324a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn[disabled] { opacity: .5; cursor: default; }

.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 0 var(--line), 0 10px 30px #2b22400d; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.muted { color: var(--muted); }

form.stack { display: grid; gap: 14px; max-width: 460px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select { font: 17px/1.4 var(--font); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 3px solid var(--sky); border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 16px; border-radius: 14px; background: #fff3c4; }
.note.ok { background: #d8f7e2; }
.note.err { background: #ffe0e8; }
[hidden] { display: none !important; }
