:root {
  --ink: #171613;
  --paper: #f5f1e7;
  --soft: #ebe4d7;
  --greige: #d0c4b4;
  --off: #f2eadc;
  --heather: #b8b5ad;
  --black: #141411;
  --charcoal: #2a2925;
  --white: #faf4e8;
  --muted: #665e52;
  --line: rgba(23, 22, 19, 0.18);
  --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;
}

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

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

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

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

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

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

.spec-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.spec-hero > div {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 52px 42px 62px;
  background: var(--greige);
}

.micro {
  margin: 0;
  color: rgba(23, 22, 19, 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: 790px;
  margin-bottom: 0;
  font-size: 68px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.spec-hero p:not(.micro),
.section-title p:not(.micro) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.spec-hero aside {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  color: var(--white);
  background: var(--black);
  text-align: center;
  text-transform: uppercase;
}

.spec-hero aside span {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.spec-hero aside strong {
  font-size: 128px;
  line-height: 0.82;
  letter-spacing: 0.06em;
}

.spec-hero aside small {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.42em;
}

.mark-section,
.ink-section,
.items-section,
.sample-section {
  padding: 72px 24px;
  border-bottom: 1px solid var(--line);
}

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

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

.mark-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.mark-table article {
  display: grid;
  grid-template-rows: 210px auto;
  min-height: 390px;
  border-right: 1px solid var(--line);
  background: var(--soft);
}

.mark-table article:last-child {
  border-right: 0;
}

.mark-table article.dark {
  color: var(--white);
  background: var(--black);
}

.mark-table article.dark img {
  filter: invert(94%) sepia(9%) saturate(393%) hue-rotate(339deg) brightness(106%) contrast(96%);
}

.mark-table img {
  width: 68%;
  align-self: center;
  justify-self: center;
}

.mark-table dl {
  margin: 0;
  padding: 18px;
  border-top: 1px solid currentColor;
}

.mark-table dt {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.mark-table dd {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.mark-table dd:last-child {
  margin-bottom: 0;
}

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

.swatch {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.swatch:last-child {
  border-right: 0;
}

.swatch span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.swatch b {
  font-size: 20px;
  line-height: 1.05;
}

.swatch.greige {
  background: var(--greige);
}

.swatch.off {
  background: var(--off);
}

.swatch.heather {
  background: var(--heather);
}

.swatch.black {
  color: var(--white);
  background: var(--black);
}

.swatch.charcoal {
  color: var(--white);
  background: var(--charcoal);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.item-spec {
  min-height: 330px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.item-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.item-head h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.item-spec ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 20px 24px 24px 38px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.item-spec.swim {
  background: var(--soft);
}

.sample-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.sample-list li {
  display: grid;
  gap: 22px;
  min-height: 220px;
  padding: 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.sample-list li:last-child {
  border-right: 0;
}

.sample-list span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.spec-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

@media (max-width: 1120px) {
  .spec-hero,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .mark-table,
  .ink-grid,
  .sample-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mark-table article:nth-child(2n),
  .ink-grid .swatch:nth-child(2n),
  .sample-list li:nth-child(2n) {
    border-right: 0;
  }
}

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

  .spec-header nav {
    justify-content: flex-start;
  }

  .spec-hero > div,
  .mark-section,
  .ink-section,
  .items-section,
  .sample-section {
    padding: 44px 18px;
  }

  .spec-hero aside {
    min-height: 380px;
  }

  .spec-hero aside strong {
    font-size: 88px;
  }

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

  .mark-table,
  .ink-grid,
  .sample-list {
    grid-template-columns: 1fr;
  }

  .mark-table article,
  .ink-grid .swatch,
  .sample-list li {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .mark-table article:last-child,
  .ink-grid .swatch:last-child,
  .sample-list li:last-child {
    border-bottom: 0;
  }

  .item-head,
  .spec-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
