/* getlocke.app (docs/specs/website.md). The app's tokens and type come from its own ui.css (Nightfall, the default
   look); this adds the site's layout and the opening's motifs: the cyan slab with its blue echo, ink-on-paper cards
   with an offset print, the halftone, the / lean. The page's shape follows the best-regarded site in the category: a
   bar, a full-screen opening, one statement lit as you read it, the product shown live, the facts as big numbers,
   every device, one last way in. */

:root {
  --gutter: 16px;
  --wrap: 1160px;
  --echo: #2a63e0;
  --paper: #eef7ff;
  --ink-0: #02081a;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
body {
  font-size: 16px;
}
.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.lead {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  max-width: 36em;
  text-wrap: pretty;
}
/* Stress (the owner, December 6: italics, with "an appropriate blue dropshadow behind it"): white, a step heavier than
   the words around it, with the cyan slab's blue echo at about its offset. In the editor it's typed *like this*
   (tools/site-edit). A headline's own weight stays. */
em {
  font-style: italic;
  font-weight: 600;
  color: #fff;
  text-shadow: 0.08em 0.08em 0 var(--echo);
}
:is(h1, h2, h3) em {
  font-weight: inherit;
}
h2 {
  margin-top: 10px;
  font: italic 900 clamp(38px, 5.4vw, 64px) / 1 var(--display);
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 3px 3px 0 #0b2a66;
}
.eyebrow {
  color: var(--hi);
}
.more::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 9px;
  margin-left: 7px;
  background: currentColor;
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
  transform: skewX(-12deg);
}

/* The bar: the name, three ways in, and Get Locke stamped on paper in ink with the cyan print offset under it (the
   owner's pick, December 5, of the opening drawn three ways: "the top banner" in a box was a
   complaint). A band of the night across the screen. On the home page it stands on the opening's night until the page
   is scrolled, and tucks away while the reader scrolls down, back when they scroll up (home.mjs). The name stands alone:
   the stripe before it played at a logo Locke doesn't have yet. */
.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: rgba(2, 8, 26, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    inset 0 -1px 0 var(--line),
    0 10px 30px rgba(0, 4, 14, 0.45);
  /* The app's ui.css has a .bar of its own (a progress bar: leaned, clipped), which reached this one: the whole band sat
     at -14°, unseen under the italic name until the upright logo stood in it (December 6). */
  transform: none;
  overflow: visible;
  transition:
    transform 0.32s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
/* The name is the logo (December 6, tentative: "fairly good chance it gets updated again"): the white word, its L a key
   and its O a keyhole (design/logo/final, copied to /logo/), with the headline's print under it. The word, and not the
   L alone the owner liked: in the bar it's the name a first visitor reads, and at this size the lone L read as a
   letter, not a key. Drawn from the one file, so a new logo is that file; the link keeps its word for screen readers
   and the site editor. */
.mark {
  display: block;
  flex: none;
  width: 100px;
  height: 31px;
  background: url("/logo/locke-word-white.svg") left center / contain no-repeat;
  filter: drop-shadow(3px 3px 0 #0b2a66);
  color: transparent;
  font-size: 0;
  text-decoration: none;
}
.mark:hover {
  text-decoration: none;
}
.bar .links {
  display: none;
  gap: 26px;
  margin-left: auto;
}
.bar .links a {
  color: var(--text-2);
  font: italic 600 17px/1 var(--head);
  letter-spacing: 0.03em;
}
.bar .links a:hover {
  color: #fff;
  text-decoration: none;
}
.bar .get {
  margin-left: auto;
  padding: 10px 16px 8px;
  color: #02081a;
  background: var(--paper);
  border: 2.5px solid #02081a;
  box-shadow: 5px 5px 0 var(--hi);
  font: italic 900 22px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(-3deg);
  transition:
    transform 0.16s var(--spring),
    box-shadow 0.16s var(--ease);
}
.bar .links + .get {
  margin-left: 0;
}
.bar .get:hover,
.bar .get:focus-visible {
  transform: rotate(-1deg) translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--hi);
  text-decoration: none;
}
.bar .get:active {
  transform: rotate(-1deg) translate(4px, 4px);
  box-shadow: 0 0 0 var(--hi);
}
.bar .get:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
@media (min-width: 760px) {
  .bar .links {
    display: flex;
  }
}
@media (max-width: 759px) {
  .bar {
    height: 66px;
  }
  .mark {
    width: 90px;
    height: 28px;
  }
  .bar .get,
  .bar .links + .get {
    margin-left: auto;
    padding: 9px 13px 7px;
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar,
  .bar .get {
    transition: none;
  }
}

/* The opening: the app's art behind, the app's own first words, every device, and the opening itself, live */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  box-sizing: border-box;
  padding: 112px 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--art-wide) 62% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(67, 216, 255, 0.16) 0 1.05px, transparent 1.5px) 0 0 / 6px 6px,
    linear-gradient(90deg, rgba(3, 15, 38, 0.94) 0%, rgba(3, 15, 38, 0.72) 48%, rgba(3, 15, 38, 0.3) 100%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font: italic 900 clamp(50px, 7.4vw, 104px) / 0.98 var(--display);
  color: #fff;
  text-shadow: 3px 3px 0 #0b2a66;
  margin-top: 14px;
  max-width: 11em;
  /* The slab and its echo hang below the line (0.15em + 0.075em): kept inside the headline, so the space under it is
     measured from the bar the reader sees (December 5: the lead sat 14px under it and 36px over the buttons). */
  padding-bottom: 0.225em;
}
.hero h1 .slab {
  margin-top: 0.14em;
}
.hero .lead {
  margin-top: 28px;
}
.hero h1.wait {
  visibility: hidden;
}
.hero h1 .ln {
  display: block;
}
/* The app's slab, as its boards draw it (kit.css .slab), but deep enough for its letters: the boards' bar (0.06em in,
   0.08em out) suits capitals, and over "Change everything." the h's touched its top and the g and y hung out of its
   foot (December 5, the owner: it "doesn't fit well into its case"). Now about 0.09em clear above the tallest letter and
   below the lowest, and the full stop clear of the lean. */
