@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f3eddf;
  --paper-2: #e8dfcd;
  --paper-3: #fbf7ec;
  --ink: #19170f;
  --ink-soft: #4d473b;
  --muted: #6d6453;
  --rule: #bdb3a0;
  --accent: #e23d1b;
  --accent-deep: #b52c10;
  --blue: #1f3e8f;
  --green: #556a20;
  --ochre: #8f4b19;
  --acid: #dceb77;
  --focus: #1f3e8f;
  --gutter: clamp(20px, 3vw, 44px);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 5px 6px 0 rgba(25, 23, 15, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(25, 23, 15, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 15, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--paper-3);
  background: var(--accent-deep);
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

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

.site-header :focus-visible,
.site-footer :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--acid);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-weight: 800;
}

em {
  font-style: italic;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(243, 237, 223, 0.28);
}

.header-inner {
  width: min(100% - 2 * var(--gutter), 1480px);
  min-height: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--paper);
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.brand-star {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  vertical-align: top;
  transform: translateY(1px);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(243, 237, 223, 0.62);
}

.term-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(243, 237, 223, 0.76);
  white-space: nowrap;
}

.term-star {
  color: var(--accent);
  font-size: 9px;
}

.kit-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(243, 237, 223, 0.5);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.kit-toggle:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.kit-toggle[aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.kit-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kit-count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 1px;
  padding: 0 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0;
}

/* Page grid */

