/*
  Open Chalk landing. Deal, recorded and not re-rolled:
  kind software, page software, site-kind software.
  palette cool-white-slate: off-white ground like the paper around a whiteboard, teal for the one action.
  type funnel: Funnel Display, Funnel Sans, DM Mono. radius soft. lit ground sage. buttons pill. mark arc.
  hero triptych. nav-cards re-dealt to nav-centre (one classroom, no photograph panel).
  footer-statement containing close-word. rhythm dark-band. moment line-carries-colour on #admit, from base.
  effect grain-gradient, seed 92, in the #clock frame only.
  paper skipped: it is a grain ground, and grain-gradient is the page's one effect.
  bg-topglow on the home body.
  gpt-taste seed 92 recorded and not built.
*/

:root {
  --p-bg: #f7f9fa;
  --p-surface: #ecf0f2;
  --p-ink: #1f3038;
  --p-muted: #5d6b72;
  --p-accent: #0d7480;
  --p-accent-ink: #ffffff;
  --p-action: #0d7480;
  --p-action-ink: #ffffff;
  --p-inv-bg: #1f3038;
  --p-inv-surface: #2c3c44;
  --p-inv-ink: #f7f9fa;
  --p-inv-muted: #9ea7ab;
  --p-inv-accent: #f7f9fa;
  --p-inv-accent-ink: #1f3038;
  --p-inv-action: #f7f9fa;
  --p-inv-action-ink: #1f3038;
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ly-scale: 0.98;
}

html[data-type="software"] body {
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--font-text);
}

html[data-type="software"] :is(h1, h2, h3, .display, .close__word, .nav__logo, .footer__lede) {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
}

html[data-type="software"] :focus-visible {
  outline: 2px solid var(--p-action);
  outline-offset: 2px;
}

/* app-frame, the recipe's grid, pasted as given */
.app.ui {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: var(--s-7);
  background: var(--u-bg);
  border: 1px solid var(--u-border);
  border-radius: var(--u-r);
  box-shadow: var(--u-shadow);
}
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(transparent, var(--u-bg));
  pointer-events: none;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open board: white, dock in the visible top, the rest cut by the pane */
#room .oc-board {
  position: relative;
  height: 140%;
  min-height: 640px;
  background: #fff;
  color: #1f3038;
}
#room .oc-stroke { position: absolute; left: 6%; top: 14%; width: 34%; height: 22%; }
#room .ui-win__st.is-done,
#room .ui-note__title time { color: #314048; }
#room .app__pane--open { position: relative; min-width: 0; }
#room .ui-notify { width: auto; max-width: 100%; }
#room .ui-note { max-width: 100%; box-sizing: border-box; }
#room .oc-sticky {
  position: absolute;
  left: 8%;
  top: 42%;
  width: 132px;
  padding: 12px 14px;
  background: #f4e7a8;
  color: #1f3038;
  font: 500 13px/1.35 var(--font-text);
  border-radius: 2px 10px 10px 10px;
}
#room .oc-note {
  position: absolute;
  left: 8%;
  top: 58%;
  max-width: 42%;
  font: 400 28px/1.2 var(--font-display);
  color: #1f3038;
}
#room .oc-dock {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}
#room .oc-dock span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: #1f3038;
  box-shadow: inset 0 0 0 1px #e4ddd4;
}
#room .oc-dock svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#room .ui-win__cols,
#room .ui-win__row {
  grid-template-columns: 24px 112px minmax(0, 1fr) 112px 52px;
}
@container ui-win (max-width: 539px) {
  #room .ui-win__cols { display: none; }
  #room .ui-win__row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-rows: 18px 16px;
    align-content: center;
    height: 56px;
    row-gap: 1px;
    padding: 0 14px;
  }
  #room .ui-win__row .ui-avatar { grid-row: 1 / 3; }
  #room .ui-win__who { grid-column: 2; grid-row: 1; line-height: 18px; }
  #room .ui-win__sub { grid-column: 2; grid-row: 2; font-size: 13px; }
  #room .ui-win__st { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  #room .ui-win__age { display: none; }
}
@media (max-width: 639px) {
  #room .oc-board { min-height: 0; height: 100%; }
  #room .oc-stroke { top: 6%; height: 28%; }
  #room .ui-notify__list .ui-note:nth-child(n + 2) { display: none; }
}
#room .app__pane--open > .ui-notify {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 3;
  width: min(260px, 42%);
  max-width: 42%;
}

