/* Furrow's documentation and support site.
   The Furrow preset's own look: colour scheme 1 (paper) for the page and
   scheme 3 (slate) for the header and footer, Cormorant 600 for headings and
   Archivo for the words. Flat: no gradients, glows or blurred shadows. */

:root {
  --paper: #fbf8f1;
  --cream: #f3ece0;
  --cream-2: #f3ecdd;
  --ink: #1f1c17;
  --ink-2: #5c564c;
  --gold: #785e21;
  --rule: #e1d6bf;
  --field: #8c7a55;
  --slate: #3a3d42;
  --slate-2: #2b2e32;
  --slate-rule: #56595e;
  --straw: #eadcb0;
  --on-slate: #ffffff;
  --on-slate-2: #c9ccd1;
  --error: #8a2f22;
  --done: #2f5e4b;

  --font-head: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-small: 0.9375rem;
  --step-tiny: 0.8125rem;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --page: 76rem;
  --measure: 44rem;
  --margin: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-5);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* ------------------------------------------------------------ type */

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  font-variant-numeric: oldstyle-nums;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 2rem + 2.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.35rem);
  margin-block-start: var(--s-7);
}

h3 {
  font-size: 1.5rem;
  margin-block-start: var(--s-6);
}

/* Never the display face below 20px: small headings are set in the text face */
h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  margin: var(--s-5) 0 0;
}

p,
ul,
ol,
dl,
table,
figure,
blockquote,
pre {
  margin: var(--s-4) 0 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-inline-start: 1.35em;
}

li + li {
  margin-block-start: var(--s-2);
}

strong,
b {
  font-weight: 650;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

code,
kbd,
.path {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* Shopify's own menus and buttons, as "Online Store > Themes" */
.ui {
  font-weight: 600;
  white-space: nowrap;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}

.kicker {
  font-size: var(--step-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-3);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 38rem;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ focus */

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

.site-head :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--straw);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-3);
  z-index: 10;
  padding: var(--s-2) var(--s-4);
  background: var(--straw);
  color: var(--slate-2);
  font-weight: 650;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ------------------------------------------------------------ header */

.site-head {
  background: var(--slate);
  color: var(--on-slate);
  border-bottom: 1px solid var(--slate-rule);
}

.site-head__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s-3) var(--margin);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--on-slate);
  text-decoration: none;
  margin-inline-end: auto;
  min-height: 44px;
  align-self: center;
  padding-block: var(--s-1);
}

.brand:hover {
  color: var(--on-slate);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
}

.brand__line {
  font-size: var(--step-tiny);
  color: var(--straw);
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-1);
}

.site-nav li + li {
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--on-slate);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--straw);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav a[aria-current] {
  color: var(--straw);
  box-shadow: inset 0 -2px 0 var(--straw);
  border-radius: 0;
}

.search-form {
  display: flex;
  align-items: stretch;
}

.search-form input {
  width: clamp(8rem, 14vw, 13rem);
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 var(--s-3);
}

.search-form button {
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  font-size: var(--step-small);
  color: var(--slate-2);
  background: var(--straw);
  border: 1px solid var(--straw);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 var(--s-4);
  cursor: pointer;
}

.search-form button:hover {
  background: var(--on-slate);
  border-color: var(--on-slate);
}

/* Phones: the menu folds behind a button when the script is there */
@media (max-width: 860px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 44px;
    padding: 0 var(--s-4);
    font: inherit;
    font-weight: 600;
    color: var(--slate-2);
    background: var(--straw);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
  }

  .js .site-nav,
  .js .site-head .search-form {
    display: none;
    flex-basis: 100%;
  }

  .js .site-head[data-open] .site-nav,
  .js .site-head[data-open] .search-form {
    display: flex;
  }

  .site-nav,
  .site-head .search-form {
    flex-basis: 100%;
  }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    border-top: 1px solid var(--slate-rule);
    border-radius: 0;
  }

  .site-nav a[aria-current] {
    box-shadow: inset 3px 0 0 var(--straw);
  }

  .site-head .search-form input {
    flex: 1;
    width: auto;
  }

  .site-head .search-form {
    padding-block-end: var(--s-3);
  }
}

