/* The client portal, design B: Waymarks Day (SL35). Cream ground, ink type, deep-gold links and hairlines; heavy
   geometric headings (Gabarito) over a light body (Instrument Sans), both self-hosted; white cards on 1px warm
   hairlines with 12px corners; no fills for emphasis. The drawn ridge sits at the top; the sun's halo is the one
   thing that moves, on its own layer, and it holds still under reduced motion. Phone first: a small frosted tab bar
   at the bottom; from 900px the page is re-composed with the tabs as a column beside the content. */
@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/gabarito-latin.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: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/gabarito-latin-ext.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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #fdf8f0; --ink: #17140f; --muted: #453e28; --gold: #624407; --card: #ffffff;
  --hair: #e7dcc4; --gold-hair: #c9b48a; --alert: #8f3418;
  /* the four Waymarks dots, each with its word beside it; every one measured at 3:1 or better on white and cream */
  --dot-wait: #a86e08; --dot-done: #4f7a3f; --dot-due: #b04a2a; --dot-info: #4f6690;
  --band-h: max(150px, 15vw);
  --glass: rgba(253, 248, 240, 0.86);
  color-scheme: light;
}
html, * { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); font: 400 17px/1.55 'Instrument Sans', system-ui, sans-serif; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--gold-hair) transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }

.testband { position: sticky; top: 0; z-index: 30; margin: 0; padding: 8px 16px; background: #a3221b; color: #fff; text-align: center; font: 600 14px/1.3 'Instrument Sans', system-ui, sans-serif; }

/* the drawn ridge: the stage keeps the plate's own aspect, at least the band's height and the screen's width, sliced
   from the middle and standing on the band's bottom edge, so nothing is ever stretched */
.band { position: relative; height: var(--band-h); overflow: hidden; }
.stage { position: absolute; left: 50%; bottom: 0; width: max(100%, calc(var(--band-h) * 6.6667)); aspect-ratio: 2400 / 360; transform: translateX(-50%); }
.ridge { display: block; width: 100%; height: 100%; max-inline-size: none; }
.halo { position: absolute; left: 59.583%; top: 25%; width: 6%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(247, 207, 122, 0.6) 0%, rgba(247, 207, 122, 0.24) 40%, rgba(247, 207, 122, 0) 70%);
  transform: translate(-50%, -50%); opacity: 0.7; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); } to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .halo { animation: none; } }

.frame { width: min(100%, 680px); margin: 0 auto; padding: 0 20px 48px; }
.in .frame { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.page { padding-top: 6px; }
h1 { font: 800 clamp(34px, 9.4vw, 52px)/1.04 'Gabarito', system-ui, sans-serif; letter-spacing: -0.012em; margin: 18px 0 10px; overflow-wrap: break-word; }
h2 { font: 750 21px/1.2 'Gabarito', system-ui, sans-serif; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 34em; }
.small { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: 34em; }
.quiet, .empty p { color: var(--muted); margin: 0; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 18px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.note { background: var(--card); border: 1px solid var(--gold-hair); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; max-width: 34em; }
.note[role="alert"] { border-color: var(--alert); }

.act { margin: 8px 0 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent;
  color: var(--ink); font: 600 17px/1.1 'Instrument Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: border-color 160ms ease-out, color 160ms ease-out; }
.btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn:active { background: rgba(98, 68, 7, 0.07); }
.btn.quiet { border-color: var(--gold-hair); color: var(--gold); }
.btn[disabled] { opacity: 0.45; cursor: default; }
button.link { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.client { margin-top: 14px; }
.month { margin: 4px 0 22px; }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--dot-info); }
.dot.wait { background: var(--dot-wait); } .dot.done { background: var(--dot-done); } .dot.due { background: var(--dot-due); }
.people, .sessions { list-style: none; margin: 0; padding: 0; }
.people li { padding: 6px 0; }
.who { font-weight: 600; }
.role { color: var(--muted); }
.sessions li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); }
.sessions li:first-child { border-top: 0; padding-top: 2px; }
.sessions .role { display: block; font-size: 15px; }
.sessions form { flex: none; margin: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border: 1px solid var(--gold-hair); border-radius: 999px; color: var(--gold); font-size: 13px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* the tabs: a small frosted bar on a phone (one 12px blur over the ground at about 86%) */
.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; max-width: 520px; margin: 0 auto;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--hair); border-radius: 16px; }
.tabs ul { display: flex; list-style: none; margin: 0; padding: 4px; }
.tabs li { flex: 1 1 0; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; border-radius: 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--gold); font-weight: 650; }
.tabs a:active { background: rgba(98, 68, 7, 0.07); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .in .frame { width: min(100% - 48px, 1000px); display: grid; grid-template-columns: 200px minmax(0, 680px); gap: 56px; padding-bottom: 72px; }
  .tabs { position: sticky; top: 28px; align-self: start; left: auto; right: auto; bottom: auto; max-width: none; margin: 30px 0 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; }
  .tabs ul { flex-direction: column; gap: 4px; padding: 0; }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; border: 1px solid transparent; font-size: 16px; }
  .tabs a[aria-current="page"] { border-color: var(--gold-hair); }
  .tabs a:hover { color: var(--gold); }
  h1 { margin-top: 26px; }
}
