/* IJW Studios
   A drafting-sheet look: warm paper, navy ink, one blue taken from Blueprint's icon.
   Colours and type are set here; change them and every page follows. */

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --sheet: #fbfaf6;
  --ink: #142030;
  --ink-2: #414e60;
  --ink-3: #636d7c;
  --rule: #d6d0c3;
  --rule-strong: #b7b0a1;

  --blue: #1f5bb8;
  --blue-dark: #17478f;
  --tile: #dfe8f0;
  --tile-line: rgba(31, 91, 184, 0.09);

  --cyano: #123a75;
  --cyano-line: rgba(255, 255, 255, 0.08);
  --cyano-text: #eef3ff;
  --cyano-muted: #aec2e6;

  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 20px;
  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 17px/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding: 18px 0;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}

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

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.arrow {
  font-weight: 600;
  text-decoration: none;
}

.arrow::after {
  content: " \2192";
}

.arrow:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--rule);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 40px clamp(32px, 6vw, 96px);
}

.split > h2,
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.section-title {
  margin-bottom: 24px;
}

.section-title + .lede {
  margin-top: -8px;
}

.split > h2 {
  position: sticky;
  top: 24px;
  align-self: start;
}

.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
}

.prose {
  max-width: 40em;
}

.prose p {
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split > h2 {
    position: static;
  }
}

/* ---------- Figures ---------- */

.plate {
  margin: 0;
}

.plate-frame {
  position: relative;
  padding: clamp(6px, 1vw, 12px);
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
}

.plate img {
  width: 100%;
}

.plate figcaption,
.caption {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font: 400 0.8125rem/1.5 var(--mono);
  color: var(--ink-2);
}

.fig {
  flex: none;
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Numbered callouts over a screenshot, explained in a list underneath. */
.callout {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 500 0.8125rem/1 var(--mono);
  box-shadow: 0 0 0 3px #fff;
  transform: translate(-50%, -50%);
}

.callout-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: key;
}

.callout-key li {
  position: relative;
  padding-left: 40px;
  color: var(--ink-2);
  font-size: 0.95rem;
  counter-increment: key;
}

.callout-key li::before {
  content: counter(key);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 500 0.75rem/1 var(--mono);
}

.callout-key strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 760px) {
  .callout {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    box-shadow: 0 0 0 2px #fff;
  }

  .callout-key {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.subhead {
  margin: 56px 0 16px;
  font-size: 1.3rem;
}

.note {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--sheet);
  color: var(--ink-2);
}

.small {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- Home: intro and current release ---------- */

.intro {
  padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 7vw, 88px);
}

.intro h1 {
  font-size: clamp(2.6rem, 7.4vw, 6.25rem);
  max-width: 11.5em;
}

.intro .lede {
  margin-top: clamp(24px, 3vw, 36px);
}

.release-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 32px;
}

.release-head img {
  width: 64px;
  height: 64px;
}