/* ------------------------------------------------------------ page frame */

main {
  flex: 1;
  display: block;
}

main:focus {
  outline: none;
}

.frame {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s-6) var(--margin) var(--s-8);
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
}

/* The sidebar follows the words in the page, so they come first to a
   keyboard and a screen reader; on a wide screen it stands to the left */
@media (min-width: 900px) {
  .frame--docs {
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: clamp(2.5rem, 4vw, 4rem);
  }

  .frame--docs > .content {
    grid-column: 2;
    grid-row: 1;
  }

  .frame--docs > .side {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 1240px) {
  .frame--docs.frame--toc {
    grid-template-columns: 14rem minmax(0, var(--measure)) 13rem;
  }

  .frame--docs > .toc {
    grid-column: 3;
    grid-row: 1;
  }
}

.content {
  min-width: 0;
  max-width: var(--measure);
}

.frame--wide .content {
  max-width: none;
}

.content > :first-child,
.content > header > :first-child {
  margin-top: 0;
}

.crumbs {
  font-size: var(--step-small);
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-2);
}

.crumbs li + li {
  margin: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-inline-end: var(--s-2);
  color: var(--field);
}

.page-head {
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-5);
}

.page-head .lead {
  margin-top: var(--s-4);
}

/* The sidebar: every page, by part */
.side {
  font-size: var(--step-small);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}

.side__head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 var(--s-2);
}

.side__title {
  font-family: var(--font-body);
  font-size: var(--step-tiny);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: var(--s-5) 0 var(--s-2);
}

.side ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side li + li {
  margin-top: 0;
}

.side a {
  display: block;
  padding: 0.35rem var(--s-2) 0.35rem var(--s-3);
  border-left: 2px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}

.side a:hover {
  color: var(--gold);
  border-left-color: var(--field);
  text-decoration: underline;
}

.side a[aria-current] {
  border-left-color: var(--gold);
  color: var(--gold);
  font-weight: 650;
}

@media (max-width: 899px) {
  .side__inner {
    columns: 2 14rem;
    column-gap: var(--s-6);
  }

  .side__head {
    column-span: all;
  }

  .side__title {
    break-after: avoid;
  }

  .side ul {
    break-inside: avoid-column;
  }
}

@media (min-width: 900px) {
  .side {
    border-top: 0;
    padding-top: 0;
  }

  .side__head {
    display: none;
  }

  .side__inner {
    position: sticky;
    top: var(--s-5);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--s-2) var(--s-5) 0;
    scrollbar-width: thin;
  }

  .side__title:first-of-type {
    margin-top: 0;
  }
}

/* Before this, and next */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.pager__link {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

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

.pager__link:hover .pager__title {
  text-decoration: underline;
}

.pager__link--after {
  text-align: right;
  grid-column: 2;
}

.pager__word {
  font-size: var(--step-tiny);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.pager__link--before .pager__word::before {
  content: "\2190\00a0";
}

.pager__link--after .pager__word::after {
  content: "\00a0\2192";
}

.pager__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
}

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

  .pager__link--after {
    grid-column: 1;
  }
}

/* On this page */
.toc {
  display: none;
  font-size: var(--step-small);
}

@media (min-width: 1240px) {
  .toc {
    display: block;
  }

  .toc__inner {
    position: sticky;
    top: var(--s-5);
    border-left: 1px solid var(--rule);
    padding-left: var(--s-4);
  }
}

.toc h2 {
  font-family: var(--font-body);
  font-size: var(--step-tiny);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
}

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

.toc li + li {
  margin-top: var(--s-1);
}

.toc a {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  display: inline-block;
  padding-block: 0.15rem;
}

.toc a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ------------------------------------------------------------ pieces */

