/* Petals — shared base: fonts, tokens, buttons, sheets, utilities */
@font-face { font-family: 'Young Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/young-serif-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/young-serif-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/albert-sans-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/albert-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/albert-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/albert-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/kalam-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/kalam-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/kalam-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kalam'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/kalam-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4ebe1; --bg2: #ead9cb; --paper: #fffaf3;
  --ink: #2e2126; --muted: #6e5a5f; --faint: #9a8589;
  --rose: #c4455f; --rose-d: #96304a; --rose-l: #f3c9cf;
  --sage: #6f8a62; --sage-d: #4f6a45; --sage-l: #dfe8d8;
  --line: rgba(60, 30, 35, 0.14);
  --display: 'Young Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Albert Sans Variable', 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--body); font-weight: 650; font-size: 16.5px; letter-spacing: 0.005em; text-decoration: none; line-height: 1.15;
  background: rgba(255, 255, 255, 0.7); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 6px rgba(80, 40, 40, 0.06);
  transition: transform 0.12s, box-shadow 0.15s, background 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: linear-gradient(180deg, #d4566f, var(--rose) 60%, #b43c55); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(170, 50, 75, 0.32); }
.btn-primary:hover { background: linear-gradient(180deg, #db5e77, #c94a64 60%, #b43c55); }
.btn-ghost { background: rgba(255, 255, 255, 0.55); }
.btn-big { min-height: 56px; font-size: 18.5px; padding: 0 30px; }
.btn-small { min-height: 44px; font-size: 15px; padding: 0 16px; }
.btn-link { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); font-weight: 600; }
.btn-link:hover { background: none; color: var(--ink); }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; text-decoration: none; background: rgba(255, 250, 244, 0.72); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--display); font-size: 16px; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .ic-off { display: none; }
.icon-btn.muted .ic-on { display: none; }
.icon-btn.muted .ic-off { display: block; }

/* modals & sheets */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: calc(var(--safe-t) + 12px) calc(var(--safe-r) + 10px) 0 calc(var(--safe-l) + 10px); background: rgba(50, 26, 32, 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.25s both; }
@media (min-width: 640px) { .modal { align-items: center; padding-bottom: 12px; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: relative; width: min(100%, 460px); max-height: calc(100svh - var(--safe-t) - 12px); overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 26px 26px 0 0; padding: 26px 20px calc(var(--safe-b) + 20px); box-shadow: 0 -10px 40px rgba(60, 20, 30, 0.25); text-align: center; animation: sheetUp 0.42s cubic-bezier(0.2, 1.2, 0.35, 1) both; }
@media (min-width: 640px) { .sheet { border-radius: 26px; padding-bottom: 24px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { font-size: 27px; margin: 0 0 10px; }
.sheet p { margin: 0 0 12px; color: var(--muted); }
.sheet-emoji { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(60, 30, 35, 0.06); font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.col { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; justify-content: center; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.privacy { background: var(--sage-l); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; text-align: left; color: #3f4f39 !important; }
.privacy b { color: #2c3a27; }
.warn { color: #9a4a1a !important; font-weight: 600; font-size: 14.5px; }
.help { color: var(--muted); font-size: 14.5px; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; text-align: left; }
.lbl { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
input[type="text"], input[type="date"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 0; font-size: 16px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a8949a; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--rose); outline-offset: 1px; }

.toast { position: fixed; z-index: 80; left: 50%; top: calc(var(--safe-t) + 64px); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: rgba(46, 33, 38, 0.92); color: #fff; font-weight: 600; font-size: 15px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); animation: toastIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.nojs { position: fixed; inset: auto 16px 16px; padding: 16px; background: #fff; border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.small-links { margin: 12px 0 0; }
.small-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--rose-d); font-weight: 650; text-underline-offset: 3px; }
