/* Shingle shared base ("Friendly Cards"): warm ground, white rounded cards, soft shadows, one friendly blue.
   Public pages add public.css, logged-in pages add app.css. */
:root {
  --ground: #F3EEE7;
  --ground-deep: #EAE3D9;
  --card: #FFFFFF;
  --ink: #2B2724;
  --ink-2: #5E5750;
  --ink-3: #6F675F;
  --line: #E4DCD1;
  --line-2: #D6CCBF;
  --blue: #2F5BFF;
  --blue-press: #2248D9;
  --blue-wash: #E7ECFF;
  --blue-ink: #1C3BB8;
  --hot: #C43E17;
  --hot-wash: #FCE9E1;
  --hot-ink: #9A2E10;
  --good: #1F8A5B;
  --good-wash: #E2F3EA;
  --good-ink: #146443;
  --warm-wash: #FFF1D6;
  --warm-ink: #7A4B00;
  --lilac-wash: #F0EAFF;
  --lilac-ink: #5B3DB5;

  /* legacy names used by older markup */
  --paper: var(--card);
  --paper-2: var(--ground);
  --focus: var(--blue);
  --stamp: var(--hot);

  --display: "Gabarito", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Gabarito", "Figtree", system-ui, sans-serif;

  --radius: 18px;
  --r-panel: 14px;
  --r-img: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px -8px rgba(60, 40, 20, .18);
  --shadow-lift: 0 2px 4px rgba(60, 40, 20, .07), 0 14px 32px -12px rgba(60, 40, 20, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-nav: 20;
  --z-menu: 30;
  --z-toast: 40;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--blue-wash); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 10px; }
input, textarea { caret-color: var(--blue); }
.tabnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* logo */
.logo { font-family: var(--brand); font-weight: 700; font-size: 22px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #4A72FF, var(--blue)); color: #fff; box-shadow: 0 4px 10px -4px rgba(47, 91, 255, .6); display: grid; place-items: center; font-size: 17px; flex: none; }

/* buttons: soft pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s; }
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn-ink, .btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(47, 91, 255, .7); }
.btn-ink:hover, .btn-blue:hover { background: var(--blue-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #45403B; }
.btn-line { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn-line:hover { box-shadow: var(--shadow-lift); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: rgba(43, 39, 36, .06); color: var(--ink); }
.btn-danger { background: var(--hot-wash); color: var(--hot-ink); }
.btn-danger:hover { background: #F8D8CB; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { font-weight: 600; color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* forms */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9A9186; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.field input[aria-invalid="true"] { border-color: var(--hot); }
.hint { font-size: 13.5px; color: var(--ink-3); }
.err { color: var(--hot); font-size: 14px; font-weight: 600; min-height: 1.4em; }
.ok-msg { color: var(--good-ink); font-size: 14px; font-weight: 600; }

/* tags */
.tag { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tag-hot, .tag.hot { background: var(--hot-wash); color: var(--hot-ink); }
.tag-warm, .tag.warm { background: var(--warm-wash); color: var(--warm-ink); }
.tag-good, .tag.good { background: var(--good-wash); color: var(--good-ink); }
.tag-blue, .tag.blue { background: var(--blue-wash); color: var(--blue-ink); }
.tag-lilac { background: var(--lilac-wash); color: var(--lilac-ink); }
.tag-mute { background: var(--ground); color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; padding: 11px 18px; border-radius: 999px; transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; display: flex; gap: 8px; align-items: center; z-index: var(--z-toast); max-width: calc(100vw - 32px); box-shadow: var(--shadow-lift); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
