/* Hallmark · app scope (the Sogno soft-UI language, shared by every screen of the invitation system) · fast · built 2026-11-30 */
/* critique: one surface, raised and pressed by a light and a dark shadow, exactly as on the Sogno contact form; the brand teal is the only colour */

:root {
  --teal: #00897F; --teal-ink: #006B63; --teal-bright: #00D4C8; --night: #0C1B2A; --ink: #111111;
  --muted: #55666f; --hint: #55666f;
  --error: #B42318;
  --display: "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif; --body: "Heebo", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.3, 1.35, .6, 1);
  --radius: 32px; --radius-input: 16px;
  /* soft UI: one surface colour, raised and pressed by a light and a dark shadow */
  --surface: #E4E9EE; --shade: #C3CAD1; --light: #FFFFFF;
  --raised: 12px 12px 26px var(--shade), -12px -12px 26px var(--light);
  --raised-sm: 6px 6px 14px var(--shade), -6px -6px 14px var(--light);
  --pressed: inset 5px 5px 10px var(--shade), inset -5px -5px 10px var(--light);
  --pressed-deep: inset 7px 7px 13px var(--shade), inset -7px -7px 13px var(--light);
  /* the spheres of the room behind the page */
  --orb-1: #ffffff; --orb-2: #eef2f5; --orb-3: #d9dfe5; --orb-4: #c6cdd4;
  --orb-shade: rgba(140, 152, 164, .32); --orb-light: rgba(255, 255, 255, .85);
  --orb-teal-1: #8ff3ec; --orb-teal-4: #00675f; --orb-teal-shade: rgba(0, 104, 96, .28);
  --orb-far-1: rgba(255, 255, 255, .95); --orb-far-2: rgba(218, 224, 230, .9); --orb-far-3: rgba(200, 208, 215, 0);
  --orb-far-t1: rgba(143, 243, 236, .9); --orb-far-t2: rgba(0, 212, 200, .55); --orb-far-t3: rgba(0, 137, 127, 0);
}

