:root {
  --ink: #151410;
  --paper: #f4f0e5;
  --stone: #d0c5b7;
  --soft: #e8e1d4;
  --mist: #d5dbd2;
  --moss: #314037;
  --black: #11110e;
  --white: #fbf6ea;
  --muted: #6a6055;
  --line: rgba(21, 20, 16, 0.18);
  --line-strong: rgba(21, 20, 16, 0.42);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sampling-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 62px;
  padding: 0 24px;
  background: rgba(244, 240, 229, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sampling-header nav,
.sampling-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

.sampling-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 660px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 54px 42px 68px;
  background: var(--stone);
}

.hero-copy span,
.section-heading span,
.decision-grid span,
.source-head span {
  color: rgba(21, 20, 16, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: 68px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.hero-copy p,
.decision-grid p,
.reference-grid p,
.reference-grid li,
.spec-grid p,
.factory-grid p,
.route-row span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.hero-concept {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 660px;
  margin: 0;
  padding: 22px;
  background: var(--black);
  border-left: 1px solid var(--line);
}

.hero-concept img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(251, 246, 234, 0.18);
}

.hero-concept figcaption {
  margin: 0;
  color: rgba(251, 246, 234, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.decision-section,
.concept-section,
.reference-section,
.spec-section,
.tag-section,
.factory-section,
.candidate-section {
  padding: 72px 24px;
  border-bottom: 1px solid var(--line);
}

.concept-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.concept-notes article {
  min-height: 160px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.concept-notes article:last-child {
  border-right: 0;
}

.concept-notes h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.concept-notes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.decision-grid,
.reference-grid,
.spec-grid,
.tag-detail-grid,
.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.decision-grid article,
.reference-grid article,
.spec-grid article,
.tag-detail-grid article,
.factory-grid article {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.decision-grid article:nth-child(2),
.reference-grid article:nth-child(2),
.spec-grid article:nth-child(2),
.tag-detail-grid article:nth-child(3) {
  background: var(--mist);
}

.decision-grid article:last-child,
.reference-grid article:last-child,
.spec-grid article:last-child,
.tag-detail-grid article:last-child,
.factory-grid article:last-child {
  border-right: 0;
}

.decision-grid strong,
.source-head strong {
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.source-head {
  display: grid;
  gap: 10px;
}

.reference-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.reference-grid a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.reference-links {
  align-self: end;
  display: grid;
  gap: 10px;
}

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

.spec-grid h3,
.tag-detail-grid h3,
.factory-grid h3 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.tag-detail-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.tag-detail-grid .tag-visual-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(32deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 7px),
    linear-gradient(112deg, rgba(21, 20, 16, 0.08) 0 1px, transparent 1px 8px),
    var(--stone);
}

.tag-neckline {
  position: absolute;
  top: -8px;
  left: 28px;
  width: 164px;
  height: 72px;
  border: 12px solid rgba(21, 20, 16, 0.18);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.24),
    0 6px 18px rgba(21, 20, 16, 0.08);
  opacity: 0.78;
}

.rubber-patch {
  display: grid;
  gap: 1px;
  place-items: center;
  width: 138px;
  height: 38px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 40%),
    #070706;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    0 16px 26px rgba(21, 20, 16, 0.32);
  transform: rotate(-13deg);
}

.rubber-patch strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.rubber-patch small {
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.tag-visual-card p {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  margin-bottom: 0;
  color: rgba(21, 20, 16, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.factory-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.query-list {
  display: grid;
  gap: 10px;
}

code {
  display: block;
  padding: 12px;
  color: var(--white);
  background: var(--moss);
  border: 1px solid rgba(251, 246, 234, 0.18);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.route-table {
  display: grid;
  border: 1px solid var(--line);
}

.route-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1fr;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row > * {
  display: grid;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.route-row > *:last-child {
  border-right: 0;
}

.route-head {
  min-height: 48px;
  color: rgba(21, 20, 16, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-row strong {
  font-size: 16px;
}

.route-row.priority {
  background: var(--mist);
}

.sampling-footer {
  justify-content: space-between;
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  color: var(--white);
  background: var(--black);
}

.sampling-footer a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1120px) {
  .sampling-hero,
  .decision-grid,
  .concept-notes,
  .reference-grid,
  .spec-grid,
  .tag-detail-grid,
  .factory-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid article,
  .reference-grid article,
  .spec-grid article,
  .tag-detail-grid article,
  .factory-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-grid article:last-child,
  .reference-grid article:last-child,
  .spec-grid article:last-child,
  .tag-detail-grid article:last-child,
  .factory-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .sampling-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .sampling-header nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-copy,
  .decision-section,
  .concept-section,
  .reference-section,
  .spec-section,
  .tag-section,
  .factory-section,
  .candidate-section {
    padding: 44px 18px;
  }

  h1,
  .section-heading h2 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-concept {
    min-height: auto;
    padding: 18px;
  }

  .concept-notes {
    grid-template-columns: 1fr;
  }

  .concept-notes article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .concept-notes article:last-child {
    border-bottom: 0;
  }

  .route-row,
  .route-head {
    grid-template-columns: 1fr;
  }

  .route-row > * {
    min-height: 50px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-row > *:last-child {
    border-bottom: 0;
  }

  .sampling-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 18px;
  }
}
