/* OMSI University — shared styles. Pink brand accent on calm white surfaces. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #2a1520;
  --ink-2: #6b4d5c;
  --ink-3: #9a8090;
  --rose: #e0457b;
  --rose-deep: #b8295c;
  --rose-soft: #fbd3e1;
  --blush: #fbf0f4;
  --lilac: #cbb9f4;
  --peach: #ffd2c0;
  --mint: #2f9e7a;
  --amber: #c98a1b;

  --surface: #ffffff;
  --page: #fbf7f9;
  --glass: rgba(255, 255, 255, .92);
  --glass-strong: #ffffff;
  --glass-line: rgba(42, 21, 32, .07);
  --hair: rgba(42, 21, 32, .08);
  --shadow: 0 1px 2px rgba(42, 21, 32, .04), 0 8px 24px -16px rgba(42, 21, 32, .18);
  --shadow-lift: 0 2px 4px rgba(42, 21, 32, .05), 0 18px 36px -18px rgba(184, 41, 92, .28);

  /* --serif is the display face (name kept so pages need no edits); --accent is the italic flourish. */
  --serif: 'Bricolage Grotesque', system-ui, sans-serif;
  --accent: 'Instrument Serif', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

/* ---------- Atmosphere ----------
   Only the public landing page gets a faint wash of colour. Working screens (dashboard, admin) stay plain so text is easy to read. */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.mesh i:nth-child(1) { width: 46vw; height: 46vw; background: #f7a3c2; top: -20vw; left: -12vw; }
.mesh i:nth-child(2) { width: 34vw; height: 34vw; background: #cdbdf5; top: -8vw; right: -10vw; }
.mesh i:nth-child(n+3) { display: none; }
body.calm .mesh { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Surfaces ----------
   "glass" is kept as the class name, but surfaces are now near-solid white cards with a hairline and soft shadow. */
.glass, .card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
}
.glass-strong { background: var(--glass-strong); }
body.calm .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; font-variation-settings: 'opsz' 96; }
.serif em { font-family: var(--accent); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--rose); font-size: 1.08em; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: .88rem; }
h1.serif { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); }
h2.serif { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); }
h3.serif { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose-deep); color: #fff; box-shadow: 0 6px 16px -8px rgba(184,41,92,.55); }
.btn-primary:hover { background: #a3214f; transform: translateY(-1px); }
.btn-glass { background: #fff; border: 1px solid var(--hair); }
.btn-glass:hover { border-color: rgba(184,41,92,.35); color: var(--rose-deep); }
.btn-ghost { color: var(--rose-deep); padding-inline: .6rem; }
.btn-ghost:hover { background: rgba(224,69,123,.08); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); color: var(--ink-2); }
.chip-rose { background: var(--rose-soft); color: var(--rose-deep); border-color: transparent; }
.chip-mint { background: #d6f1e7; color: var(--mint); border-color: transparent; }
.chip-amber { background: #faecd0; color: var(--amber); border-color: transparent; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Icons ---------- */
.ic { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-deep); flex: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.75); border: 1px solid var(--hair);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(224,69,123,.14); }
textarea.input { resize: vertical; min-height: 110px; }

/* ---------- Progress ---------- */
.bar { height: 8px; border-radius: 99px; background: rgba(42,21,32,.08); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--rose); transition: width .6s var(--ease); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(42,21,32,.28); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .glass { width: min(440px, 100%); padding: 1.8rem; background: var(--glass-strong); transform: translateY(14px) scale(.98); transition: transform .35s var(--ease); }
.modal.open .glass { transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 60; padding: .8rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rose-deep); color: #fff; font-family: var(--accent); font-style: italic; font-size: 1.35rem; }
.brand small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* ---------- Utilities ---------- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.row { display: flex; align-items: center; gap: .75rem; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.stack > * + * { margin-top: .9rem; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stars { color: #f0a500; letter-spacing: 2px; }
