/* shinecue.com
 *
 * Amber means "on". --amber is used only where something is lit (the lamp and
 * the hero's lit state), never for text, links, buttons or backgrounds; amber on
 * Paper is 1.9:1. Palette and type come from the brand kit
 * (shinecue-brand/kit/ShineCue-logo-guidelines.md).
 */

@font-face {
  font-family: "ShineCue Sans";
  src: url("/fonts/shinecue-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ShineCue Sans";
  src: url("/fonts/shinecue-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --paper: #fbf8f3;
  --cream: #f3ece2;
  --ink: #24211e; /* Lamp Black: 15.1:1 on Paper */
  --stage: #1e1b18; /* Charcoal */
  --amber: #ffa51f; /* lit things only */

  /* Derived, for secondary text */
  --ink-soft: #5f5850; /* 6.6:1 on Paper, 6.0:1 on Cream */
  --cream-soft: #b8afa3; /* 7.9:1 on Charcoal */

  /* The hero's stage: a wall (the app icon tile's top colour) over a Charcoal floor */
  --stage-wall: #2a2622;
  --stage-screen: #3d3731; /* the Mac's screen */
  /* The Mac's camera light, green as on a real Mac: the one hue besides amber (Matt, 2026-12-05),
     and only on the hero's camera dot while the call is on. */
  --camera-green: #30d158;

  /* tests/test_contrast.py checks the text and background pairs the page uses, listed there: when a rule
     pairs two of these colours in a new way, add that pair to the test. */

  --font: "ShineCue Sans", system-ui, -apple-system, sans-serif;

  /* Type scale (16 px base): 14, 16, 18, 21, 24, 36, 48, 60 */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.3125rem;
  --step-3: 1.5rem;
  --step-4: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);
  --step-5: clamp(2.25rem, 1.4rem + 3.4vw, 3rem);
  --step-6: clamp(2.5rem, 1.3rem + 5vw, 3.75rem);

  --measure: 34rem; /* about 65 characters of body text */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --page: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-1);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--step-6);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Skip link: visible only when focused. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.875rem;
  text-decoration: none;
  z-index: 10;
}

.skip:focus-visible {
  transform: none;
  outline-color: var(--ink);
}

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Page frame */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