.release-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.release-head p {
  margin: 8px 0 0;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .release-head {
    grid-template-columns: auto 1fr;
  }

  .release-head .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---------- Releases register (a drawing register, not cards) ---------- */

.register {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.register th {
  padding: 12px 16px 12px 0;
  text-align: left;
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--ink);
}

.register td {
  padding: 22px 16px 22px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.register tr:last-child td {
  border-bottom: 0;
}

.register .num {
  width: 64px;
  font-family: var(--mono);
  color: var(--ink-3);
}

.register .name a {
  color: var(--ink);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.35rem;
  text-decoration: none;
}

.register .name a:hover {
  color: var(--blue);
}

.register .name span {
  display: block;
  margin-top: 4px;
}

.register .later td {
  color: var(--ink-3);
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 500 0.75rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-out {
  color: var(--blue);
}

@media (max-width: 720px) {
  .register thead {
    display: none;
  }

  .register tr {
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
  }

  .register tr:last-child {
    border-bottom: 0;
  }

  .register td {
    padding: 0 0 6px;
    border: 0;
  }

  .register .num {
    grid-row: span 4;
    width: auto;
  }

  .register td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-3);
    font: 500 0.75rem var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

/* ---------- Contact ---------- */

.email-big {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}

.email-big:hover {
  color: var(--blue);
}

.copy {
  margin-left: 4px;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink-2);
  font: 500 0.75rem/1.4 var(--mono);
  cursor: pointer;
  vertical-align: middle;
}

.copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mail-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.mail-options li {
  padding: 18px 24px 4px 0;
}

.mail-options li + li {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.mail-options a {
  font-weight: 600;
}

.mail-options p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .mail-options {
    grid-template-columns: 1fr;
  }

  .mail-options li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Footer: a drawing's title block ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
}

.titleblock {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 0.8fr 0.8fr;
  border: 1.5px solid var(--ink);
}

.titleblock > div {
  padding: 12px 16px 14px;
  border-left: 1px solid var(--ink);
  min-width: 0;
}

.titleblock > div:first-child {
  border-left: 0;
}

.titleblock dt {
  margin-bottom: 4px;
  font: 500 0.6875rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.titleblock dd {
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.titleblock .tb-name dd {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.titleblock a {
  color: var(--ink);
}

.titleblock a:hover {
  color: var(--blue);
}

.titleblock .links a + a {
  margin-left: 12px;
}

.disclaimer {
  margin: 16px 0 0;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .titleblock {
    grid-template-columns: 1fr 1fr;
  }

  .titleblock > div {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .titleblock > div:nth-child(even) {
    border-left: 1px solid var(--ink);
  }

  .titleblock > div:first-child {
    grid-column: 1 / -1;
    border-top: 0;
  }

  .titleblock > div:nth-child(2) {
    border-left: 0;
  }

  .titleblock > div:nth-child(3) {
    border-left: 1px solid var(--ink);
  }

  .titleblock > div:nth-child(4) {
    border-left: 0;
  }

  .titleblock > div:nth-child(5) {
    border-left: 1px solid var(--ink);
  }
}

/* ---------- Blueprint page ---------- */

.crumbs {
  margin: 0 0 32px;
  font: 400 0.8125rem var(--mono);
  color: var(--ink-3);
}

.crumbs a {
  color: var(--ink-3);
}

.product-hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 88px);
}

.product-title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}

.product-title img {
  width: clamp(56px, 8vw, 96px);
  height: auto;
}

.product-title h1 {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  letter-spacing: -0.035em;
}

.product-hero .lede {
  margin: clamp(24px, 3vw, 36px) 0 32px;
  color: var(--ink);
}

.specline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 28px 0 clamp(40px, 6vw, 64px);
  padding: 0;
  list-style: none;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ink-2);
}

.specline li:not(:last-child)::after {
  content: "/";
  margin: 0 12px;
  color: var(--rule-strong);
}

/* The deep blue sheet: how a build goes. */
.cyanotype {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  background-color: var(--cyano);
  background-image:
    linear-gradient(var(--cyano-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyano-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--cyano-text);
}

.cyanotype h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 12em;
}

.cyanotype .lede {
  color: var(--cyano-muted);
  margin-top: 20px;
}

.cyanotype a {
  color: #fff;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.notes li {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  counter-increment: note;
}

.notes li::before {
  content: counter(note, decimal-leading-zero);
  font: 500 0.875rem/1.7 var(--mono);
  color: var(--cyano-muted);
}

.notes strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.notes span {
  color: var(--cyano-muted);
}

.queue {
  position: sticky;
  top: 24px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 28, 60, 0.55);
}

.queue-label {
  margin: 0 0 14px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyano-muted);
}

.queue ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  font: 400 0.95rem/1.3 var(--mono);
}

.queue li:last-child {
  border-bottom: 0;
}

.queue li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--swatch, #fff);
}

.queue .get { --swatch: #e0a63a; }
.queue .make { --swatch: #6aa2f0; }
.queue .build { --swatch: #4fbf6a; }

.queue-foot {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--cyano-muted);
}

@media (max-width: 860px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .queue {
    position: static;
  }
}

/* Designs: a screenshot beside three ways in. */
.design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: start;
}

.ways {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.ways li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.ways h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.ways p {
  margin: 0;
  color: var(--ink-2);
}

.ways code,
.faq code {
  font: 400 0.875em var(--mono);
  padding: 1px 5px;
  background: var(--paper-2);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .design-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery of build renders on blueprint paper. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "villa villa sentinel"
    "temple temple sentinel"
    "moss inn pagoda";
  gap: 16px;
  margin-top: 40px;
}

.gallery figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.tile {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--tile-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid #c6d3df;
}

.tile img {
  max-height: 100%;
  object-fit: contain;
}

.g-villa { grid-area: villa; }
.g-sentinel { grid-area: sentinel; }
.g-temple { grid-area: temple; }
.g-moss { grid-area: moss; }
.g-inn { grid-area: inn; }
.g-pagoda { grid-area: pagoda; }

.g-villa img { width: min(100%, 560px); }
.g-sentinel img { width: min(100%, 300px); }
.g-temple img { width: min(100%, 560px); }
.g-moss img,
.g-inn img,
.g-pagoda img { width: min(100%, 300px); }

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "villa villa"
      "temple temple"
      "sentinel moss"
      "inn pagoda";
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-areas: "villa" "temple" "sentinel" "moss" "inn" "pagoda";
  }

  .g-sentinel img {
    width: min(70%, 260px);
  }
}

/* Setup steps beside the setup screenshot. */
.steps {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 26px 56px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 500 0.875rem/1 var(--mono);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: var(--rule-strong);
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* Spec sheet: requirements and the honest notes. */
.spec {
  margin: 0;
  border-top: 1.5px solid var(--ink);
}

.spec > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1.6fr);
  gap: 4px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.spec dt {
  font: 500 0.8125rem/1.6 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec dd {
  margin: 0;
  color: var(--ink-2);
}

.spec dd strong {
  color: var(--ink);
}

@media (max-width: 560px) {
  .spec > div {
    grid-template-columns: 1fr;
  }
}

/* Buying: the current build's facts, set like a label. */
.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.buy-grid h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 24px;
}