.slab {
  position: relative;
  display: inline-block;
  color: var(--on-hi);
  padding: 0 0.2em 0 0.12em;
  margin-left: 0.04em;
  z-index: 0;
  text-shadow: none;
}
.slab::before,
.slab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -0.15em;
  transform: skewX(var(--skew));
  transform-origin: 0 50%;
}
.slab::before {
  background: var(--hi);
  z-index: -1;
  box-shadow: 0 0 16px rgba(67, 216, 255, 0.42);
}
.slab::after {
  background: var(--echo);
  transform: translate(0.075em, 0.075em) skewX(var(--skew));
  z-index: -2;
}
.note {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}

/* A phone: the app's own boards in a frame of the site's (board/) */
.phone {
  margin: 0;
  justify-self: center;
  width: min(78vw, 330px);
}
.phone iframe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 390 / 844;
  height: auto;
  border: 10px solid #081a3d;
  border-radius: 46px;
  background: var(--bg);
  box-shadow:
    0 0 0 1px #24508f,
    0 0 0 2px #020a1c,
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(67, 216, 255, 0.18);
}
.phone figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  text-wrap: balance;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px;
  }
  .hero-phone {
    width: 300px;
    transform: perspective(1600px) rotateY(-16deg) rotateX(5deg) rotateZ(1.5deg);
  }
}

/* One statement, lit word by word as it's read (site.mjs) */
.said {
  padding: clamp(88px, 14vh, 176px) var(--gutter);
}
.lit {
  margin: 0 auto;
  max-width: 21em;
  text-align: center;
  font: italic 700 clamp(30px, 4.6vw, 58px) / 1.14 var(--head);
  color: #fff;
  text-wrap: balance;
}
.lit .w {
  opacity: 0.17;
  transition: opacity 0.35s var(--ease);
}
.lit .w.on {
  opacity: 1;
}

