/*
 * arbor.graphide.com: one sheet for every page.
 *
 * The page is a leaf of the same folio as the plate: the plate's own ground,
 * EB Garamond with its small capitals and old-style figures, italic captions,
 * hairlines, and one accent (the landmark rings). The films are 1920 by 1200
 * on this same ground, so a figure needs no frame: the plate sits on the page.
 */

:root {
  color-scheme: dark;
  --ground: #0a1218;
  --ink: #bcc6cd;
  --muted: #75838b;
  --ring: #4fa396;
  --ring-wash: rgba(79, 163, 150, 0.12);
  --hair: rgba(188, 198, 205, 0.13);
  --hair-2: rgba(188, 198, 205, 0.3);
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --gutter: clamp(16px, 3.4vw, 56px);
  --column: 1180px;
  --plate: 1720px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17.5px, 15.5px + 0.32vw, 20.5px);
  line-height: 1.5;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

p,
h1,
h2,
h3,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: #dde4e8;
  text-decoration-color: var(--ring);
}

:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 4px;
}

::selection {
  background: rgba(79, 163, 150, 0.32);
  color: #eef3f5;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Type -------------------------------------------------------------- */

/* "Plate VI", "Landmarks": a capital and small capitals, spaced, in grey. */
.smcp {
  font-variant-caps: small-caps;
  letter-spacing: 0.09em;
  font-weight: 400;
}

/* All small capitals: the running head, labels. */
.c2sc {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
}

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

.fig-no {
  font-style: italic;
  margin-right: 0.35em;
}

.tnum {
  font-variant-numeric: oldstyle-nums tabular-nums;
}

.title {
  font-weight: 400;
  font-size: clamp(44px, 26px + 4.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: #c9d2d8;
  text-wrap: balance;
}

.species {
  font-style: italic;
  color: var(--muted);
}

.lede {
  font-size: 1.14em;
  line-height: 1.45;
  max-width: 31em;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.2em;
  color: var(--muted);
}

.section-head p {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92em;
}

/* ---- Frame: running head, column, colophon ------------------------------ */

.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-plate {
  width: 100%;
  max-width: calc(var(--plate) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.running-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-block: 18px 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.9em;
  color: var(--muted);
}

.running-head .home {
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.22em;
}

.running-head .home:hover {
  color: #dde4e8;
}

.running-head .folio {
  font-style: italic;
  margin-left: 0.9em;
}

.running-head nav {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  align-items: baseline;
}

.running-head nav a,
.running-head nav button {
  color: var(--muted);
  text-decoration: none;
}

.running-head nav a:hover,
.running-head nav button:hover {
  color: var(--ink);
}

.running-head [data-who] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  min-width: 0;
}

.running-head .who {
  font-style: italic;
  max-width: 22em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  font-variant-caps: inherit;
}

.link-button.c2sc {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
}

.colophon {
  margin-top: clamp(72px, 10vw, 140px);
  padding-block: 28px 40px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.92em;
}

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: end;
}

.colophon h2 {
  font-size: 1em;
  margin-bottom: 6px;
}

.colophon p {
  max-width: 40em;
  font-style: italic;
  text-wrap: pretty;
}

.drawn-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-style: normal;
  white-space: nowrap;
}

.drawn-by svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.drawn-by span {
  text-decoration: underline;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.2em;
}

.drawn-by:hover span {
  text-decoration-color: var(--ring);
}

/* ---- Buttons and the planting form -------------------------------------- */

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.3em 1.25em 0.4em;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: transparent;
  color: var(--ring);
  font: inherit;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  font-size: 1.05em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.button:hover {
  background: var(--ring-wash);
  color: #8fd0c4;
}

.button:active {
  background: var(--ring);
  color: var(--ground);
}

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

.quiet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

/* Keep and share, in two columns: the film's file and its link, then where to post it. */
.quiet-actions.pairs {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 0 clamp(24px, 3vw, 40px);
  justify-content: start;
}

.quiet {
  color: var(--ink);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.quiet.link-button {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.2em;
}

.quiet:hover {
  text-decoration-color: var(--ring);
}

.plant {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.plant label {
  color: var(--muted);
  font-size: 0.95em;
}

.plant-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.plant input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--hair-2);
  border-radius: 0;
  background: transparent;
  color: #dce3e7;
  font: inherit;
  font-size: 1.28em;
  line-height: 1.3;
  padding: 6px 0 7px;
  outline: none;
  transition: border-color 150ms ease;
}