.callout {
  margin: var(--s-5) 0 0;
  padding: var(--s-4) var(--s-5);
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout > :first-child {
  margin-top: 0;
}

.callout__title {
  font-weight: 650;
  margin: 0;
}

.callout--warn {
  border-left-color: var(--error);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps > li + li {
  margin-top: var(--s-4);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--gold);
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.cards li + li {
  margin: 0;
}

.card {
  height: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--s-5);
  position: relative;
}

.card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover {
  border-color: var(--field);
}

.card:hover h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.card:focus-within a:focus-visible {
  outline: none;
}

.card p {
  margin-top: var(--s-2);
  color: var(--ink-2);
  font-size: var(--step-small);
}

.card .kicker {
  margin-bottom: var(--s-2);
}

.drawing--side {
  float: right;
  width: min(40%, 11rem);
  margin: 0 0 var(--s-4) var(--s-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  font: inherit;
  font-weight: 600;
  color: var(--on-slate);
  background: var(--slate);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--on-slate);
  background: var(--slate-2);
  border-color: var(--slate-2);
  text-decoration: none;
}

.button--quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button--quiet:hover {
  color: var(--ink);
  background: var(--cream-2);
  border-color: var(--ink);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* A place for a screenshot still to be made: never a fake one */
.shot {
  margin: var(--s-5) 0 0;
  border: 2px dashed var(--field);
  border-radius: var(--radius);
  background: var(--cream-2);
  padding: var(--s-5);
  min-height: 9rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-2);
  font-size: var(--step-small);
}

.shot b {
  display: block;
  color: var(--ink);
  font-size: var(--step-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Something for the studio to decide before the site goes live */
.decide {
  border: 2px dashed var(--error);
  background: #fbf1ec;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
}

.figure {
  margin: var(--s-5) 0 0;
}

.figure figcaption {
  font-size: var(--step-small);
  color: var(--ink-2);
  margin-top: var(--s-2);
}

/* Tables: a region that scrolls on its own on a phone */
.table-wrap {
  margin-top: var(--s-4);
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.table-wrap--narrow table {
  min-width: 0;
}

caption {
  text-align: left;
  font-weight: 650;
  padding: var(--s-3) var(--s-4) 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-2) var(--s-4);
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: var(--cream-2);
  font-weight: 650;
  white-space: nowrap;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  vertical-align: -0.15em;
  margin-inline-end: 0.35em;
}

/* ------------------------------------------------------------ the home page */

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}

.band:first-child {
  border-top: 0;
}

.band--cream {
  background: var(--cream-2);
}

.band--slate {
  background: var(--slate);
  color: var(--on-slate);
  border-top: 0;
}

.band--slate .kicker {
  color: var(--straw);
}

.band--slate p {
  color: var(--on-slate-2);
}

.band__head {
  max-width: 42rem;
  margin-bottom: var(--s-6);
}

.band__head h2 {
  margin-top: 0;
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
}

.band__head p:not(.kicker) {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.band__foot {
  margin-top: var(--s-6);
  color: var(--ink-2);
}

.band--hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.hero {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.hero h1 {
  font-size: clamp(2.9rem, 1.9rem + 4.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 13ch;
}

.hero .lead {
  margin-top: var(--s-5);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  max-width: 34rem;
}

.hero__words > p:not(.lead):not(.kicker):not(.actions) {
  color: var(--ink-2);
  max-width: 34rem;
}

/* The drawn stage: a hamper on cream, the today strip and a calendar page */
.stage {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  gap: var(--s-4);
}

.stage__drawing {
  display: block;
  width: 88%;
  margin: 0 auto var(--s-2);
}

.stage .calendar--stage {
  position: absolute;
  top: clamp(-1.25rem, -2vw, -0.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  transform: rotate(4deg);
}

.stage__note {
  margin: 0;
  font-size: var(--step-small);
  color: var(--ink-2);
  text-align: center;
}

/* The theme's today strip, drawn as an example */
.specimen-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--step-small);
  line-height: 1.3;
  color: var(--ink);
}

.specimen-strip b {
  font-weight: 700;
}

.specimen-strip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--done);
  flex: none;
}

.specimen-strip--closed .specimen-strip__dot {
  background: var(--ink-2);
}

.specimen-strip__second {
  color: var(--ink-2);
  margin-left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .specimen-strip:not(.specimen-strip--closed) .specimen-strip__dot {
    animation: breathe 3.2s ease-in-out infinite;
  }
}

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

/* A date drawn as a desk calendar's page, as the theme draws them */
.calendar {
  display: inline-grid;
  width: 5.25rem;
  text-align: center;
  background: #fffdf8;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 1;
}

.calendar__month {
  display: block;
  padding: 0.35rem 0 0.3rem;
  background: #7a3f45;
  color: #fffdf8;
  font-size: var(--step-tiny);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar__day {
  display: block;
  padding: 0.4rem 0 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  font-variant-numeric: lining-nums;
  color: var(--ink);
}

.countdown {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-1);
}

.countdown__number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 0.9;
  color: #7a3f45;
  font-variant-numeric: lining-nums;
}

.countdown__words {
  font-size: var(--step-small);
  color: var(--ink-2);
  max-width: 11rem;
}

/* What it does */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.features li + li {
  margin: 0;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  padding: var(--s-4) var(--s-4) var(--s-5);
}

@media (min-width: 720px) {
  .feature--wide {
    grid-column: span 2;
  }
}

.feature:hover {
  border-color: var(--field);
}

.feature:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.feature a:focus-visible {
  outline: none;
}

.feature__art {
  height: 10.5rem;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  border-radius: var(--radius);
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  overflow: hidden;
}

.feature__art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.feature__art--strip {
  height: auto;
  min-height: 10.5rem;
  align-content: center;
  gap: var(--s-3);
  place-items: stretch;
}

.feature__art--row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--s-4);
}