/* How Locke works: the app's seventeen slides, with a way through them */
.how,
.stakes,
.install {
  padding: 72px 0;
}
@media (min-width: 720px) {
  .how,
  .stakes,
  .install {
    padding: 96px 0;
  }
}
.head {
  max-width: 760px;
}
.how .head,
.install .head {
  margin: 0 auto 52px;
  text-align: center;
}
.how .head .lead,
.install .head .lead {
  margin-left: auto;
  margin-right: auto;
}
.how-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 72px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .how-phone {
    width: 330px;
  }
}
.step-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.count {
  font: italic 700 15px/1 var(--head);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.count b {
  color: #fff;
  font: italic 900 30px/1 var(--display);
  letter-spacing: 0;
}
button.ghost {
  width: 46px;
  height: 40px;
  padding: 0;
  font: 700 24px/1 var(--body);
  color: var(--hi);
}
button.ghost::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
button.ghost:hover:not(:disabled)::before {
  box-shadow:
    inset 0 0 0 1px var(--hi),
    var(--glow);
}
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: slide;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(9, auto);
  gap: 0 18px;
}
@media (min-width: 560px) {
  .toc {
    gap: 2px 28px;
  }
}
.toc li {
  counter-increment: slide;
}
.toc button {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 8px 4px;
  text-align: left;
  color: var(--muted);
  font: italic 600 clamp(15.5px, 1.6vw, 18px) / 1.2 var(--head);
  letter-spacing: 0.01em;
}
.toc button::before {
  content: counter(slide, decimal-leading-zero);
  position: static;
  inset: auto;
  z-index: auto;
  transform: none;
  background: none;
  box-shadow: none;
  min-width: 2ch;
  color: var(--faint);
  font: italic 900 20px/1 var(--display);
}
.toc button:hover:not(:disabled) {
  color: var(--text);
  transform: none;
}
.toc button:hover:not(:disabled)::before {
  box-shadow: none;
}
.toc button[aria-current="true"] {
  color: #fff;
}
.toc button[aria-current="true"]::before {
  color: var(--hi);
}

/* Stakes: the opening's jump, and the facts as big numbers */
.stakes-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .stakes-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 72px;
  }
  .stakes-phone {
    width: 300px;
    transform: perspective(1600px) rotateY(14deg) rotateX(4deg) rotateZ(-1.5deg);
  }
}
.facts {
  margin: 30px 0 0;
  display: grid;
  background: rgba(7, 26, 60, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 560px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
.facts div {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
}
.facts div:first-child {
  border-top: 0;
}
@media (min-width: 560px) {
  .facts div:nth-child(2) {
    border-top: 0;
  }
  .facts div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}
.facts dt {
  color: var(--hi);
  font: italic 900 clamp(44px, 5vw, 60px) / 0.95 var(--display);
  text-shadow: 2px 2px 0 #0b2a66;
}
.facts dd {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.stakes .more {
  display: inline-block;
  margin-top: 8px;
  font: italic 700 17px/1 var(--head);
  letter-spacing: 0.02em;
}

/* Install: one card per device, ink on paper with the opening's offset print */
.cards {
  display: grid;
  gap: 34px 30px;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* The offset print sits behind the paper, inside the list's own layer (the paper itself makes none, or the print
   would cover it). */
.cards,
.devices {
  isolation: isolate;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  margin: 0 12px 12px 0;
  background: var(--paper);
  background-clip: padding-box;
  color: var(--ink-0);
  border: 3px solid var(--ink-0);
}
.card::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  right: -11px;
  bottom: -12px;
  background: var(--hi);
  border: 3px solid var(--ink-0);
  z-index: -1;
}
.card h2,
.card h3 {
  margin: 0;
  color: inherit;
  text-shadow: none;
  font: italic 900 38px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.card .meta {
  margin: 8px 0 0;
  color: #34507a;
  font: italic 600 14px/1.35 var(--head);
  letter-spacing: 0.02em;
}
.card ol {
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.card li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.card li::before {
  content: counter(step);
  align-self: start;
  margin-top: 1px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--ink-0);
  color: var(--hi);
  font: italic 900 16px/1 var(--display);
  transform: skewX(-10deg);
}
.card .go {
  margin: auto 0 0;
}
.card .go a {
  color: var(--ink-0);
  font: italic 700 17px/1.2 var(--head);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: var(--hi);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}
.card .go a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 10px;
  margin-left: 8px;
  background: currentColor;
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
  transform: skewX(-12deg);
}

/* The last way in */
.last {
  position: relative;
  isolation: isolate;
  padding: 120px 0 128px;
  text-align: center;
  overflow: hidden;
}
.last::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(67, 216, 255, 0.14) 0 1.05px, transparent 1.5px);
  background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 60%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 50% 60%, #000, transparent);
}
.last h2 {
  font-size: clamp(64px, 12vw, 150px);
  text-transform: uppercase;
}
.last .lead {
  margin: 14px auto 34px;
}
.button.big {
  display: inline-block;
  padding: 18px 30px 16px;
  font-size: 20px;
  text-decoration: none;
}
.button.big:hover {
  text-decoration: none;
}

