@font-face {
  font-family: "DM Sans";
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/caveat.woff2") format("woff2");
}

/* The copper ramp is sampled from the folded F in logo-dark-background.svg. */
:root {
  --fc-brand: #ffa85e;
  --fc-copper: #db642d;
  --fc-copper-deep: #a43b19;
  --fc-apricot: #ffc079;
  --fc-plum: #351f32;
  --fc-graphite: #242622;
  --fc-paper: #f7f6f0;
  --fc-olive: #424c37;
  --fc-studio-wall: #e6e8de;
  --fc-studio-muted: #545b50;
  --fc-canary-paper: #f5df2d;
  --fc-time-file: 850ms;
  --fc-white: #ffffff;
  --fc-ink: #201e23;
  --fc-muted: #56515b;
  --fc-rule: #d7d2d8;
  --fc-input-border: #817984;
  --fc-frame: #b8b0a7;
  --fc-marker: #786d71;
  --fc-drop: #f8ebce;
  --fc-backdrop: rgb(45 28 44 / 48%);
  --fc-project-amber: #8b5507;
  --fc-project-orange: #9d4115;
  --fc-project-purple: #6b448b;
  --fc-project-teal: #11675c;
  --fc-project-blue: #32598a;
  --fc-project-green: #3c682d;
  --fc-project-pink: #944068;
  --fc-project-gray: #5b5962;
  /* The working studio uses the masthead ink, paper stock and three painted work surfaces. */
  --fc-desk-ink: var(--fc-graphite);
  --fc-desk-paper: var(--fc-paper);
  --fc-desk-olive: var(--fc-olive);
  --fc-desk-sun: #f4b367;
  --fc-desk-violet: #e6e2f5;
  --fc-desk-celadon: #dbe9d8;
  --fc-slip-canary: #f3df55;
  --fc-slip-apricot: #ffbd87;
  --fc-slip-sky: #acd4ee;
  --fc-slip-mint: #b3dcbb;
  --fc-slip-rose: #efb7c7;
  --fc-slip-lilac: #d4beeb;
  --fc-slip-ivory: #f5f0da;
  --fc-font-hand: "Caveat", cursive;
  --fc-soft: #f3f1f4;
  --fc-orange-note: #f6af6e;
  --fc-sage-note: #c4d4ad;
  --fc-night-text: #faf8fc;
  --fc-night-muted: #e4d8e4;
  --fc-night-rule: #775c6d;
  --fc-press: #ef964e;
  --fc-error: #9e2634;
  --fc-error-tint: #fce8e7;
  --fc-success: #365737;
  --fc-success-tint: #e3eedb;
  --fc-shadow-ink: rgb(44 23 25 / 18%);
  --fc-surface: var(--fc-white);
  --fc-surface-raised: var(--fc-white);
  --fc-text: var(--fc-ink);
  --fc-text-muted: var(--fc-muted);
  --fc-action: var(--fc-brand);
  --fc-action-hover: var(--fc-apricot);
  --fc-on-action: var(--fc-ink);
  --fc-focus: var(--fc-plum);
  --fc-selection: var(--fc-plum);
  --fc-on-selection: var(--fc-white);
  --fc-font-display: "Instrument Serif", Georgia, serif;
  --fc-font-body: "DM Sans", system-ui, sans-serif;
  --fc-type-hero: clamp(4.25rem, 8.4vw, 8.5rem);
  --fc-type-title: clamp(3rem, 5.2vw, 5.7rem);
  --fc-type-subtitle: clamp(2rem, 3.5vw, 3.25rem);
  --fc-type-lead: clamp(1.0625rem, 1.35vw, 1.3rem);
  --fc-type-body: 1rem;
  --fc-type-label: .875rem;
  --fc-space-1: .25rem;
  --fc-space-2: .5rem;
  --fc-space-3: .75rem;
  --fc-space-4: 1rem;
  --fc-space-5: 1.5rem;
  --fc-space-6: 2rem;
  --fc-space-7: 3rem;
  --fc-space-8: 4rem;
  --fc-gutter: clamp(1.25rem, 5.6vw, 6.5rem);
  --fc-page-inset: clamp(1rem, 4vw, 10rem);
  --fc-board-inset: clamp(.15rem, 1.7vw, 4.25rem);
  --fc-type-intro: clamp(2.05rem, 3.25vw, 4.25rem);
  --fc-section-space: clamp(3.75rem, 7vw, 7rem);
  --fc-radius-control: .5rem;
  --fc-radius-card: .25rem;
  --fc-radius-pill: 999px;
  --fc-target: 2.75rem;
  --fc-ring: 3px;
  --fc-ring-offset: 3px;
  --fc-time-press: 140ms;
  --fc-time-move: 360ms;
  --fc-ease: cubic-bezier(.2, .75, .2, 1);
  --fc-shadow-card: 0 .45rem 1rem var(--fc-shadow-ink);
}