.label {
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}

.label > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.label > div:last-child {
  border-bottom: 0;
}

.label dt {
  font: 500 0.75rem/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.label .hash {
  display: block;
  padding: 14px 18px 16px;
}

.label .hash dd {
  margin-top: 6px;
  text-align: left;
  font: 400 0.8125rem/1.5 var(--mono);
  word-break: break-all;
}

@media (max-width: 860px) {
  .buy-grid {
    grid-template-columns: 1fr;
  }
}

/* The price schedule: four plans set like a table on a drawing, not floating cards. */
.buy-intro {
  max-width: 40em;
  margin-bottom: 36px;
}

.buy-intro h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-left: 1px solid var(--rule-strong);
}

.plan:first-child {
  border-left: 0;
}

/* The length, set like a dimension on a drawing: a big number and its unit. */
.plan-len {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--rule-strong);
}

.plan-num {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3.6rem, 6.4vw, 5.4rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.plan-unit {
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan .price {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan .per {
  margin: 8px 0 0;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ink-3);
}

.plan .save {
  margin: 4px 0 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.plan .btn {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

.plan .btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* The 30-day plan: a piece of blueprint paper, raised over the table's edges. */
.plan-pick {
  margin: -1.5px;
  border-left: 0;
  background-color: var(--cyano);
  background-image:
    linear-gradient(var(--cyano-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyano-line) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--cyano-text);
  box-shadow: 0 18px 40px -22px rgba(18, 58, 117, 0.75);
  z-index: 1;
}

.plan-pick + .plan {
  border-left: 0;
}

.plan-pick .plan-len {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.plan-pick .plan-unit,
.plan-pick .per {
  color: var(--cyano-muted);
}

.plan-pick .save {
  color: #ffffff;
}

.plan-pick .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--cyano);
}

.plan-pick .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--cyano);
}

.pick {
  position: absolute;
  top: 0;
  left: 26px;
  margin: 0;
  padding: 5px 9px;
  transform: translateY(-50%);
  background: var(--blue);
  color: #ffffff;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Step 1 of buying: the email the key goes to, typed twice. */
.buy-form {
  margin: 0;
}

.buy-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 500 0.8125rem/1 var(--mono);
  vertical-align: 2px;
}

.buy-email {
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.buy-email legend,
.buy-pick {
  margin: 0 0 16px;
  padding: 0;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.25rem;
}

.buy-email-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 820px;
}

.buy-email label span {
  display: block;
  margin-bottom: 7px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.buy-email input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  font: 400 1.05rem/1.2 var(--sans);
}

.buy-email input::placeholder {
  color: #9aa1ab;
}

.buy-email input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 91, 184, 0.18);
}

.buy-email input:not(:placeholder-shown):invalid {
  border-color: #b3261e;
}

.buy-email-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .buy-email-fields {
    grid-template-columns: 1fr;
  }
}

.buy-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 16px 0 64px;
  padding: 0;
  list-style: none;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ink-2);
}

.buy-notes li:not(:last-child)::after {
  content: "/";
  margin: 0 12px;
  color: var(--rule-strong);
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 3px solid #b3261e;
  background: #fbeceb;
  color: #5c1410;
}

@media (max-width: 900px) {
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan:nth-child(3) {
    border-left: 0;
  }

  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--rule-strong);
  }
}

@media (max-width: 480px) {
  .schedule {
    grid-template-columns: 1fr;
  }

  .plan {
    border-left: 0;
  }

  .plan + .plan {
    border-top: 1px solid var(--rule-strong);
  }
}

/* The thank-you page: the key, big and copyable. */
.thanks h1 {
  margin: 14px 0 20px;
}

.mailcard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  max-width: 760px;
  margin: 28px 0 32px;
  padding: 24px 26px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}

.mailcard-icon {
  color: var(--blue);
}

.mailcard-to {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.mailcard-note {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 520px) {
  .mailcard {
    grid-template-columns: 1fr;
  }
}

.order-facts {
  max-width: 720px;
}

.dots::after {
  content: "";
  animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

@media (prefers-reduced-motion: reduce) {
  .dots::after {
    animation: none;
    content: "...";
  }
}

/* Release notes and FAQ. */
.changes {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.changes li {
  margin-bottom: 6px;
}

.release-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.release-title h3 {
  font-size: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1.5px solid var(--ink);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.075rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font: 400 1.4rem/1 var(--mono);
  color: var(--ink-3);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: -4px 0 22px;
  max-width: 44em;
  color: var(--ink-2);
}

/* ---------- Plain pages ---------- */

.page {
  padding: clamp(48px, 8vw, 96px) 0;
}

.page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 32px;
}

.page h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.6em;
}

.lost {
  padding: clamp(64px, 12vw, 160px) 0;
}

.lost h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  max-width: 10em;
  margin: 16px 0 24px;
}