.feature__art--row img {
  width: auto;
  height: 82%;
  max-width: 40%;
}

.feature h3 {
  margin: 0;
  font-size: 1.5rem;
}

.feature h3 a {
  color: var(--ink);
  text-decoration: none;
}

.feature h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feature:hover h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.feature p {
  margin-top: var(--s-2);
  color: var(--ink-2);
  font-size: var(--step-small);
}

/* The presets, each drawn small in its own colors and type */
.presets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.presets li + li {
  margin: 0;
}

.preset {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.preset__body {
  padding: var(--s-5);
}

.preset h3 {
  margin: 0;
  font-size: 1.75rem;
}

.preset p {
  margin-top: var(--s-2);
  font-size: var(--step-small);
}

.preset .preset__fonts {
  color: var(--ink-2);
}

.mock {
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-body);
  border-bottom: 1px solid var(--rule);
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--m-dark);
  color: var(--m-dark-text);
}

.mock__logo {
  font-family: var(--m-head);
  font-weight: var(--m-head-weight);
  font-size: 1.35rem;
  line-height: 1;
}

.mock__menu {
  display: grid;
  gap: 3px;
}

.mock__menu i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--m-dark-accent);
}

.mock__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--m-surface);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mock__strip b {
  font-weight: 700;
}

.mock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m-accent);
}

.mock__second {
  opacity: 0.75;
  margin-left: auto;
}

.mock__page {
  padding: 1.6rem 1.1rem 1.7rem;
  min-height: 14.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mock__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-accent);
}

.mock .mock__title {
  margin: 0.45rem 0 1.1rem;
  font-family: var(--m-head);
  font-weight: var(--m-head-weight);
  font-size: 1.65rem;
  line-height: 1.1;
  text-wrap: balance;
}

.mock__button {
  margin-top: auto;
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--m-button);
  color: var(--m-button-label);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Where to start */
.paths {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  counter-reset: none;
}

.paths li + li {
  margin: 0;
}

.route {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-top: 2px solid var(--ink);
}

.route__number {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
}

.route h3 {
  margin: var(--s-3) 0 0;
  font-size: 1.75rem;
}

.route h3 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
}

.route h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.route:hover h3 a {
  color: var(--gold);
}

.route:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.route a:focus-visible {
  outline: none;
}

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

.quick-links {
  list-style: none;
  padding: var(--s-5) 0 0;
  margin: var(--s-6) 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
}

.quick-links li + li {
  margin: 0;
}

