@font-face {
  font-family: "Newsreader";
  src: url("../../assets/fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../../assets/fonts/newsreader-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../../assets/fonts/public-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../../assets/fonts/public-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f5f2;
  --ink: #1b1a17;
  --mute: #5f5c56;
  --rule: #ddd9d0;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", "Segoe UI", sans-serif;
}

img { max-width: 100%; }

button { font: inherit; }

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

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

address { font-style: normal; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.45rem; }

.study {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 0.55rem max(1.25rem, env(safe-area-inset-left));
  background: #111;
  color: #f3efe6;
  font: 500 0.75rem/1.4 ui-sans-serif, system-ui, sans-serif;
}

.study p { margin: 0; }

.study nav { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.study a { color: #d9d3c8; }

.study a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.frame { min-width: 0; }

.rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-bottom: 1px solid var(--rule);
}

.brand img {
  display: block;
  height: 54px;
  width: auto;
  background: #fff;
}

.locator { max-width: 16rem; }

.phone a { text-underline-offset: 0.18em; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

.site-nav a { text-decoration: none; }

.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.rail-address {
  display: none;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.5;
}

.main {
  min-width: 0;
  padding: clamp(1.6rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
}

.opening { max-width: 40rem; }

h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.deck {
  max-width: 38rem;
  margin-top: 1.1rem;
  font-size: 1.125rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
}

.facts li:not(:last-child)::after {
  content: "  ·  ";
  color: #b7b2a8;
}

.plate { margin-top: clamp(1.6rem, 4vw, 2.6rem); }

.plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  background: #ddd;
}

.plate figcaption {
  margin-top: 0.45rem;
  color: var(--mute);
  font-size: 0.85rem;
}

.block { margin-top: clamp(2.6rem, 6vw, 4.2rem); }

.label {
  margin-bottom: 0.7rem;
  color: var(--mute);
}

h2 {
  max-width: 18ch;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.prose { max-width: 40rem; }

.prose p { margin-top: 0.9rem; }

.credo {
  margin-top: 1.1rem;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.35;
}

.standards {
  max-width: 40rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.standards div {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.standards dt {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
}

.standards dd {
  margin: 0;
  color: var(--mute);
}

.intro {
  max-width: 36rem;
  margin-top: 0.7rem;
  color: var(--mute);
}

.catalog { margin-top: 0.4rem; border-bottom: 1px solid var(--rule); }

.entry {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.num {
  color: var(--mute);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
}

.entry h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.entry p { margin-top: 0.25rem; color: var(--mute); }

.sample {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  color: var(--ink);
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.kinds { max-width: 40rem; margin-top: 0.9rem; }

.kinds li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}

.kinds li:last-child { border-bottom: 1px solid var(--rule); }

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.marks li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 8.2rem;
  min-height: 5.8rem;
  padding: 0.7rem 0.8rem 0.55rem;
  background: #fff;
  border: 1px solid var(--rule);
}

.marks img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  object-position: left center;
}

.marks span { font-size: 0.8rem; color: var(--mute); }

.close {
  display: grid;
  gap: 1.8rem;
  padding-top: 0.2rem;
}

.close h2 { max-width: 14ch; }

.role { margin-top: 0.45rem; color: var(--mute); }

.close address {
  margin-top: 0.75rem;
  line-height: 1.55;
}

.close address a { text-underline-offset: 0.18em; }

.colophon {
  margin-top: 2.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.92rem;
}

#lightbox {
  width: min(1040px, calc(100vw - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  padding: 0;
  border: 0;
  background: #141210;
  color: #f3efe6;
}

#lightbox::backdrop { background: rgba(8, 7, 6, 0.78); }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  font-family: "Public Sans", "Segoe UI", sans-serif;
}

.lb-cap { font-size: 0.88rem; }

.lb-bar form { margin: 0; }

.lb-bar button {
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(243, 239, 230, 0.45);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 5.5rem);
  object-fit: contain;
  background: #000;
}

@media (min-width: 720px) {
  .standards div {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }

  .entry {
    grid-template-columns: 2.4rem minmax(0, 1fr) 13.5rem;
    gap: 1.25rem;
    align-items: center;
  }

  .kinds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media (min-width: 980px) {
  .frame {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 2.6rem;
    height: calc(100dvh - 2.6rem);
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.6rem 1.4rem 1.4rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    overflow: auto;
  }

  .site-nav { flex-direction: column; gap: 0.45rem; align-items: flex-start; }

  .rail-address {
    display: block;
    margin-top: auto;
  }

  .main { padding: 2.6rem 3.25rem 3.5rem; }

  .close {
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    gap: 2.5rem;
  }
}

@media (max-width: 719px) {
  .site-nav a {
    display: inline-block;
    padding: 0.35rem 0.15rem 0.35rem 0;
  }
}

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

[id] { scroll-margin-top: 3rem; }