::selection { color: var(--fc-on-selection); background: var(--fc-selection); }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
html:has(.landing) { background: var(--fc-graphite); }
body { margin: 0; color: var(--fc-graphite); background: var(--fc-paper); font: 400 var(--fc-type-body)/1.55 var(--fc-font-body); }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, .receipt:focus-visible { outline: var(--fc-ring) solid var(--fc-focus); outline-offset: var(--fc-ring-offset); }
[hidden] { display: none !important; }
.frame { padding-inline: max(clamp(1.15rem, 5vw, 8rem), calc((100% - 122rem) / 2)); }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 5; transform: translateY(-170%); background: var(--fc-paper); color: var(--fc-graphite); padding: var(--fc-space-3); }
.skip:focus { transform: none; }
.masthead, .footer, .masthead nav, .footer nav, .identity, .header-signin { display: flex; align-items: center; }
.masthead, .footer { justify-content: space-between; gap: var(--fc-space-4); }
.masthead { min-height: clamp(3.9rem, 5.1vw, 5.6rem); background: var(--fc-graphite); color: var(--fc-paper); }
.identity { min-height: var(--fc-target); }
.identity img { width: clamp(6.25rem, 7.4vw, 9.5rem); height: auto; }
.masthead nav, .footer nav { gap: clamp(1rem, 2.9vw, 3.25rem); }
.masthead a, .footer a { min-height: var(--fc-target); display: inline-flex; align-items: center; text-decoration: none; font-weight: 550; font-size: var(--fc-type-label); }
.masthead a:hover, .footer a:hover { text-decoration: underline; }
.header-signin { gap: .6em; }
.masthead :focus-visible, .footer :focus-visible { outline-color: var(--fc-brand); }
.landing { color: var(--fc-graphite); background: var(--fc-paper); }
.intro { padding-block: clamp(1.35rem, 2.3vw, 3rem) clamp(1.35rem, 2.1vw, 3rem); }
.intro h1, .about-section h2, .notice-copy h1 { font-family: var(--fc-font-display); font-weight: 400; letter-spacing: -.029em; line-height: .99; text-wrap: balance; }
.intro h1 { font-size: clamp(2.65rem, 5.25vw, 6.9rem); }
.intro > p { max-width: 57ch; margin-top: clamp(.6rem, 1.15vw, 1.15rem); font-size: clamp(1rem, 1.18vw, 1.38rem); line-height: 1.45; }
.board-stage { background: var(--fc-studio-wall); color: var(--fc-graphite); padding-block: clamp(1.2rem, 2.15vw, 2.75rem) clamp(1.15rem, 2.2vw, 2.7rem); }
.example-caption { display: flex; align-items: center; justify-content: flex-start; gap: clamp(1.1rem, 3.2vw, 3.5rem); }
.source-copy { color: var(--fc-graphite); font: 400 clamp(1.6rem, 2.3vw, 2.75rem)/1.15 var(--fc-font-display); letter-spacing: -.015em; }
.board-context { position: absolute; right: 6%; bottom: 11.3%; display: block; font: 550 var(--fc-type-label)/1.4 var(--fc-font-body); }
.example-message { width: min(100%, 30rem); }
.demo-controls { flex: none; }
.demo-controls button { display: flex; align-items: center; justify-content: center; gap: .7em; min-height: var(--fc-target); width: 10rem; padding: .7rem 1.1rem; border: 0; border-radius: .25rem; cursor: pointer; background: var(--fc-olive); color: var(--fc-paper); font: 600 var(--fc-type-label)/1.3 var(--fc-font-body); }
.demo-controls button:hover { background: var(--fc-graphite); }
.demo-controls button:focus-visible { outline-color: var(--fc-graphite); }
.play-symbol { width: 0; height: 0; border-block: .32em solid transparent; border-inline-start: .5em solid currentColor; }
.whiteboard {
  isolation: isolate; position: relative;
  margin: .4rem max(var(--fc-board-inset), calc((100% - 136rem) / 2)) 0;
  padding: clamp(1.9rem, 3.2vw, 6rem) 5.7% clamp(3rem, 5.1vw, 9rem);
  color: var(--fc-graphite);
  background: var(--fc-studio-wall) url("/brand/whiteboard.webp") center / 100% 100% no-repeat;
  background-blend-mode: multiply;
}
.whiteboard::before, .whiteboard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.whiteboard::before { background: var(--fc-surface) url("/brand/whiteboard.webp") center / 100% 100% no-repeat; clip-path: inset(4.55% 2.5% 8.2% round .45rem); }
.whiteboard::after { background: url("/brand/whiteboard.webp") center / 100% 100% no-repeat; clip-path: inset(91.2% 6.2% 5.7% 68.9% round .12rem); }
.board-bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--fc-space-3); }
.board-bar h2, .lane h3, .sticky { font-family: var(--fc-font-hand); font-weight: 600; }
.board-bar h2 { font-size: clamp(2rem, 3.7vw, 5.3rem); line-height: 1; }
.board-context { color: var(--fc-studio-muted); }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(.5rem, 1vw, 1.3rem); }
.lane { min-width: 0; container-type: inline-size; border-top: 2px solid var(--fc-marker); padding-block: clamp(.35rem, .7vw, .9rem); }
.lane + .lane { border-inline-start: 2px solid var(--fc-marker); }
.lane h3 { color: var(--fc-graphite); text-align: center; font-size: clamp(1.14rem, 2.25vw, 3.35rem); line-height: 1.15; }
.note-grid {
  --sheet: clamp(5.35rem, min(45cqi, 20svh), 19rem);
  display: grid; grid-template-columns: repeat(2, var(--sheet)); grid-template-rows: var(--sheet);
  justify-content: center; gap: 2cqi; align-content: start;
  margin-block: clamp(.6rem, 1.2vw, 1.65rem) clamp(1.2rem, 2.3vw, 2.75rem);
}
.lane:not([data-lane="Done"]) .note-grid { grid-template-columns: var(--sheet); }
.sticky {
  display: grid; place-items: center; position: relative; isolation: isolate; container-type: inline-size;
  width: 100%; height: 100%; color: var(--fc-graphite); font-weight: 580; text-align: left;
}
.sticky > span { width: 72%; margin-bottom: 5%; font-size: clamp(.95rem, 17cqi, 3.25rem); line-height: .99; }
.sticky::before { content: ""; position: absolute; inset: 9% 10% 13%; z-index: -2; background: var(--fc-canary-paper); }
.sticky .sheet { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sticky .sheet, .sticky::before, .sticky > span { rotate: var(--note-tilt, -2deg); }
.sticky[data-placement="left"] { --note-tilt: -3.5deg; }
.sticky[data-placement="right"], .sticky[data-note="studio"]:not([data-placement]) { --note-tilt: 3.1deg; }
.sticky[data-placement="low"] { --note-tilt: -1.5deg; }
.sticky[data-placement="high"] { --note-tilt: 1.8deg; }
.lane[data-lane="Done"] .sticky::after { content: ""; position: absolute; right: 17%; bottom: 20%; width: 13%; height: 6%; border: solid var(--fc-olive); border-width: 0 0 .15em .15em; rotate: -43deg; }
.receipt { min-block-size: 2.9em; scroll-margin-block: var(--fc-space-4); margin-top: .35rem; color: var(--fc-studio-muted); font-size: clamp(.9375rem, 1.12vw, 1.2rem); line-height: 1.45; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fc-space-6); padding-block: clamp(2.7rem, 5.2vw, 7.2rem); background: var(--fc-olive); color: var(--fc-paper); }
.about-section h2 { font-size: clamp(2.6rem, 4.6vw, 5.8rem); }
.about-copy { max-width: 34rem; }
.about-copy p { font-size: var(--fc-type-lead); line-height: 1.5; }
.about-section a { color: var(--fc-paper); display: inline-flex; align-items: center; gap: .6em; margin-top: var(--fc-space-3); min-height: var(--fc-target); font-weight: 650; }
.about-section a:focus-visible { outline-color: var(--fc-paper); }
.invitation { display: block; font-size: var(--fc-type-label); }
.footer { background: var(--fc-graphite); color: var(--fc-paper); min-height: 5.8rem; }
.notice { min-height: 100svh; display: flex; flex-direction: column; }
.notice-copy { flex: 1; padding-block: var(--fc-section-space); }
.notice-copy h1 { font-size: var(--fc-type-title); }
.notice-copy p { max-width: 51ch; font-size: var(--fc-type-lead); margin-top: var(--fc-space-5); overflow-wrap: anywhere; }
@container (max-width: 14rem) {
  .lane .note-grid { --sheet: min(87cqi, 7.25rem); grid-template-columns: var(--sheet); grid-template-rows: repeat(2, var(--sheet)); gap: .4rem; }
}
@media (max-width: 660px) {
  .masthead .nav-story { display: none; }
  .whiteboard { margin-top: .55rem; padding: 2.25rem 5.8% 3.4rem; }
  .board-context { font-size: .8125rem; bottom: 10.2%; }
  .about-section { grid-template-columns: 1fr; gap: var(--fc-space-4); }
  .footer { flex-wrap: wrap; gap: .25rem 1rem; padding-block: var(--fc-space-3); }
  .footer .identity img { width: 5rem; }
}
@media (max-width: 475px) {
  .example-caption { flex-wrap: wrap; row-gap: .65rem; }
  .example-message { width: 100%; }
  .demo-controls button { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .board-stage:has([data-playback="playing"]) .source-copy span {
    text-decoration: underline; text-decoration-color: var(--fc-olive); text-decoration-thickness: .06em; text-underline-offset: .15em;
  }
  [data-playback="playing"] [data-lane="Pending"] [data-note="prints"] {
    transform-origin: center 10%; animation: lift-paper 520ms var(--fc-ease) 850ms both;
  }
  @keyframes lift-paper {
    from { transform: none; }
    to { transform: perspective(30rem) rotateX(6deg) translateY(-2px); }
  }
}
@media (forced-colors: active) {
  .landing, .masthead, .board-stage, .whiteboard, .about-section, .footer { background: Canvas; color: CanvasText; }
  .whiteboard { border: 1px solid; border-color: CanvasText; background-image: none; }
  .whiteboard::before, .whiteboard::after, .sticky .sheet, .sticky::before { display: none; }
  .sticky { background: Canvas; color: CanvasText; border: 1px solid; border-color: CanvasText; }
  .demo-controls button { background: ButtonFace; color: ButtonText; border: 1px solid; border-color: ButtonText; }
  .lane h3, .board-context, .receipt, .source-copy { color: CanvasText; }
  a, .about-section a { color: LinkText; }
  :focus-visible { outline-color: Highlight; }
}