.visually-hidden { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- fields: the name of the field sits inside it and gives way to what is typed ---------- */
.sf { position: relative; display: grid; gap: 8px; min-width: 0; }
.sf input[type="text"], .sf input[type="email"], .sf input[type="date"], .sf input[type="time"] {
  width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px; border: 2px solid transparent; border-radius: var(--radius-input);
  background: var(--surface); color: var(--ink); font: inherit; box-shadow: var(--pressed); outline: none;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.sf input::placeholder { color: var(--hint); opacity: 1; }
.sf input:hover { box-shadow: var(--pressed-deep); }
.sf input:focus, .sf input:focus-visible { outline: 2px solid var(--night); outline-offset: -2px; box-shadow: var(--pressed-deep); }
.sf input[aria-invalid="true"], .sf.is-bad input { border-color: var(--error); }
.sf input:disabled { color: var(--muted); cursor: not-allowed; box-shadow: none; }
/* a date or an hour always shows its own digits, so the name stays inside the field beside them */
.sf--tag { display: flex; align-items: center; gap: 8px; min-height: 54px; padding-inline: 16px 4px; border: 2px solid transparent; border-radius: var(--radius-input); background: var(--surface); box-shadow: var(--pressed); transition: border-color .2s var(--ease), box-shadow .25s var(--ease); }
.sf--tag:focus-within { outline: 2px solid var(--night); outline-offset: -2px; box-shadow: var(--pressed-deep); }
.sf--tag.is-bad { border-color: var(--error); }
.sf--tag label { flex: none; color: var(--hint); }
.sf--tag input[type="date"], .sf--tag input[type="time"] { flex: 1; min-height: 48px; padding: 0 12px; border: 0; box-shadow: none; background: transparent; text-align: end; }
.sf--tag input:hover, .sf--tag input:focus, .sf--tag input:focus-visible { box-shadow: none; outline: none; }
.err { margin: 0; color: var(--error); font-size: .95rem; }

/* ---------- buttons: raised from the surface, and they sink into it when pressed ---------- */
.sb {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 32px;
  border: 0; border-radius: var(--radius-input); background: var(--surface); color: var(--ink); font: 500 1.0625rem/1 var(--body);
  cursor: pointer; text-decoration: none; box-shadow: var(--raised-sm); -webkit-tap-highlight-color: transparent;
  transition: box-shadow .18s var(--ease), color .18s var(--ease);
}
.sb:hover { color: var(--teal-ink); }
.sb:active, .sb[aria-busy="true"], .sb[aria-pressed="true"], .sb[aria-checked="true"] { box-shadow: var(--pressed); }
/* the chosen option is also set in the teal and underlined, so it reads at a glance */
.sb[aria-pressed="true"], .sb[aria-checked="true"] { color: var(--teal-ink); text-decoration: underline 2px; text-underline-offset: 6px; }
.sb:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sb:disabled { color: var(--muted); cursor: progress; }
.sb svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sb--small { min-height: 46px; padding: 0 20px; font-size: 1rem; border-radius: 14px; }
.sb--main { color: var(--teal-ink); }
/* while it works, the label gives way to the logo's ring of dots */
.sb .sogno-loader { position: absolute; width: 28px; height: 28px; color: var(--teal); opacity: 0; stroke: none; fill: currentColor; }
.sb[aria-busy="true"] { pointer-events: none; }
.sb[aria-busy="true"] > :not(.sogno-loader) { opacity: 0; }
.sb[aria-busy="true"] .sogno-loader { opacity: 1; }

/* ---------- messages ---------- */
.fail { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px; border-radius: var(--radius-input); background: var(--surface); box-shadow: var(--pressed); color: var(--error); }
.done-mark { width: 112px; height: 112px; overflow: visible; }
.done-mark .dots circle { fill: var(--teal); transform-box: fill-box; transform-origin: center; }
.done-mark .check { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-on > .done-mark .dots circle, .done-mark.is-on .dots circle { animation: gather .7s var(--spring) both; }
.is-on > .done-mark .check, .done-mark.is-on .check { animation: draw .5s .55s var(--ease) forwards; }
@keyframes gather { from { transform: scale(.2); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- the room behind the page: soft spheres at three distances, floating slowly ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orbs__layer { position: absolute; inset: -6%; transform: translate3d(calc(var(--px, 0) * var(--d) * -1px), calc(var(--py, 0) * var(--d) * -1px), 0); will-change: transform; }
.orbs__layer--far { --d: 10; opacity: .7; }
.orbs__layer--mid { --d: 26; }
.orbs__layer--near { --d: 48; }
.orb { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle at 32% 28%, var(--orb-1) 0%, var(--orb-2) 30%, var(--orb-3) 70%, var(--orb-4) 100%); box-shadow: 16px 20px 36px var(--orb-shade), -10px -10px 28px var(--orb-light); animation: drift-a 24s ease-in-out infinite alternate; will-change: transform; }
.orb--teal { background: radial-gradient(circle at 32% 28%, var(--orb-teal-1) 0%, var(--teal-bright) 32%, var(--teal) 80%, var(--orb-teal-4) 100%); box-shadow: 14px 18px 32px var(--orb-teal-shade), -8px -8px 24px var(--orb-light); }
.orbs__layer--far .orb { box-shadow: none; background: radial-gradient(circle at 35% 32%, var(--orb-far-1) 0%, var(--orb-far-2) 45%, var(--orb-far-3) 72%); }
.orbs__layer--far .orb--teal { background: radial-gradient(circle at 35% 32%, var(--orb-far-t1) 0%, var(--orb-far-t2) 40%, var(--orb-far-t3) 72%); }
@keyframes drift-a { to { transform: translate3d(32px, 28px, 0); } }
@keyframes drift-b { to { transform: translate3d(-28px, -34px, 0); } }
@keyframes drift-c { to { transform: translate3d(24px, -26px, 0); } }
.orbs__layer--far .orb:nth-child(1) { width: 260px; height: 260px; top: 6%; left: 46%; animation-duration: 31s; }
.orbs__layer--far .orb:nth-child(2) { width: 180px; height: 180px; top: 70%; left: 8%; animation-name: drift-b; animation-duration: 27s; }
.orbs__layer--far .orb:nth-child(3) { width: 140px; height: 140px; top: 58%; left: 62%; animation-name: drift-c; animation-duration: 35s; }
.orbs__layer--mid .orb:nth-child(1) { width: 120px; height: 120px; top: 12%; left: 4%; animation-duration: 23s; }
.orbs__layer--mid .orb:nth-child(2) { width: 54px; height: 54px; top: 30%; left: 44%; animation-name: drift-b; animation-duration: 19s; }
.orbs__layer--mid .orb:nth-child(3) { width: 90px; height: 90px; top: 82%; left: 52%; animation-name: drift-c; animation-duration: 26s; }
.orbs__layer--near .orb:nth-child(1) { width: 150px; height: 150px; top: 76%; left: 34%; animation-duration: 21s; }
.orbs__layer--near .orb:nth-child(2) { width: 70px; height: 70px; top: 18%; left: 88%; animation-name: drift-b; animation-duration: 17s; }
.orbs__layer--near .orb:nth-child(3) { width: 36px; height: 36px; top: 9%; left: 30%; animation-name: drift-c; animation-duration: 15s; }
@media (max-width: 40rem) {
  .orbs__layer--far .orb:nth-child(1) { width: 200px; height: 200px; left: 30%; }
  .orbs__layer--near .orb:nth-child(1) { width: 100px; height: 100px; }
  .orbs__layer--mid .orb:nth-child(2), .orbs__layer--near .orb:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .sf input, .sf--tag, .sb { transition: none; }
  .done-mark .dots circle { animation: none !important; }
  .done-mark .check { animation: none !important; stroke-dashoffset: 0; }
}