.quick-links a {
  font-weight: 600;
}

.quick-links a::after {
  content: "\00a0\2192";
}

.help-band {
  display: grid;
  gap: var(--s-5);
  align-items: end;
}

@media (min-width: 900px) {
  .help-band {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

.help-band h2 {
  margin: 0;
  color: var(--on-slate);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}

.help-band .actions {
  margin: 0;
}

.button--light {
  color: var(--slate-2);
  background: var(--straw);
  border-color: var(--straw);
}

.button--light:hover {
  color: var(--slate-2);
  background: var(--on-slate);
  border-color: var(--on-slate);
}

.button--outline-light {
  color: var(--on-slate);
  background: transparent;
  border-color: var(--on-slate-2);
}

.button--outline-light:hover {
  color: var(--slate-2);
  background: var(--on-slate);
  border-color: var(--on-slate);
}

.band--slate :focus-visible {
  outline-color: var(--straw);
}

.drawing {
  display: block;
  margin-inline: auto;
}

.lost-drawing {
  width: min(70%, 16rem);
  margin: var(--s-6) 0 var(--s-5);
}

/* ------------------------------------------------------------ the reference */

.facts {
  display: grid;
  gap: var(--s-1) var(--s-4);
  grid-template-columns: max-content 1fr;
  margin-top: var(--s-5);
  font-size: var(--step-small);
}

.facts dt {
  font-weight: 650;
}

.facts dd {
  margin: 0;
}

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

  .facts dd {
    margin-bottom: var(--s-2);
  }
}

.settings {
  margin-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

.setting {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}

.setting dt {
  font-weight: 650;
}

.setting dd {
  margin: var(--s-1) 0 0;
}

.setting__meta {
  font-size: var(--step-small);
  color: var(--ink-2);
}

.setting__meta span + span::before {
  content: "·";
  margin-inline: 0.45em;
}

.setting__default {
  overflow-wrap: anywhere;
}

.setting__help {
  max-width: 40rem;
}

.setting-note {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--cream-2);
  border-radius: var(--radius);
  font-size: var(--step-small);
}

.tag {
  display: inline-block;
  font-size: var(--step-tiny);
  font-weight: 600;
  line-height: 1.4;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  white-space: nowrap;
}

.group-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.group-list li {
  margin: 0;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: var(--s-1) var(--s-4);
}

@media (min-width: 640px) {
  .group-list li {
    grid-template-columns: 14rem 1fr;
  }
}

.group-list a {
  font-weight: 650;
}

.group-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step-small);
}

/* ------------------------------------------------------------ questions */

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

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-4) 2.5rem var(--s-4) 0;
  position: relative;
  font-weight: 650;
  min-height: 44px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--s-2);
  top: var(--s-3);
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
}

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

.faq summary:hover {
  color: var(--gold);
}

.faq .answer {
  padding-bottom: var(--s-5);
}

.faq .answer > :first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------ search */

.results {
  list-style: none;
  padding: 0;
}

.results li {
  margin: 0;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}

.results a {
  font-weight: 650;
  font-size: 1.1rem;
}

.results p {
  margin: var(--s-1) 0 0;
  font-size: var(--step-small);
  color: var(--ink-2);
}

.results mark {
  background: var(--straw);
  color: var(--ink);
  padding: 0 0.1em;
}

.search-page .search-form input {
  flex: 1;
  width: auto;
  border-color: var(--field);
}

.search-page .search-form button {
  color: var(--on-slate);
  background: var(--slate);
  border-color: var(--slate);
}

/* ------------------------------------------------------------ forms */

.form {
  margin-top: var(--s-6);
}

.field {
  margin-top: var(--s-5);
}

.field > label,
.field > legend,
.label {
  display: block;
  font-weight: 650;
  padding: 0;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-2);
}

.hint {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--step-small);
  color: var(--ink-2);
}

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  margin-top: var(--s-2);
  min-height: 48px;
  font: inherit;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-3);
}

.textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.5;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--ink);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"],
.files:has(input[aria-invalid="true"]),
.choices:has(+ .error:not(:empty)) .choice {
  border-color: var(--error);
  border-width: 2px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choices {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fffdf8;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--field);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice input {
  margin: 0.3rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--slate);
  flex: none;
}

.choice span {
  line-height: 1.45;
}

.choice small {
  display: block;
  color: var(--ink-2);
  font-size: var(--step-small);
}

.error {
  display: block;
  margin-top: var(--s-2);
  color: var(--error);
  font-weight: 600;
  font-size: var(--step-small);
}

.error:empty {
  display: none;
}

.error::before {
  content: "! ";
  font-weight: 800;
}

.files {
  margin-top: var(--s-2);
  border: 1px dashed var(--field);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: var(--s-4);
}

.files[data-over] {
  border-style: solid;
  border-color: var(--ink);
  background: var(--cream-2);
}

.files input[type="file"] {
  font: inherit;
  font-size: var(--step-small);
  max-width: 100%;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
}

.file-list:empty {
  display: none;
}

.file-list li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--step-small);
  overflow-wrap: anywhere;
}

.file-list button {
  font: inherit;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  min-height: 36px;
  min-width: 44px;
  padding: 0 var(--s-3);
  cursor: pointer;
  flex: none;
}

.file-list button:hover {
  background: var(--cream-2);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary-box {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: #fbf1ec;
}

.summary-box:focus {
  outline: 3px solid var(--error);
  outline-offset: 2px;
}

.summary-box h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.summary-box ul {
  margin-top: var(--s-2);
}

.summary-box a {
  color: var(--error);
  font-weight: 600;
}

.sent {
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--done);
  background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sent:focus {
  outline: 3px solid var(--done);
  outline-offset: 2px;
}

.sent h2 {
  margin: 0;
}

.status {
  margin-top: var(--s-3);
  font-weight: 600;
}

/* The support page: the form, and what happens next beside it */
.support-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 960px) {
  .support-grid {
    grid-template-columns: minmax(0, 40rem) minmax(0, 20rem);
    gap: var(--s-8);
  }
}

.support-aside {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}

@media (min-width: 960px) {
  .support-aside {
    position: sticky;
    top: var(--s-5);
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 0 0 0 var(--s-6);
    margin-top: var(--s-6);
  }
}

.support-aside h2 {
  font-size: 1.6rem;
  margin-top: var(--s-6);
}

.support-aside h2:first-child {
  margin-top: 0;
}

.support-aside .steps {
  font-size: var(--step-small);
}

/* ------------------------------------------------------------ footer */

.site-foot {
  background: var(--slate);
  color: var(--on-slate);
  margin-top: auto;
}

.site-foot__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s-7) var(--margin) var(--s-6);
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.site-foot h2 {
  font-family: var(--font-body);
  font-size: var(--step-tiny);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--straw);
  margin: 0 0 var(--s-3);
}

.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-foot li + li {
  margin-top: var(--s-1);
}

.site-foot a {
  color: var(--on-slate);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem;
}

.site-foot a:hover {
  color: var(--straw);
  text-decoration: underline;
}

.site-foot__brand p {
  color: var(--on-slate-2);
  font-size: var(--step-small);
  margin-top: var(--s-2);
}

.site-foot__brand .brand__name {
  display: block;
}

.site-foot__base {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s-4) var(--margin) var(--s-6);
  border-top: 1px solid var(--slate-rule);
  font-size: var(--step-tiny);
  color: var(--on-slate-2);
}

.site-foot__base p {
  margin: 0;
}

/* ------------------------------------------------------------ print and forced colours */

@media print {
  .site-head,
  .site-foot,
  .side,
  .toc,
  .skip {
    display: none;
  }

  .frame {
    display: block;
    padding: 0;
  }

  a {
    color: inherit;
  }
}

@media (forced-colors: active) {
  .steps > li::before,
  .card,
  .preset,
  .callout,
  .setting-note,
  .shot,
  .decide,
  .tag {
    border: 1px solid CanvasText;
  }

  .site-nav a[aria-current],
  .side a[aria-current] {
    text-decoration: underline;
  }
}