/* clock meter, inside the one effect frame */
#clock .oc-meter-slot { left: 36px; right: 36px; top: 36px; bottom: 36px; width: auto; }
#clock .oc-meter {
  height: 100%;
  padding: 28px 28px 80px;
  background: #fff;
  color: var(--p-ink);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px -24px rgb(0 0 0 / .28);
}
#clock .oc-meter__kicker {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-muted);
}
#clock .oc-meter__num {
  margin-top: 12px;
  font: var(--display-weight) 72px/0.9 var(--font-display);
  letter-spacing: var(--display-tracking);
}
#clock .oc-meter__num span { margin-left: 8px; font: 500 18px/1 var(--font-text); letter-spacing: 0; color: var(--p-muted); }
#clock .oc-meter__line { margin-top: 12px; max-width: 24ch; font-size: 16px; }
#clock .oc-meter .rows { margin-top: 28px; }

/* path diagram: short enough for one desktop screen, tall enough to read on a phone */
#path .frame { --ratio: 42%; }
@media (max-width: 639px) {
  #path .frame { --ratio: 140%; }
}

/* hero collage pieces: classroom UI, one quiet corner per set for the pause disc */
.ly-collage .ly-piece { padding: 16px 18px; color: var(--p-ink); }
.ly-collage .oc-k {
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-muted);
}
.ly-collage .oc-h { margin-top: 6px; font: 500 20px/1.15 var(--font-display); letter-spacing: -0.02em; }
.ly-collage .oc-s { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--p-muted); max-width: 22ch; }
.ly-collage .oc-canvas { background: #fff; }
.ly-collage .oc-canvas .oc-stroke { position: absolute; left: 8%; top: 28%; width: 42%; height: 22%; }
.ly-collage .oc-canvas .oc-sticky {
  position: absolute;
  left: 8%;
  top: 34%;
  width: 38%;
  padding: 8px 10px;
  background: #f4e7a8;
  color: #1f3038;
  font: 500 12px/1.3 var(--font-text);
  border-radius: 2px 8px 8px 8px;
}
.ly-collage .oc-mini-dock { display: flex; gap: 4px; margin-top: 10px; }
.ly-collage .oc-mini-dock i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #d5dee2;
  background: #fff;
}
.ly-collage .oc-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent);
  font-size: 13px;
}
.ly-collage .oc-row b { font-weight: 500; }
.ly-collage .oc-row span { color: var(--p-muted); }
.ly-collage .oc-quiet .oc-h,
.ly-collage .oc-quiet .oc-s,
.ly-collage .oc-quiet .oc-k { max-width: 68%; }

/* the name sits inside the wrap: line-height leaves the caps, and the size tracks the column */
footer.closing .closing__cta { container-type: inline-size; min-width: 0; max-width: 100%; }
footer.closing .close__word {
  line-height: 1.05;
  padding-top: 0.08em;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: min(200px, 13.6cqi);
}
@media (max-width: 639px) {
  .ly-collage__set.is-on .ly-piece:nth-child(1) {
    left: 4% !important;
    top: 4% !important;
    width: 92% !important;
    height: 46% !important;
  }
  .ly-collage__set.is-on .ly-piece:nth-child(2) {
    left: 4% !important;
    top: 52% !important;
    width: 54% !important;
    height: 44% !important;
  }
  .ly-collage__set.is-on .ly-piece:nth-child(3) {
    left: 60% !important;
    top: 52% !important;
    width: 36% !important;
    height: 44% !important;
  }
  .ly-collage .oc-row { font-size: 12px; gap: 6px; padding: 5px 0; }
  .ly-collage .ly-piece { padding: 12px; }
  footer.closing .section-head--split { display: flex; flex-direction: column; align-items: stretch; }
  footer.closing .section-head--split .btn { width: 100%; max-width: 100%; justify-content: center; }
  #room .app__pane--open > .ui-notify { left: 12px; right: 12px; width: auto; max-width: none; }
  #path .dg-node--tile {
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 24px);
    height: auto;
    padding: 8px 10px;
    gap: 8px;
    white-space: nowrap;
  }
  #path .dg-node--tile > .dg-cap {
    flex-direction: row;
    gap: 6px;
    max-width: none;
    white-space: nowrap;
  }
  #clock .grid > :first-child { position: relative; z-index: 1; background: var(--p-bg); }
  .actionbar .btn { height: 56px; min-height: 56px; font-size: var(--t-lead); }
}