.plant input::placeholder {
  color: var(--muted);
  font-style: italic;
  opacity: 1;
}

.plant input:focus {
  border-bottom: 2px solid var(--ring);
  padding-bottom: 6px;
}

.plant-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92em;
  text-wrap: pretty;
}

.notice {
  border-left: 1px solid var(--ring);
  padding: 2px 0 2px 14px;
  text-wrap: pretty;
}

.notice p + p {
  margin-top: 6px;
}

.notice .detail {
  color: var(--muted);
  font-style: italic;
}

.notice[data-tone="error"] {
  border-left-color: #c98a72;
}

/* ---- Plates: a film, a frame or a proof on the page's own ground --------- */

/*
 * A decoded film's ground is a level off the page's, and a scaled frame picks
 * up a dark hairline at its edge. The plate fades out at its four edges so
 * neither shows: two ramps, intersected. The fade stops short of the plate's
 * own marginalia.
 */
.plate {
  --fade: linear-gradient(to right, transparent, #000 1.4%, #000 98.6%, transparent),
    linear-gradient(to bottom, transparent, #000 2.2%, #000 97.8%, transparent);
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1200;
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: var(--fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade);
  mask-composite: intersect;
}

.plate > video,
.plate > img,
.plate > svg,
.plate > .frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 700ms ease;
}

.plate-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 14px;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95em;
}

.plate-cap .cap-text {
  max-width: 46em;
  text-wrap: pretty;
}

.plate-cap .cap-text b {
  font-weight: 400;
  color: var(--ink);
}

/* ---- Landing ----------------------------------------------------------- */

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: end;
  padding-block: clamp(32px, 3.6vw, 60px) clamp(24px, 2.6vw, 40px);
}

