/* AIRIS next generation: shared system for the website and the portal.
   Two rules hold everything together:
   1. Besley (the "voice") is only ever AIRIS speaking. Instrument Sans is facts and controls.
   2. Words carry state. Yellow = I took this down. Orange = ring first.
      Solid bar = private, not shown. Dashed outline = still in training, not live. */
/* Fonts are served from here, so visitors' addresses never go to a font service. */
@font-face { font-family: "Besley"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/besley-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; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/besley-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(/assets/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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/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; }

:root {
  --ink: #14161b;
  --ink-2: #474c57;
  --ink-3: #6f7480;
  --paper: #ffffff;
  --wash: #eff1ee;
  --line: #d6d9d3;
  --mark: #ffd500;
  --mark-deep: #e6bf00;
  --first: #ff5b1f;
  --ok: #0a7a57;
  --navy: #0f1f3f;
  --navy-2: #182c55;
  --navy-line: #304670;
  --navy-text: #c8d3e8;
  --voice: "Besley", Georgia, "Times New Roman", serif;
  --ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 56px);
  /* Refined scale: strong, but proportionate from a small phone to a large desktop. */
  --fs-hero: clamp(31px, min(4.35vw, 8.2vh), 66px);
  --fs-1: clamp(25px, 3vw, 44px);
  --fs-2: clamp(21px, 2vw, 29px);
  --fs-3: clamp(18px, 1.45vw, 21px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--mark); }
svg.i { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The voice ---------------------------------------------------------- */
.say { font-family: var(--voice); font-weight: 700; letter-spacing: -.016em; line-height: 1.1; text-wrap: balance; }
.say-xl { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.024em; line-height: 1.06; }
.say-l { font-size: var(--fs-1); line-height: 1.1; }
.say-m { font-size: var(--fs-2); line-height: 1.16; }
.say-s { font-size: var(--fs-3); line-height: 1.28; font-weight: 600; letter-spacing: -.008em; }

/* Filled-in words ----------------------------------------------------- */
.t {
  background: var(--mark);
  color: var(--ink);
  padding: 0 .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: inherit;
  border-radius: 2px;
}
.t-first { background: var(--first); }
.t-x { background: var(--ink); color: transparent; user-select: none; border-radius: 2px; padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-navy .t-x { background: var(--navy-text); }
.t-soon { background: transparent; outline: 2px dashed currentColor; outline-offset: -2px; padding: .02em .28em .04em; border-radius: 3px; }
button.t, .t[role="button"] { cursor: pointer; }

/* Status: solid means real, dashed means not yet ---------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 12.5px/1 var(--ui); white-space: nowrap;
  padding: 6px 9px; border-radius: 4px;
}
.tag-live { background: var(--ink); color: #fff; }
.tag-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
.tag-soon { outline: 2px dashed currentColor; outline-offset: -2px; }
.tag-first { background: var(--first); color: var(--ink); }
.tag-today { background: var(--mark); color: var(--ink); }
.tag-week { background: var(--wash); color: var(--ink); }
.tag-done { background: transparent; color: var(--ok); padding-left: 0; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 18px;
  font: 600 16px/1.15 var(--ui); text-decoration: none; text-align: center;
  border-radius: 6px; border: 2px solid transparent;
  transition: transform .14s var(--ease), background .14s, color .14s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2f38; }
.btn-mark { background: var(--mark); color: var(--ink); }
.btn-mark:hover { background: var(--mark-deep); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: rgba(20, 22, 27, .07); }
.btn-big { min-height: 54px; font-size: 17px; padding: 12px 22px; }
.btn-wide { width: 100%; }
.btn-quiet { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; min-height: 44px; font-weight: 500; }

/* Logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; font: 800 22px/1 var(--voice); letter-spacing: -.02em; }
.logo-mark { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--mark); border-radius: 6px; font: 800 19px/1 var(--voice); padding-bottom: 3px; }
.logo-mark.alt { background: var(--mark); color: var(--ink); }

/* The handover: the one object on the site and in the portal ---------- */
.hand {
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 14px; display: grid; gap: 10px;
}
.hand-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hand-text { font: 600 18px/1.5 var(--voice); letter-spacing: -.006em; }
.hand-note { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.hand-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14.5px; }
.hand-facts dt { color: var(--ink-3); }
.hand-facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Phone frame ---------------------------------------------------------- */
.phone {
  width: 320px; max-width: 100%; aspect-ratio: 320 / 650;
  background: var(--ink); border-radius: 44px; padding: 10px;
  position: relative;
}
.phone-screen { background: #fff; border-radius: 35px; height: 100%; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone-screen.dark { background: var(--navy); color: #fff; }


/* Private message card: the personal counterpart of the handover */
.msgcard { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.msgcard .hand-top { color: var(--navy-text); }
.msgcard .hand-text { color: #fff; }
.msgcard .hand-note { color: var(--navy-text); }
.msgcard .t { color: var(--ink); }
.tag-wait { background: var(--first); color: var(--ink); }
.tag-msg { background: var(--navy-2); color: #fff; }

/* Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px;
  font-weight: 500; font-size: 15px; display: flex; gap: 14px; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  z-index: 90; width: max-content; max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--mark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }

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