.page-grid {
  width: min(100% - 2 * var(--gutter), 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas:
    "rail hero"
    "rail specimens";
  column-gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

.reg-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.reg-mark::before {
  top: 5.5px;
  left: 0;
  width: 12px;
  height: 1px;
}

.reg-mark::after {
  top: 0;
  left: 5.5px;
  width: 1px;
  height: 12px;
}

/* Hero */

.hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.72fr);
  align-items: start;
  gap: clamp(30px, 3.6vw, 52px);
  padding: 52px 0 58px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(54px, 5.75vw, 84px);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-weight: 850;
  line-height: 0.89;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero-line {
  display: block;
}

.hero h1 em {
  color: var(--accent-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero-intro {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  color: var(--paper-3);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.primary-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.primary-link:hover {
  color: var(--paper);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.primary-link:hover svg {
  transform: translateY(2px);
}

.hero-stat {
  padding-left: 16px;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-plate {
  position: relative;
  align-self: start;
  margin-top: 6px;
  transform: rotate(-1.2deg);
}

.plate-frame {
  position: relative;
  padding: 9px 9px 28px;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: 7px 8px 0 rgba(25, 23, 15, 0.13);
}

.plate-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.plate-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 44% 50%;
  border: 1px solid rgba(25, 23, 15, 0.36);
  filter: saturate(0.92) contrast(1.02);
}

.plate-label {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.plate-seal {
  position: absolute;
  right: -27px;
  bottom: -25px;
  display: grid;
  place-content: center;
  width: 100px;
  height: 100px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 4px 0 rgba(25, 23, 15, 0.16);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(9deg);
}

.plate-seal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.seal-star {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
}

.hero-plate figcaption {
  max-width: 34ch;
  margin: 17px 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* Index panel */

.index-panel {
  grid-area: rail;
  position: sticky;
  top: 76px;
  z-index: 2;
  margin-top: 52px;
  padding: 20px;
  background: rgba(251, 247, 236, 0.82);
  border: 1px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(25, 23, 15, 0.1);
  backdrop-filter: blur(3px);
}

.index-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.index-no {
  color: var(--accent-deep);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.index-panel h2 {
  margin: 14px 0 22px;
  font-size: 32px;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.index-panel h2 em {
  color: var(--accent-deep);
}

.field-group {
  margin-bottom: 17px;
}

.field-group > label,
.field-label {
  display: block;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.field-group > label {
  margin-bottom: 7px;
}

.search-wrap,
.select-wrap {
  position: relative;
}

.search-wrap > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap input,
.select-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
}

.search-wrap input {
  padding-left: 39px;
}

.search-wrap input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.select-wrap select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap input:focus-visible,
.select-wrap select:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.quick-index {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.category-list {
  margin-top: 4px;
}

.category-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 2px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.category-button:hover {
  color: var(--ink);
  background: rgba(25, 23, 15, 0.04);
}

.category-button[aria-pressed="true"] {
  color: var(--accent-deep);
  font-weight: 500;
  border-bottom-color: var(--accent-deep);
}

.category-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-count {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.category-button[aria-pressed="true"] .category-count {
  color: var(--accent-deep);
}

.kit-note {
  margin-top: 18px;
  padding: 11px 12px 12px;
  background: var(--paper-3);
  border: 1px dashed var(--rule);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.kit-note.is-active {
  background: #f8efd9;
  border-color: var(--accent-deep);
  border-style: solid;
}

.kit-note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#railKitCount {
  color: var(--accent-deep);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.03em;
}

#kitNote {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.kit-tags {
  margin-top: 9px;
}

.kit-tags[hidden] {
  display: none;
}

.kit-tag {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: baseline;
  gap: 5px;
  width: 100%;
  padding: 5px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.kit-tag:hover {
  color: var(--accent-deep);
}

.kit-tag-no {
  color: var(--accent-deep);
  font-weight: 500;
}

.kit-tag-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-more {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.how-to {
  margin-top: 18px;
  padding-top: 11px;
  border-top: 1px dotted var(--rule);
}

.how-to ol {
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.how-to li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px;
  padding: 4px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.how-to li span {
  color: var(--accent-deep);
}

/* Specimens */

.specimens {
  grid-area: specimens;
  padding-bottom: 88px;
  scroll-margin-top: 74px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding-top: 21px;
  border-top: 1.5px solid var(--ink);
}

.section-head h2 {
  margin-top: 13px;
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.section-head h2 em {
  color: var(--accent-deep);
}

.results-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-bottom: 3px;
  text-align: right;
}

#resultCount {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.sort-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

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

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s ease;
}

.item.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "top top"
    "plate content";
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

.item.is-featured .item-top {
  grid-area: top;
}

.item-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-no {
  color: var(--accent-deep);
  font-weight: 500;
}

.item-cat {
  display: inline-flex;
  color: var(--cat);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.item-cat svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-date {
  white-space: nowrap;
}

.item-plate {
  position: relative;
  grid-area: plate;
  aspect-ratio: 16 / 10;
  margin: 11px 12px 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--ink);
}

.item.is-featured .item-plate {
  aspect-ratio: auto;
  height: calc(100% - 25px);
  min-height: 360px;
  margin: 0 0 13px 13px;
}

.item-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.item-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 23, 15, 0) 68%, rgba(25, 23, 15, 0.18));
  pointer-events: none;
}

.plate-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 6px;
  background: var(--paper-3);
  border: 1px solid rgba(25, 23, 15, 0.52);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 13px;
}

.item.is-featured .item-content {
  grid-area: content;
  justify-content: center;
  padding: 20px 26px 20px 26px;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.item h3 {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.item.is-featured h3 {
  font-size: clamp(38px, 3.6vw, 50px);
}

.item-price {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--accent-deep);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.item.is-featured .item-price {
  font-size: 28px;
}

.item-instructor {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.item-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item.is-featured .item-summary {
  max-width: 42ch;
  font-size: 15px;
  -webkit-line-clamp: 3;
}

.day-window {
  margin-top: 14px;
}

.day-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(25, 23, 15, 0.24) 0,
    rgba(25, 23, 15, 0.24) 1px,
    transparent 1px,
    transparent 8.3333%
  );
  border: 1px solid var(--rule);
}

.day-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
  background: var(--cat, var(--accent-deep));
}

.day-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.item-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
}

.item-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.examine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.examine svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.item:hover .examine svg {
  transform: translateX(3px);
}

.open-item {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 0;
  color: transparent;
}

.open-item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 4px var(--focus);
}

.item:has(.open-item:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.saved-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 82px;
  height: 82px;
  color: var(--accent-deep);
  background: rgba(251, 247, 236, 0.9);
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-11deg);
  pointer-events: none;
}

.saved-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.saved-stamp[hidden] {
  display: none;
}

.stamp-small {
  display: block;
  font-size: 6px;
}

.stamp-big {
  display: block;
  margin: 1px 0;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.stamping {
  animation: stamp-in 0.38s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(6deg) scale(1.55);
  }
  to {
    opacity: 1;
    transform: rotate(-11deg) scale(1);
  }
}

/* Loading and errors */

.loading-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 18px;
  color: var(--muted);
  border: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.loading-note span {
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 17px;
  animation: loading-turn 2.8s linear infinite;
}

@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}

.load-error {
  grid-column: 1 / -1;
  padding: 40px 28px;
  background: var(--paper-3);
  border: 1.5px dashed var(--ink);
}

.load-error h3 {
  margin: 10px 0 8px;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.load-error > p:last-child {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Empty state */

.empty-state {
  position: relative;
  overflow: hidden;
  padding: 52px 24px 56px;
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 11px,
    rgba(25, 23, 15, 0.035) 11px,
    rgba(25, 23, 15, 0.035) 12px
  );
  border: 1.5px dashed var(--ink);
  text-align: center;
}

.empty-drawer {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state .eyebrow {
  justify-content: center;
  margin-bottom: 11px;
}

.empty-state h3 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.empty-state > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 16px;
  color: var(--paper-3);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.button-primary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary:hover {
  color: var(--paper);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Footer */

.site-footer {
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  width: min(100% - 2 * var(--gutter), 1480px);
  margin: 0 auto;
  padding: 58px 0 26px;
}

.eyebrow-light {
  color: rgba(243, 237, 223, 0.62);
}

.eyebrow-light .reg-mark {
  color: var(--acid);
}

.footer-top h2 {
  max-width: 1000px;
  margin: 18px 0 26px;
  font-size: clamp(54px, 7.2vw, 104px);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.footer-top h2 em {
  color: var(--acid);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 3px;
  color: var(--paper);
  border-bottom: 1px solid rgba(243, 237, 223, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.footer-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}

.footer-link:hover {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.6fr;
  gap: 34px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 237, 223, 0.28);
  color: rgba(243, 237, 223, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.footer-brand > span {
  display: block;
  margin-bottom: 7px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.footer-brand > span span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  vertical-align: top;
}

.footer-end {
  text-align: right;
}

.footer-end p:first-child {
  color: var(--paper);
}

/* Detail dialog */

.detail-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.detail-dialog::backdrop {
  background: rgba(19, 16, 10, 0.68);
  backdrop-filter: blur(2px);
}

.detail-sheet {
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.28);
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.detail-bar > p {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.close-detail svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

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

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: stretch;
}

.detail-plate {
  position: relative;
  min-height: 610px;
  margin: 17px 0 17px 17px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--ink);
}

.detail-plate > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.detail-plate figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 9px;
  background: rgba(251, 247, 236, 0.94);
  border-top: 1px solid rgba(25, 23, 15, 0.45);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-saved-stamp {
  top: 16px;
  right: 16px;
  width: 118px;
  height: 118px;
  font-size: 8px;
}

.detail-saved-stamp .stamp-small {
  font-size: 7px;
}

.detail-saved-stamp .stamp-big {
  margin: 3px 0;
  font-size: 12px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  padding: 32px clamp(28px, 3.1vw, 44px) 32px;
}

.detail-category {
  align-self: flex-start;
  padding: 4px 7px;
  color: var(--cat, var(--accent-deep));
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.detail-content h2 {
  margin: 17px 0 7px;
  font-size: clamp(46px, 4.6vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.detail-instructor {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detail-body-text {
  max-width: 48ch;
  margin: 22px 0 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.56;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1.5px solid var(--ink);
}

.fact {
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--rule);
}

.fact:nth-child(odd) {
  padding-right: 13px;
  border-right: 1px dotted var(--rule);
}

.fact:nth-child(even) {
  padding-left: 13px;
}

.fact dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fact dd {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.35;
}

.detail-day-window {
  margin: 20px 0 22px;
}

.detail-day-window .day-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-day-window .day-track {
  height: 17px;
}

.detail-day-window .day-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(8.3333% - 1px),
    rgba(25, 23, 15, 0.42) calc(8.3333% - 1px),
    rgba(25, 23, 15, 0.42) 8.3333%
  );
  pointer-events: none;
}

.detail-day-window .day-fill {
  opacity: 0.88;
}

.detail-day-window .day-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.detail-day-window .day-times {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-day-window .day-times strong {
  color: var(--accent-deep);
  font-weight: 500;
}

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 12px 16px;
  color: var(--paper-3);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.save-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.save-button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.save-button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.save-button[aria-pressed="true"]:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.detail-note {
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.detail-dialog[open] .detail-sheet {
  animation: sheet-in 0.3s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.detail-dialog[open]::backdrop {
  animation: backdrop-in 0.24s ease;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */

@media (hover: hover) {
  .item:hover {
    transform: translate(-2px, -3px);
    box-shadow: 9px 11px 0 rgba(25, 23, 15, 0.15);
  }

  .item:hover .item-plate img {
    transform: scale(1.025);
  }
}

@media (max-width: 1220px) {
  .page-grid {
    grid-template-columns: 248px minmax(0, 1fr);
    column-gap: 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(62px, 7.2vw, 84px);
  }

  .hero-plate {
    width: min(100%, 540px);
    margin-top: 2px;
    transform: rotate(-0.9deg);
  }

  .plate-frame > img {
    aspect-ratio: 16 / 10;
    object-position: 46% 51%;
  }

  .index-panel {
    margin-top: 46px;
  }

  .item.is-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .term-note {
    display: none;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "rail"
      "specimens";
    column-gap: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
    gap: 36px;
    padding: 44px 0 42px;
  }

  .hero h1 {
    font-size: clamp(56px, 7.1vw, 78px);
  }

  .hero-plate {
    width: 100%;
  }

  .plate-frame > img {
    aspect-ratio: 4 / 5;
  }

  .index-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 26px;
    margin-top: 0;
    margin-bottom: 46px;
    padding: 18px;
  }

  .index-head,
  .index-panel h2 {
    grid-column: 1 / -1;
  }

  .index-panel h2 {
    margin-bottom: 18px;
  }

  .quick-index,
  .kit-note,
  .how-to {
    margin-top: 0;
    padding-top: 12px;
  }

  .quick-index {
    grid-column: 1;
  }

  .kit-note {
    grid-column: 2;
    align-self: start;
  }

  .how-to {
    grid-column: 1 / -1;
  }

  .how-to ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 18px;
  }

  .specimens {
    padding-bottom: 72px;
  }

  .section-head {
    border-top-color: var(--ink);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --shadow: 4px 5px 0 rgba(25, 23, 15, 0.12);
  }

  body {
    background-size: 34px 34px;
  }

  .header-inner {
    min-height: 52px;
    gap: 12px;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-sub {
    display: none;
  }

  .kit-toggle {
    min-height: 32px;
    padding: 0 9px;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .kit-icon {
    width: 14px;
    height: 14px;
  }

  .kit-count {
    min-width: 19px;
    height: 19px;
    font-size: 8.5px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0 30px;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: clamp(42px, 10.8vw, 58px);
    letter-spacing: -0.05em;
  }

  .hero-intro {
    font-size: 15.5px;
    line-height: 1.52;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
  }

  .primary-link {
    padding: 13px 14px;
    font-size: 9.5px;
  }

  .hero-stat {
    padding-left: 13px;
    font-size: 8.5px;
  }

  .hero-plate {
    width: calc(100% - 13px);
    margin: 6px 0 0;
    transform: rotate(-0.8deg);
  }

  .plate-frame {
    padding: 7px 7px 26px;
  }

  .plate-frame > img {
    aspect-ratio: 2 / 1;
    object-position: 45% 52%;
  }

  .plate-seal {
    right: -15px;
    bottom: -23px;
    width: 86px;
    height: 86px;
    font-size: 6px;
  }

  .seal-star {
    font-size: 13px;
  }

  .hero-plate figcaption {
    margin-top: 14px;
    font-size: 8px;
  }

  .index-panel {
    display: block;
    margin-bottom: 34px;
    padding: 15px;
  }

  .index-panel h2 {
    margin: 10px 0 16px;
    font-size: 28px;
  }

  .index-head {
    padding-bottom: 8px;
  }

  .field-group {
    margin-bottom: 15px;
  }

  .quick-index {
    margin-top: 17px;
  }

  .kit-note {
    margin-top: 16px;
  }

  .how-to {
    margin-top: 16px;
  }

  .how-to ol {
    display: block;
  }

  .how-to li {
    padding: 3px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 22px;
    padding-top: 18px;
  }

  .section-head h2 {
    font-size: clamp(36px, 10.4vw, 47px);
  }

  .results-line {
    align-items: flex-start;
    margin-top: 16px;
    padding-bottom: 0;
    text-align: left;
  }

  .specimen-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .item.is-featured {
    display: flex;
    grid-column: auto;
  }

  .item.is-featured .item-plate {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    margin: 11px 12px 0;
  }

  .item.is-featured .item-content {
    display: flex;
    padding: 15px 16px 13px;
  }

  .item.is-featured h3 {
    font-size: 31px;
  }

  .item.is-featured .item-price {
    font-size: 22px;
  }

  .item.is-featured .item-summary {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .item h3 {
    font-size: 29px;
  }

  .saved-stamp {
    width: 76px;
    height: 76px;
  }

  .empty-state {
    padding: 42px 20px 44px;
  }

  .footer-inner {
    padding-top: 44px;
  }

  .footer-top h2 {
    margin: 15px 0 23px;
    font-size: clamp(38px, 10.5vw, 56px);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 38px;
  }

  .footer-end {
    text-align: left;
  }

  .detail-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
  }

  .detail-sheet {
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    box-shadow: none;
  }

  .detail-bar {
    padding: 8px 9px 8px 14px;
  }

  .detail-bar > p {
    font-size: 9px;
  }

  .detail-bar .close-detail span {
    display: none;
  }

  .close-detail {
    padding: 9px;
  }

  .detail-body-grid {
    grid-template-columns: 1fr;
  }

  .detail-plate {
    min-height: 0;
    height: 33vh;
    margin: 12px 12px 0;
  }

  .detail-plate > img {
    object-position: center;
  }

  .detail-plate figcaption {
    font-size: 7.5px;
  }

  .detail-saved-stamp {
    width: 94px;
    height: 94px;
  }

  .detail-content {
    padding: 22px 20px 34px;
  }

  .detail-content h2 {
    margin-top: 14px;
    font-size: clamp(40px, 12vw, 54px);
  }

  .detail-body-text {
    margin: 18px 0 21px;
    font-size: 16px;
  }

  .detail-facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact dd {
    font-size: 14.5px;
  }

  .save-button {
    min-height: 54px;
    font-size: 9.5px;
  }

  .detail-day-window {
    margin: 18px 0 19px;
  }
}

@media (min-width: 961px) {
  .index-panel {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
  }
}

@media (max-height: 900px) and (min-width: 961px) {
  .how-to {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .item:hover {
    transform: none;
  }

  .item:hover .item-plate img {
    transform: none;
  }
}