/* the close matches the hero button: 64/20 on a wide screen, 56 where the triptych drops to 56 */
footer.closing .section-head--split .btn--primary {
  height: 64px;
  min-height: 64px;
  font-size: var(--t-lead);
}
@media (max-width: 1279px) {
  footer.closing .section-head--split .btn--primary {
    height: 56px;
    min-height: 56px;
    font-size: var(--t-body);
  }
}
@media (max-width: 1023px) {
  footer.closing .section-head--split .btn--primary { font-size: var(--t-lead); }
}

/* Tailwind's start-* utilities set inset-inline-start. The kit uses those
   class names for grid-column-start, and a positioned box (the collage, the
   clock frame) was sliding off its column by that inset. */
main .grid > [class*="start-"],
footer .grid > [class*="start-"] { inset-inline-start: auto; }

/* the effect frame shares the questions column. A used left offset was pushing it 28px past both lines. */
#clock .frame.frame--split {
  position: relative;
  left: 0 !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  translate: none;
  max-width: 100%;
  justify-self: stretch;
}
@media (min-width: 1024px) {
  #clock .wrap > .grid { flex: 1 1 auto; min-height: 0; height: 100%; align-items: stretch; }
  #clock .frame.frame--split { height: 100%; min-height: 0; align-self: stretch; --ratio: 0; }
  #clock .grid > .span-5 { display: flex; flex-direction: column; align-self: stretch; }
  #clock .grid > .span-5 > a.link { margin-top: auto; }
  /* the band's outside foot and the moment's inset are one gap */
  #path { --padb: 110px; }
  #admit.mo-lc { --mo-gap: 110px; }
}

/* timeline captions sit in the tile, so a label cannot hang past a 40px box */
#path .dg,
#path .dg * { animation: none; }
#path .dg-node,
#path .dg-cap,
#path .dg-node.is-hit > .dg-cap,
#path .dg-node.is-done > .dg-cap {
  transition: none;
}
#path .dg-node--tile {
  flex-direction: column;
  justify-content: flex-start;
  width: auto;
  min-width: 72px;
  max-width: 132px;
  height: auto;
  padding: 10px 12px 8px;
  gap: 6px;
  white-space: normal;
  overflow: visible;
}
#path .dg-node--tile > .dg-cap {
  position: static;
  inset: auto;
  translate: none;
  left: auto;
  top: auto;
  display: flex;
  max-width: 108px;
  white-space: normal;
  text-wrap: balance;
  color: var(--dg-ink);
}

#questions .oc-qrow { display: flex; align-items: center; gap: 12px; }
#questions .oc-q { display: block; width: 32px; height: 32px; flex: none; }

@media (max-width: 639px) {
  #path .dg-node--tile {
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 28px);
    height: auto;
    padding: 6px 10px;
    gap: 8px;
    white-space: nowrap;
  }
  #path .dg-node--tile > .dg-cap {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    max-width: none;
    white-space: nowrap;
  }
  #path .dg-svg { z-index: 0; }
  #path .dg-nodes { z-index: 1; }
  #clock .grid > :first-child {
    position: relative;
    z-index: 2;
    isolation: isolate;
    background: #f7f9fa;
  }
  #clock a.link {
    color: #1f3038;
    background: #f7f9fa;
    box-decoration-break: clone;
  }
}
