/* Barlow and Source Serif 4, SIL Open Font License, self-hosted. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
}

:root {
  --concrete: #e6e2dc;
  --oxide: #161616;
  --amber: #c47b2b;
  --chalk: #f7f4ef;
  --muted: #4a4742;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Segoe UI", serif;
  --sans: "Barlow", "Segoe UI", Arial, sans-serif;
  --pad: 1.75rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--oxide);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus:not(:focus-visible) { outline: none; }

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

::selection {
  background: var(--amber);
  color: var(--oxide);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--chalk);
  color: var(--oxide);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip:focus { top: 8px; }

.he {
  font-family: "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  letter-spacing: 0;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  min-height: 46px;
  background: var(--oxide);
  color: var(--chalk);
  padding: 0 0.6rem 0 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  padding: 0 0.4rem;
  flex: 0 0 auto;
}

.mark {
  width: 16px;
  height: 8px;
  background: var(--amber);
  display: block;
}

.bar nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.bar nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-variant: all-small-caps;
}

.bar nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.bar nav a:hover::after,
.bar nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.slab {
  position: relative;
  margin: 0;
}

.slab-frame {
  height: min(82vh, 820px);
  min-height: 440px;
  overflow: hidden;
  background: var(--oxide);
}

.slab-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transform: scale(1);
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.slab-frame img.is-scaling { transform: scale(1.06); }
.slab-frame img.is-fading { opacity: 0; }

.slab-copy {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;
  max-width: 26rem;
  background: var(--concrete);
  padding: 1.05rem 1.15rem 1rem;
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.rail {
  position: absolute;
  z-index: 3;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.15rem;
  display: flex;
  gap: 0.15rem;
  padding: 0.55rem 0.45rem 0.4rem;
  background: rgba(230, 226, 220, 0.94);
  border: 1px solid var(--oxide);
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.16);
  overflow-x: auto;
}

.chip {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 1 0 4.6rem;
  padding: 0.35rem 0.4rem 0.3rem;
  text-align: center;
}

.swatch {
  display: block;
  height: 52px;
  margin-bottom: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, 0.35);
  transition: transform 0.35s ease;
}

.swatch.clear {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.08) 42%, rgba(196, 123, 43, 0.35)),
    repeating-linear-gradient(90deg, #cfc9c0 0 6px, #b7b1a8 6px 7px);
}

.chip-name {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.35s ease;
}

.chip[aria-pressed="true"] .swatch {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 1px var(--oxide), 0 0 0 1px var(--amber);
}

.chip[aria-pressed="true"] .chip-name {
  box-shadow: inset 0 -2px 0 var(--amber);
}

.spec {
  padding: 2.6rem var(--pad) 1rem;
}

.spec-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
  max-width: 72rem;
}

.spec-head h2,
.block h2,
.measure h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

#spec-status {
  margin: 0;
  max-width: 18rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.spec-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--oxide);
}

.spec-wrap table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.spec-wrap caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.spec-wrap th,
.spec-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--oxide);
}

.spec-wrap thead th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-wrap tbody th[scope="row"] {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.spec-wrap td {
  font-size: 0.98rem;
}

.spec-wrap .num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

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

.spec-wrap a:hover { text-decoration-color: var(--amber); }

.spec-wrap tbody tr {
  transition: opacity 0.35s ease, background 0.35s ease;
}

.spec-wrap tbody tr.is-on {
  background: var(--chalk);
  box-shadow: inset 3px 0 0 var(--amber);
}

.spec-wrap tbody tr.is-dim { opacity: 0.42; }

.block,
.measure {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.measure {
  max-width: 44rem;
  display: flow-root;
}

.measure p,
.block p { margin: 0 0 1rem; }

.measure h2,
.block h2 { margin: 2rem 0 0.8rem; }

.pull {
  margin: 1.6rem 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--amber);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
}

a { color: inherit; }

.measure a:hover,
.block a:hover,
.colophon a:hover { text-decoration-color: var(--amber); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: start;
  padding: 0.5rem var(--pad) 2.5rem;
}

.split.reverse { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); }
.split.reverse .measure { order: 2; }

.plate { margin: 0; }

.plate-frame {
  overflow: hidden;
  background: var(--oxide);
}

.plate-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s ease;
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

.plate:hover .plate-frame img { transform: scale(1.045); }

figcaption {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

figcaption span {
  color: var(--oxide);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
}

.rates th,
.rates td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--oxide);
}

.rates th {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rates td:last-child,
.rates th:last-child {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.library {
  list-style: none;
  margin: 0;
  padding: 0 var(--pad) 4rem;
}

.library a {
  display: grid;
  grid-template-columns: 3rem 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--oxide);
  text-decoration: none;
  color: inherit;
  font-family: var(--sans);
}

.library li:last-child a { border-bottom: 1px solid var(--oxide); }

.library a span:first-child {
  font-variant-numeric: tabular-nums;
}

.library a span:nth-child(2) {
  letter-spacing: 0.14em;
  font-variant: all-small-caps;
  font-size: 0.95rem;
  box-shadow: inset 0 -2px 0 transparent;
  justify-self: start;
  transition: box-shadow 0.35s ease;
}

.library a:hover span:nth-child(2) {
  box-shadow: inset 0 -2px 0 var(--amber);
}

.library .about {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.sheet-head {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1rem;
  align-items: end;
  margin: 0 var(--pad);
  padding: 2.2rem 0 1.1rem;
  border-bottom: 1px solid var(--oxide);
}

.index-no {
  margin: 0;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.sheet-head h1 { max-width: 18ch; }

.sheet .measure { padding-top: 1.4rem; }

.wide-plate {
  padding: 0.4rem var(--pad) 1.4rem;
  max-width: 72rem;
}

.float-plate {
  float: right;
  width: min(46%, 440px);
  margin: 0.3rem 0 1rem 1.5rem;
}

.board {
  background: var(--oxide);
  color: var(--concrete);
  padding: 1.15rem 1.25rem 1.2rem;
  max-width: 22rem;
  margin: 0.4rem 0 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
}

.board p { margin: 0 0 0.35rem; }
.board p:first-child { color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

.roster {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.roster li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--oxide);
}

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

.roster strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-wrap {
  max-width: 44rem;
  padding: 0 var(--pad) 3rem;
}

.form-wrap h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }

.field label,
.check label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  background: var(--chalk);
  border: 1px solid var(--oxide);
  border-radius: 0;
  padding: 0.65rem 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

textarea { min-height: 7rem; resize: vertical; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
}

.check input { width: auto; margin-top: 0.2rem; }

.btn {
  appearance: none;
  border: 0;
  background: var(--oxide);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { background: var(--amber); color: var(--oxide); }

.btn.ghost {
  background: transparent;
  color: var(--oxide);
  box-shadow: inset 0 0 0 1px var(--oxide);
}

.btn.ghost:hover { background: var(--oxide); color: var(--chalk); }

.note-preview {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  background: var(--chalk);
  border: 1px solid var(--oxide);
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
}

.alert {
  margin: 0.6rem 0 0;
  min-height: 1.2em;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.consent {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--pad);
  background: var(--concrete);
  border-top: 1px solid var(--oxide);
}

.has-consent .consent { display: none; }

.consent p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  max-width: 46rem;
}

.consent-actions { display: flex; gap: 0.45rem; flex: 0 0 auto; }

.colophon {
  background: var(--oxide);
  color: var(--concrete);
  padding: 2rem var(--pad) 1.4rem;
}

.colophon a { color: var(--concrete); }

.colophon-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
}

.colophon .word {
  margin: 0 0 0.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.legal {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(230, 226, 220, 0.35);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal a { text-decoration: none; }
.legal a:hover { box-shadow: inset 0 -2px 0 var(--amber); }

html:not(.has-consent) body { padding-bottom: 5.5rem; }

.hours-line { margin-top: 2rem; }

@media (max-width: 960px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .split,
  .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .measure { order: 0; }
  .spec-head { flex-direction: column; align-items: start; }
  #spec-status { max-width: none; }
}

@media (max-width: 820px) {
  .bar {
    flex-wrap: wrap;
    padding: 0;
  }
  .brand {
    height: 44px;
    padding: 0 0.9rem;
  }
  .bar nav {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid rgba(247, 244, 239, 0.16);
  }
  .bar nav a { height: 40px; white-space: nowrap; }
  .slab-copy {
    position: static;
    max-width: none;
  }
  .slab-frame { min-height: 320px; height: 68vh; }
  .rail { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .float-plate {
    float: none;
    width: auto;
    margin: 0 0 1rem;
  }
  .form-grid,
  .roster li,
  .library a,
  .sheet-head { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
}

@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;
  }
  .slab-frame img,
  .slab-frame img.is-scaling,
  .slab-frame:hover img,
  .plate:hover .plate-frame img,
  .chip[aria-pressed="true"] .swatch {
    transform: none !important;
  }
}