.foot {
  padding: 30px 0 44px;
  box-shadow: inset 0 1px 0 var(--line);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.foot .mark {
  width: 78px;
  height: 24px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.foot nav a {
  color: var(--muted);
  font-weight: 500;
}
.foot nav a:hover {
  color: var(--text);
}

/* The guides (install/): one column of steps, the device's facts on top */
.guide {
  padding: 120px 0 80px;
}
.guide .wrap {
  max-width: calc(820px + 2 * var(--gutter));
}
.guide h1 {
  margin-top: 12px;
  font: italic 900 clamp(48px, 8vw, 88px) / 0.95 var(--display);
  color: #fff;
  text-shadow: 3px 3px 0 #0b2a66;
}
.guide .crumbs {
  margin: 0 0 6px;
  font: italic 600 15px/1 var(--head);
}
.guide .crumbs a {
  color: var(--muted);
}
.guide .need {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.guide .need li {
  position: relative;
  isolation: isolate;
  padding: 7px 14px 6px;
  font: italic 600 15px/1.2 var(--head);
  letter-spacing: 0.02em;
  color: var(--text);
}
.guide .need li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 39, 84, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: skewX(var(--skew));
}
.guide .start {
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.guide .start .button {
  padding: 15px 24px 13px;
  font-size: 18px;
  text-decoration: none;
}
.guide .start small {
  color: var(--muted);
  font-size: 14px;
}
.guide section {
  margin-top: 64px;
}
.guide h2 {
  font-size: clamp(34px, 4.4vw, 46px);
}
.guide section > p,
.guide section > ul > li,
.guide .steps p {
  color: var(--text-2);
  line-height: 1.6;
}
.guide section > p {
  margin: 14px 0 0;
  max-width: 40em;
}
.guide .steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.guide .steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.guide .steps > li::before {
  content: counter(step);
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--hi);
  color: var(--on-hi);
  box-shadow: 3px 3px 0 var(--echo);
  font: italic 900 22px/1 var(--display);
  transform: skewX(var(--skew));
}
.guide .steps b {
  display: block;
  color: #fff;
  font: italic 700 20px/1.2 var(--head);
  letter-spacing: 0.01em;
}
.guide .steps p {
  margin: 6px 0 0;
}
.guide .rows {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(7, 26, 60, 0.6);
}
.guide .rows li {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.5;
}
.guide .rows li:first-child {
  border-top: 0;
}
.guide .rows b {
  color: #fff;
  font: italic 700 17px/1.3 var(--head);
  letter-spacing: 0.01em;
  margin-right: 6px;
}
.guide .rows .opt {
  margin-left: 4px;
  color: var(--muted);
  font: italic 600 12px/1 var(--head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guide .aside {
  margin: 22px 0 0;
  padding: 16px 18px;
  box-shadow: inset 3px 0 0 var(--warn);
  background: var(--warn-soft);
  color: var(--text);
  line-height: 1.55;
}
.devices {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 34px 30px;
}
@media (min-width: 640px) {
  .devices {
    grid-template-columns: 1fr 1fr;
  }
}
.devices .card p {
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.5;
}
.guide .crumbs .back::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 9px;
  margin-right: 8px;
  background: currentColor;
  clip-path: polygon(100% 0, 55% 0, 0 50%, 55% 100%, 100% 100%, 45% 50%);
  transform: skewX(-12deg);
}