.masthead-text {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.masthead .eyebrow {
  color: var(--muted);
  font-size: 1em;
}

.hero {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero .plate {
  /* As large as the screen allows, and never taller than it. */
  width: min(100%, calc((100svh - 64px) * 1.6));
}

.hero-cap {
  width: min(100%, calc((100svh - 64px) * 1.6));
  margin-inline: auto;
}

.plate-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-style: normal;
}

.plate-index button {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.plate-index button:hover {
  color: var(--ink);
}

.plate-index button[aria-pressed="true"] {
  color: var(--ink);
}

.plate-index .numeral {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  font-style: italic;
  font-size: 0.9em;
}

.plate-index .numeral svg {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
  transform: rotate(-90deg);
  overflow: visible;
}

.plate-index .numeral circle {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.plate-index .numeral .track {
  stroke: transparent;
}

.plate-index .numeral .run {
  stroke: transparent;
}

.plate-index button[aria-pressed="true"] .numeral {
  color: var(--ring);
}

.plate-index button[aria-pressed="true"] .track {
  stroke: rgba(79, 163, 150, 0.22);
}

.plate-index button[aria-pressed="true"] .run {
  stroke: var(--ring);
}

.plate-index .pause {
  color: var(--muted);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  margin-left: 6px;
}

/* How it is drawn: the plate's own figures. */
.how {
  padding-top: clamp(24px, 4vw, 56px);
}

.figures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px clamp(20px, 3vw, 44px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.figures figure {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
}

.figures svg {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: visible;
}

.figures figcaption {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.4;
  text-wrap: pretty;
}

.figures .ink {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.figures .faint {
  stroke: var(--ink);
  opacity: 0.5;
  fill: none;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.figures .green {
  stroke: var(--ring);
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.figures .green-fill {
  fill: #12302c;
  stroke: var(--ring);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.figures text {
  fill: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}

.figures text.ring-n {
  fill: var(--ring);
  font-size: 15px;
  text-anchor: middle;
  dominant-baseline: central;
}

.prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(32px, 5vw, 72px);
}

.prose p {
  text-wrap: pretty;
  hyphens: auto;
}

.prose p:first-child::first-letter {
  float: left;
  font-size: 3.35em;
  line-height: 0.82;
  padding: 0.06em 0.08em 0 0;
  color: #c9d2d8;
}

/* The herbarium: one sheet per tree. */
.herbarium {
  padding-top: clamp(64px, 9vw, 120px);
}

.sheets {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 34px);
}

.sheet a {
  display: grid;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sheet .plate {
  aspect-ratio: 5 / 4;
}

.sheet .plate > img,
.sheet .plate > video {
  object-fit: cover;
  object-position: 49% 42%;
  transform: scale(1.001);
  transition: opacity 400ms ease;
}

/* A sheet is ruled, not faded: its hairline frames the cut. */
.sheet .plate {
  -webkit-mask-image: none;
  mask-image: none;
  outline: 1px solid var(--hair);
  outline-offset: -1px;
  transition: outline-color 200ms ease;
}

.sheet a:hover .plate,
.sheet a:focus-visible .plate {
  outline-color: var(--hair-2);
}

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

.sheet-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  align-items: baseline;
}

.sheet-no {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85em;
  min-width: 1.6em;
}

.sheet-name {
  font-size: 1.12em;
  line-height: 1.2;
  color: #c9d2d8;
}

.sheet a:hover .sheet-name {
  color: #e2e9ec;
}

.sheet-species {
  grid-column: 2;
  font-style: italic;
  color: var(--muted);
  font-size: 0.92em;
}

.sheet-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86em;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.empty-line {
  font-style: italic;
  color: var(--muted);
}

/* ---- Specimen page ------------------------------------------------------ */

.specimen-head {
  display: grid;
  gap: 10px;
  padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3.5vw, 40px);
}

.specimen-head .eyebrow {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.specimen-head .eyebrow a {
  text-decoration: none;
}

.specimen-head .eyebrow a:hover {
  color: var(--ink);
}

.specimen-head .title {
  min-height: 1em;
  overflow-wrap: anywhere;
}

.specimen-head .species {
  font-size: 1.3em;
  min-height: 1.5em;
}

.specimen-plate .plate {
  width: min(100%, calc((100svh - 120px) * 1.6));
}

.specimen-plate .plate-cap {
  width: min(100%, calc((100svh - 120px) * 1.6));
  margin-inline: auto;
}

/* Until the film exists, the state reads first and the proof hangs below it. */
.state {
  display: grid;
  gap: 22px;
  padding-bottom: clamp(32px, 4.4vw, 60px);
}

.state .plant {
  max-width: 40em;
}

.state-line {
  font-size: clamp(1.25em, 1em + 1vw, 1.7em);
  line-height: 1.25;
  text-wrap: balance;
}

.state-line em {
  color: var(--muted);
}

.state-sub {
  color: var(--muted);
  font-style: italic;
  max-width: 36em;
  text-wrap: pretty;
}

.progress {
  position: relative;
  height: 1px;
  background: var(--hair);
  overflow: visible;
}

.progress span {
  position: absolute;
  left: 0;
  top: -0.5px;
  height: 2px;
  width: 100%;
  background: var(--ring);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}

.stages {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  counter-reset: none;
}

.stages li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  color: var(--muted);
  opacity: 0.6;
}

.stages li .st-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: italic;
  font-size: 0.85em;
  border: 1px solid transparent;
}

.stages li .st-name {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.13em;
  font-size: 1.02em;
}

.stages li[data-at="past"] {
  opacity: 1;
  color: var(--ink);
}

.stages li[data-at="now"] {
  opacity: 1;
  color: var(--ink);
}

.stages li[data-at="now"] .st-ring {
  border-color: var(--ring);
  color: var(--ring);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    border-color: rgba(79, 163, 150, 1);
  }
  50% {
    border-color: rgba(79, 163, 150, 0.3);
  }
}

.leave-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92em;
  text-wrap: pretty;
}

.leave-note .link-button {
  margin-left: 0.3em;
  font-style: normal;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.leave-note .link-button:hover {
  text-decoration-color: var(--ring);
}

/* Done: the actions, the label and the landmarks. */
.done-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 80px);
  padding-top: clamp(32px, 4vw, 52px);
  align-items: start;
}

.actions {
  display: grid;
  gap: 14px;
  padding-top: 26px;
}

.actions .copied {
  font-style: italic;
  color: var(--ring);
  font-size: 0.9em;
}

/* Email me it: with the waiting tree, then ruled off under the actions. */
.state .notify {
  padding-top: 4px;
}

.actions .notify {
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.actions .notify input {
  font-size: 1.12em;
}

/* A herbarium label: the specimen's particulars, ruled. */
.label {
  border: 1px solid var(--hair-2);
  padding: 18px 20px 20px;
  display: grid;
  gap: 4px;
}

.label-head {
  text-align: center;
  color: var(--muted);
  font-size: 0.92em;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}

.label dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
}

.label dt {
  color: var(--muted);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.13em;
  font-size: 0.95em;
}

.label dd {
  overflow-wrap: anywhere;
}

.label dd i {
  color: var(--muted);
}

.landmarks-head {
  color: var(--muted);
  font-size: 1.05em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}

.landmarks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.landmarks li {
  display: grid;
  grid-template-columns: 1.6em 6.6em minmax(0, 1fr);
  gap: 0 14px;
  align-items: baseline;
  line-height: 1.38;
}

.lm-n {
  color: var(--muted);
  font-size: 0.9em;
}

.lm-date {
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
}

.lm-text {
  font-style: italic;
  color: var(--muted);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.lm-text b {
  font-weight: 600;
  color: var(--ink);
}

.lm-branch {
  display: block;
  font-style: normal;
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.85;
}

.no-landmarks {
  font-style: italic;
  color: var(--muted);
}

/* The proof: the plate's furniture and a sapling that draws itself. */
.proof path {
  fill: none;
}

.proof .pf-soil path {
  stroke: var(--ink);
  stroke-opacity: 0.08;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.proof .pf-ground path {
  stroke: var(--ink);
  stroke-opacity: 0.55;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.proof .pf-ground .pf-grass {
  stroke-opacity: 0.38;
}

.proof text {
  font-family: var(--serif);
  fill: var(--muted);
}

.proof .pf-cap {
  font-style: italic;
  font-size: 22px;
  fill: #9aa6ad;
}

.proof .pf-kicker {
  font-variant-caps: small-caps;
  letter-spacing: 0.09em;
  font-size: 24px;
}

.proof .pf-title {
  font-size: 42px;
  fill: #c9d2d8;
}

.proof .pf-note {
  font-style: italic;
  font-size: 19px;
}

.proof .pf-outer path,
.proof .pf-inner path,
.proof .pf-bark path,
.proof .pf-roots path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  stroke-linecap: butt;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.proof .pf-outer path {
  stroke: var(--ink);
  stroke-opacity: 0.78;
}

.proof .pf-inner path {
  stroke: var(--ground);
}

.proof .pf-bark path {
  stroke: var(--ink);
  stroke-opacity: 0.3;
  stroke-width: 1.3;
}

.proof .pf-roots path {
  stroke: var(--ink);
  stroke-opacity: 0.5;
}

.proof path.on {
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

.proof .pf-leaves path {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-opacity: 0.8;
  opacity: 0;
  transition: opacity 1s ease;
}

.proof .pf-leaves path.on {
  opacity: 1;
}

.proof .pf-seed {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.proof .pf-seed.on {
  opacity: 1;
}

.proof .pf-seed path {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-opacity: 0.78;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.proof .pf-seed .pf-radicle {
  fill: none;
  stroke-opacity: 0.5;
  stroke-width: 1.2;
}

.plate > .proof,
.plate > .frames,
.plate > video {
  transition: opacity 900ms ease;
}

/* ---- The sign-in page ---------------------------------------------------- */

.auth-main {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 48px var(--gutter);
}

.auth-card {
  max-width: 30em;
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}

.auth-card .state-line {
  font-style: italic;
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 1080px) {
  .figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .done-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose {
    grid-template-columns: minmax(0, 1fr);
  }

  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }
}

@media (max-width: 640px) {
  .running-head .folio {
    display: none;
  }

  /* The plate runs to the edges of a phone: its ground is the page's. */
  .bleed {
    margin-inline: calc(-1 * var(--gutter));
  }

  .bleed .plate,
  .hero .plate,
  .specimen-plate .plate {
    width: 100%;
  }

  .bleed .plate-cap,
  .bleed .hero-cap {
    padding-inline: var(--gutter);
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .figures figure:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }

  .sheets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .sheet-label {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-no {
    display: none;
  }

  .sheet-species,
  .sheet-meta {
    grid-column: 1;
  }

  .sheet-name {
    font-size: 1em;
  }

  .sheet-species {
    font-size: 0.86em;
  }

  .sheet-meta {
    font-size: 0.8em;
  }

  .plant-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .plant .button {
    align-self: flex-start;
  }

  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landmarks li {
    grid-template-columns: 1.4em minmax(0, 1fr);
  }

  .lm-date {
    grid-column: 2;
  }

  .lm-text {
    grid-column: 2;
  }

  .colophon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