/* Header: the horizontal logo with at least one lamp diameter of clear space. */
.site-header {
  display: flex;
  flex-wrap: wrap; /* on the narrowest screens the nav drops below the logo rather than squeezing it */
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.site-logo img {
  width: 13.5rem; /* 216 px: well above the 96 px minimum */
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: var(--step-0);
}

.site-nav a {
  text-decoration: none;
  padding-block: 0.25rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  display: block;
}

/* A short page: the 404 page and the holding page. */
.notice {
  padding-block: clamp(3rem, 2rem + 8vw, 8rem);
}

.notice h1 {
  max-width: 14ch;
}

.lede {
  font-size: var(--step-2);
  color: var(--ink-soft);
}

/* Quoted interface labels: a button, a menu or a settings path, in the text face's semibold. */
kbd {
  font: inherit;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * The home page's hero: the headline on Paper, then the stage, a room on a
 * call. A Mac on a desk, a desk lamp beside it, a window with blinds behind
 * it, and the kit's lamp above the door. html[data-call] holds the state:
 * "on" in the markup (the finished, lit scene without JS), and js/cue.js
 * switches it "off" before the first paint and toggles it from the button.
 * The scene is anchored to the page's left edge, so the eye runs headline,
 * button, Mac, door.
 * ------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(1rem, 0.5rem + 3vw, 3.5rem) 0;
}

.hero h1 {
  font-size: var(--step-6);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 17ch;
  margin-bottom: 0.35em;
}

.hero .lede {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}

.stage {
  height: clamp(15rem, 5rem + 30vw, 30rem);
  overflow: hidden;
  background: var(--stage-wall);
  color: var(--cream);
}

.stage-set {
  position: relative;
  height: 100%;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible; /* the wall, floor and glow run past the set to the stage's edges */
}

.scene .wall {
  fill: var(--stage-wall);
}

.scene .floor {
  fill: var(--stage);
}

.scene .rule {
  fill: none;
  stroke: var(--cream-soft);
  stroke-opacity: 0.22;
  stroke-width: 2;
}

.scene .desk {
  fill: var(--ink-soft);
}

.scene .metal {
  fill: var(--cream-soft);
}

.scene .bezel {
  fill: var(--ink);
}

.scene .screen {
  fill: var(--stage-screen);
}

/* The window behind the desk: daylight while the blinds are up. */
.scene .glass {
  fill: var(--cream);
  fill-opacity: 0.45;
}

.scene .mullion {
  fill: none;
  stroke: var(--stage-wall);
  stroke-width: 4;
}

.scene .slat {
  fill: var(--ink-soft);
}

.scene .headrail,
.scene .sill {
  fill: var(--cream-soft);
}

.scene .window-frame {
  fill: none;
  stroke: var(--cream-soft);
  stroke-width: 5;
}

.scene .blinds {
  transform: scaleY(0.1); /* raised: the slats stacked under the headrail */
  transform-box: fill-box;
  transform-origin: 50% 0;
}

/* Light: screen-blended shapes, faded at the edges by the #fade mask. A light is black (no light)
 * until it's lit, and changes through fill: Chrome doesn't reliably repaint a gradient while its
 * stop-color transitions. Daylight glare isn't a lamp, so it's Cream, never amber. */
.scene .glow {
  mix-blend-mode: screen;
  fill: black;
}

.scene .glare {
  fill: var(--cream);
  opacity: 0.5;
}

/* The call window: the other person on the left, you on the right, dim until the desk lamp lights. */
.scene .call {
  opacity: 0;
  transform: scale(0.92);
  transform-box: fill-box;
  transform-origin: center;
}

.scene .call-window {
  fill: var(--stage-wall);
}

.scene .tile {
  fill: var(--ink-soft);
}

.scene .person {
  fill: var(--cream-soft);
}

.scene .you-tile {
  fill: var(--ink);
}

.scene .you {
  fill: var(--stage-screen);
}

/* The camera: a lens on the bezel, and its green light while it's on. */
.scene .camera {
  fill: var(--stage-screen);
}

.scene .camera-halo {
  fill: var(--stage-screen);
  opacity: 0;
}

/* At phone widths the scene is drawn at under half size: keep the camera light a readable dot. */
@media (max-width: 40rem) {
  .scene .camera,
  .scene .camera-halo {
    transform: scale(1.6);
    transform-box: fill-box;
    transform-origin: center;
  }
}

.scene .lamp-arm {
  fill: none;
  stroke: var(--cream-soft);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene .desk-lamp-face {
  fill: var(--ink);
}

.scene .door {
  fill: var(--ink);
}

.scene .door-line {
  fill: none;
  stroke: var(--cream-soft);
  stroke-width: 6;
  stroke-linejoin: round;
}

.scene .door-panel {
  fill: none;
  stroke: var(--cream-soft);
  stroke-opacity: 0.35;
  stroke-width: 3;
}

.scene .knob {
  fill: var(--cream-soft);
}

/* The kit's lamp (symbol and unlit symbol): a hood, the unlit ring, and the disc that fills it when lit. */
.lamp {
  color: var(--ink);
}

.scene .lamp {
  color: var(--cream);
}

.lamp-hood,
.lamp-ring {
  fill: currentColor;
}

.lamp-disc {
  fill: transparent;
}

/* The sequence. A transition runs with the timing of the state it's going to, so the [data-call="on"]
 * rules time "See it in action" (2.4 s: the call window opens, the camera light comes on 0.45 s
 * later, then the automation: the desk lamp, the blinds, the door lamp) and the plain rules time
 * "End the call", the same steps in reverse (1.65 s). Reduced motion drops every transition (at the
 * end of this file), so the end states apply at once. */
.lamp-disc,
.scene .door-glow {
  transition: fill 0.4s ease;
}

.scene .blinds {
  transition: transform 0.8s ease-in-out 0.2s;
}

.scene .glare {
  transition: opacity 0.8s ease-in-out 0.2s; /* with the blinds */
}

.scene .desk-glow,
.scene .desk-lamp-face,
.scene .you-tile,
.scene .you {
  transition: fill 0.4s ease 0.6s;
}

.scene .camera,
.scene .camera-halo {
  transition:
    fill 0.15s ease 1.1s,
    opacity 0.15s ease 1.1s;
}

.scene .call {
  transition:
    opacity 0.35s ease-in 1.3s,
    transform 0.35s ease-in 1.3s;
}

[data-call="on"] .scene .call {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s ease-out,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-call="on"] .scene .camera {
  fill: var(--camera-green);
  transition: fill 0.15s ease 0.45s;
}

[data-call="on"] .scene .camera-halo {
  fill: var(--camera-green);
  opacity: 0.35;
  transition:
    fill 0.15s ease 0.45s,
    opacity 0.15s ease 0.45s;
}

[data-call="on"] .scene .desk-lamp-face,
[data-call="on"] .scene .desk-glow {
  fill: var(--amber);
  transition: fill 0.5s ease 0.9s;
}

[data-call="on"] .scene .you-tile {
  fill: var(--ink-soft);
  transition: fill 0.6s ease 1s;
}

[data-call="on"] .scene .you {
  fill: var(--cream);
  transition: fill 0.6s ease 1s;
}

[data-call="on"] .scene .blinds {
  transform: none;
  transition: transform 1s ease-in-out 1.15s;
}

[data-call="on"] .scene .glare {
  opacity: 0;
  transition: opacity 1s ease-in-out 1.15s; /* with the blinds */
}

[data-call="on"] .lamp-disc,
[data-call="on"] .scene .door-glow {
  fill: var(--amber);
  transition: fill 0.7s ease 1.7s;
}

/* "See it in action" / "End the call": on the stage's wall, above the left of the desk. */
.cue {
  position: absolute;
  top: clamp(1rem, 0.25rem + 2.5vw, 2.5rem);
  left: 0;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 2px solid var(--cream);
  border-radius: 0.5rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cue:hover {
  background: var(--paper);
  border-color: var(--paper);
}

[data-call="on"] .cue {
  background: var(--stage-wall);
  border-color: var(--cream);
  color: var(--cream);
}

[data-call="on"] .cue:hover {
  background: var(--stage);
}

.stage :focus-visible {
  outline-color: var(--cream);
}

.no-js .cue {
  display: none;
}

/* ---------------------------------------------------------------------------
 * The rest of the home page: quiet. Hanging heads: each heading in a left
 * rail, its content in a reading column, first baselines aligned.
 * ------------------------------------------------------------------------- */

.part {
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem) 0;
}

.part:last-child {
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.part-grid {
  display: grid;
  gap: 0.25rem 2rem;
}

.part-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 54rem) {
  .part-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: first baseline;
  }

  .part-grid > h2 {
    max-width: 13ch;
    margin: 0;
  }
}

/* The three steps: a real sequence, so the only numbered list on the site. */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-weight: 600;
}

