/* Neutral charcoal page: the artwork is the only color. */
:root {
  --bg: #1c1c1c;
  --ink: #ececec;
  --ink-2: #b4b4b4;
  --rule: #3a3a3a;
  --focus: #ffffff;
  --slab: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gap: 2px;
  --pad: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

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

h1,
h2,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

/* header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
}

.bar-story {
  justify-content: flex-end;
}

.home {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.home-logo {
  width: 168px;
  height: auto;
}

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* button: the only filled object on any page */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--bg);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
}

.button:hover {
  background: #ffffff;
}

/* story */
.story {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px var(--pad) 56px;
}

.story-mark {
  margin: 0 0 28px;
  font-size: 0;
  line-height: 0;
}

.story-logo {
  width: 100%;
  max-width: 760px;
  height: auto;
}

.story-text {
  max-width: 36em;
}

.story-text p {
  font-size: 19px;
  line-height: 1.6;
}

.story-go {
  margin-top: 28px;
}

/* catalog */
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--pad) 14px;
}

.page-head h1 {
  font: 400 30px/1.1 var(--slab);
}

.count {
  font-size: 14px;
  color: var(--ink-2);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.tile {
  display: block;
  height: 100%;
  text-decoration: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.tile-title {
  display: block;
  min-height: calc(2 * 1.35em + 24px);
  padding: 8px 10px 16px;
  font-size: 14px;
  line-height: 1.35;
  color: #dcdcdc;
  overflow-wrap: anywhere;
}

.tile:hover .tile-title {
  color: #ffffff;
  text-decoration: underline;
}

.tile:focus-visible {
  outline-offset: -4px;
}

@media (min-width: 600px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-head {
    padding: 28px 20px 18px;
  }

  .page-head h1 {
    font-size: 36px;
  }
}

@media (min-width: 1200px) {
  .catalog {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* detail */
.plates {
  display: contents;
}

.plate {
  margin-bottom: var(--gap);
}

.plate img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.record {
  max-width: 40em;
  padding: 22px var(--pad) 28px;
}

.record h1 {
  font: 400 26px/1.2 var(--slab);
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.fact .label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fact .value {
  display: block;
  margin-top: 2px;
}

.ask {
  margin-top: 22px;
}

.ask .button {
  display: flex;
  width: 100%;
}

.desc {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.desc p + p {
  margin-top: 0.9em;
}

.desc .bullet {
  margin-top: 0.35em;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.desc p:not(.bullet) + .bullet {
  margin-top: 0.9em;
}

.table-wrap {
  max-width: 100%;
  margin-top: 26px;
  overflow-x: auto;
}

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

.size-guide {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.size-guide caption {
  padding-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-2);
}

.size-guide th,
.size-guide td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.size-guide thead th {
  font-size: 14px;
  color: var(--ink-2);
}

@media (min-width: 960px) {
  .detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 400px;
    gap: var(--gap);
    align-items: start;
  }

  .plate {
    margin: 0;
  }

  .record {
    grid-column: 3;
    grid-row: 1 / span var(--rows);
    max-width: none;
    padding: 28px 24px 32px;
    border-left: 1px solid var(--rule);
  }
}

/* note (404) */
.note {
  max-width: 36em;
  padding: 48px var(--pad);
}

.note h1 {
  font: 400 30px/1.15 var(--slab);
}

.note p {
  margin-top: 14px;
  font-size: 18px;
}

.note p:last-child {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
