@font-face { font-family: 'Google Sans Flex'; src: url('/google-sans-flex-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Google Sans Flex'; src: url('/google-sans-flex-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Google Sans Flex'; src: url('/google-sans-flex-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Black page, graphite card, light controls. The accent only colours the wordmark, the
   today dot and the booked check: orange by default, green for ?for=workforce. */
:root {
  color-scheme: dark;
  --accent: #ff7a2e;
  --ink: #f4f4f5;
  --on-ink: #08080a;
  --muted: #bdbdc6;
  --faint: #6c6c75;
  --page: #000;
  --paper: #0a0c08;
  --hover: rgba(255, 255, 255, .08);
  --field: rgba(255, 255, 255, .05);
  --ring: rgba(255, 255, 255, .11);
  --danger: #ff6b5e;
  --ease: cubic-bezier(.2, 0, 0, 1);
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--page);
}
/* The website's workplaces lime. */
:root[data-audience="workforce"] { --accent: #cddba0; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; padding: 0; background: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

body {
  margin: 0;
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  font-size: 14px;
  line-height: 1.45;
}

.card {
  inline-size: min(100%, 1040px);
  min-block-size: 0;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 48px;
  padding: 34px 30px 30px 36px;
  border-radius: 16px;
  position: relative;
  background: #17171a;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .13),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(255, 255, 255, .03),
    0 2px 6px rgba(0, 0, 0, .6),
    0 50px 90px -24px rgba(0, 0, 0, .8);
}

.icon { inline-size: 16px; block-size: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }


/* Who and what */
.wordmark { color: var(--accent); font-size: 19px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.host { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--muted); font-weight: 500; }
.avatar { inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--field) url('/host-photo.webp') center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
/* Team page (capyomeet.com): the website's capybara icon in black and white instead of Max's photo; the same icon in the website's workplaces green on the Workforce look. */
[data-host="team"] .avatar { background: #000 url('/capy-team.webp') center / 104% auto no-repeat; }
[data-host="team"][data-audience="workforce"] .avatar { background: rgb(198, 217, 155) url('/capy-team-workplaces.webp') center / 104% auto no-repeat; }
h1 { margin: 8px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.blurb { margin-bottom: 18px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.meta { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; color: var(--muted); }
.meta .icon { margin-top: 2px; }
/* Meeting length switch, on pages that offer more than one length. */
.meta:has(.lengths:not([hidden])) { align-items: center; margin-top: 4px; }
.meta:has(.lengths:not([hidden])) .icon { margin-top: 0; }
.lengths { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--ring); }
.lengths button { block-size: 28px; padding: 0 11px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background-color .15s, color .15s; }
.lengths button:hover { color: var(--ink); }
.lengths button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.chosen { margin-top: 18px; color: var(--ink); }
.chosen b { font-weight: 500; }
.chosen span span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Date and time */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 44px; align-items: start; }
.bar { display: flex; align-items: center; justify-content: space-between; block-size: 32px; margin-bottom: 18px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
h2 span { margin-left: 6px; color: var(--faint); font-weight: 400; }
.nav { display: flex; gap: 2px; margin-right: 4px; }
.nav button { inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 9px; transition: background-color .15s; }
.nav button:hover:not(:disabled) { background: var(--hover); }
.nav button:disabled { color: var(--faint); }

.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; }
.weekdays { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.day { position: relative; inline-size: 52px; block-size: 46px; margin: 3px 0; border-radius: 12px; font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.day:disabled { color: var(--faint); font-weight: 400; }
.day:not(:disabled) { background: rgba(255, 255, 255, .045); }
.day:hover:not(:disabled) { background: rgba(255, 255, 255, .11); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.day[aria-current="date"]::after { content: ''; position: absolute; left: 50%; bottom: 6px; inline-size: 3px; block-size: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--accent); }
.day[aria-pressed="true"]::after { background: var(--on-ink); }

.times { display: flex; flex-direction: column; min-block-size: 0; text-align: center; }
.times .bar { justify-content: center; }
.times .slots { flex: 1; align-content: center; }
.slots { display: grid; gap: 6px; overflow: visible; margin: 0; padding: 2px; scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; font-variant-numeric: tabular-nums; }
.period { padding: 0 2px; text-align: center; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.period:first-child { margin-top: 0; }
.row { display: flex; align-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background-color .15s, box-shadow .15s; }
.row:hover { background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.row.on { justify-content: center; background: var(--ink); color: var(--on-ink); box-shadow: none; }
.slot, .go { block-size: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: center; }
.slot { flex: 1; }
.go { display: flex; align-items: center; gap: 5px; font-size: 13px; animation: slide .2s var(--ease); }
.go .icon { inline-size: 15px; block-size: 15px; transition: translate .15s var(--ease); }
.go:hover .icon { translate: 2px 0; }
.row.on :focus-visible { outline-color: var(--on-ink); outline-offset: -3px; }
@keyframes slide { from { opacity: 0; translate: -6px 0; } }

/* Details and confirmation */
/* The card narrows to fit the form once a time is chosen. */
.card:has(#scheduler[hidden]) { inline-size: min(100%, 760px); min-block-size: 330px; padding: 30px 32px 32px; }
.panel h2 { font-size: 18px; letter-spacing: -.02em; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 6px; transition: color .15s; }
.link:hover { color: var(--ink); }
.back { block-size: 28px; margin: 0 0 12px -4px; }
fieldset { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; border: 0; min-inline-size: 0; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 500; }
input { block-size: 36px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--field); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); font-size: 14px; font-weight: 400; transition: box-shadow .15s, background-color .15s; }
input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
input:focus { outline: 0; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px var(--ink); }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.primary { block-size: 34px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color .15s, scale .15s; }
.primary:hover:not(:disabled) { background: #fff; }
.primary:active:not(:disabled) { scale: .97; }
.primary:disabled { opacity: .55; }
.hint { color: var(--muted); font-size: 13px; }
.notice { color: var(--danger); font-size: 13px; }
.notice:empty, .hint:empty { display: none; }
.times .notice, .times .hint { margin-bottom: 8px; }
form .notice { margin-top: 12px; }

.done { inline-size: 28px; block-size: 28px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--on-ink); }
.done .icon { stroke-width: 2; }
#confirmation .hint { margin-top: 8px; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
#confirmation b { color: var(--ink); font-weight: 500; }
#confirmation:focus { outline: 0; }
#confirmation { align-self: center; }

/* While the card eases between heights, hide what hasn't fitted yet. */
.card.resizing { overflow: hidden; }

/* Steps fade in after the first paint only. */
.is-ready .step { animation: step .22s var(--ease); }
@keyframes step { from { opacity: 0; translate: 0 4px; } }

@media (max-width: 880px) {
  body { place-items: start center; padding: 12px; }
  .card, .card:has(#scheduler[hidden]) { inline-size: min(100%, 440px); min-block-size: 0; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 20px; }
  .host { margin-top: 24px; }
  .picker { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .times { max-block-size: none; }
  .slot, .go { block-size: 40px; }
  .day { inline-size: 42px; block-size: 42px; }
  input { block-size: 42px; font-size: 16px; }
  .primary { block-size: 40px; }
  .lengths button { block-size: 34px; padding: 0 14px; font-size: 14px; }
}
/* Tablets in portrait: centre the card instead of pinning it to the top. "safe" keeps a tall card scrollable. */
@media (min-width: 600px) and (max-width: 880px) {
  body:not(.dashboard-page) { place-items: safe center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