/* The three sensors, each marked with the kit's lamp. They light with the hero's call. */
.sensors {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.sensor + .sensor {
  margin-top: 1.5rem;
}

.sensor dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
}

.sensor .lamp {
  flex: none;
  width: 1.75rem; /* 28 px: the kit's small cut */
  height: 1.75rem;
  margin-top: -0.2rem; /* optical: the hood sits higher than the disc */
}

.sensor dd {
  margin: 0.125rem 0 0 2.375rem;
}

.sensor dd p {
  margin: 0;
}

.sensor .example {
  color: var(--ink-soft);
}

/* Works with: short answers, one row each. */
.answers {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.answers div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 0.375rem;
}

.answers dt {
  font-weight: 600;
}

.answers dd {
  margin: 0;
}

.list {
  padding-left: 1.25rem;
}

.list li + li {
  margin-top: 0.25rem;
}

/* Downloads: shaped as the buttons they'll become. Until the App Store listing and the DMG exist,
 * each is a placeholder (data-placeholder, not a link) with a quiet "Coming soon" note. */
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.download {
  display: grid;
  margin: 0;
  padding: 0.625rem 1.25rem 0.6875rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.3;
}

.download-direct {
  background: transparent;
  color: var(--ink);
}

.download-name {
  font-size: var(--step-0);
  font-weight: 600;
}

.download-note {
  color: var(--cream-soft);
  font-size: var(--step--1);
}

.download-direct .download-note {
  color: var(--ink-soft);
}

.note {
  color: var(--ink-soft);
  font-size: var(--step-0);
}

/* ---------------------------------------------------------------------------
 * The support page: the questions in the left rail (sticky on wide screens),
 * the answers in the reading column. Each heading has an id to link to.
 * ------------------------------------------------------------------------- */

.doc-intro {
  padding-block: clamp(1rem, 0.5rem + 3vw, 3.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

.doc-intro h1 {
  font-size: var(--step-5);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.doc-intro .lede {
  max-width: 38rem;
  margin: 0;
}

.doc-intro .doc-date {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.doc {
  display: grid;
  gap: 2.5rem 2rem;
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.4;
}

.toc li + li {
  margin-top: 0.625rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.qa + .qa {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.qa h2 {
  font-size: var(--step-3);
  line-height: 1.25;
}

.qa h3 {
  font-size: var(--step-1);
  line-height: 1.4;
  margin: 1.75rem 0 0.375rem;
}

.qa h2,
.qa h3 {
  max-width: var(--measure);
  scroll-margin-top: 1.5rem;
}

/* The privacy page quotes the app's crash-report setting as the Settings tab shows it: the switch's label, then
 * the line under it in the secondary colour. */
.setting {
  max-width: var(--measure);
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 0.5rem;
}

.setting p {
  margin: 0;
  color: var(--ink-soft);
}

.setting .setting-label {
  margin-bottom: 0.375rem;
  color: var(--ink);
  font-weight: 600;
}

.qa > :last-child {
  margin-bottom: 0;
}

@media (min-width: 54rem) {
  .doc {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    padding-right: 1rem;
  }
}

@media (max-width: 30rem) {
  .answers div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  body {
    font-size: var(--step-0);
  }

  .lede {
    font-size: var(--step-1);
  }

  .site-logo img {
    width: 10.5rem; /* 168 px */
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
