@font-face {
  font-family: DM;
  src: url('./fonts/dm-sans.ttf');
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f3ed;
  color: #202920;
  font-family: DM, system-ui, sans-serif;
  line-height: 1.55;
}
a {
  color: #275643;
  text-underline-offset: 4px;
}
header,
footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 4vw;
  border-bottom: 1px solid #cecfc2;
  font-size: 12px;
  letter-spacing: 0.07em;
}
header a {
  font-weight: 800;
  text-decoration: none;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 48px 4vw;
}
.intro {
  max-width: 850px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 14px;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 24px;
}
.lead {
  font-size: 19px;
  max-width: 670px;
  color: #566052;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
  margin: 10px 0;
}
section {
  margin-top: 46px;
}
.verdict {
  padding: 30px;
  background: #dfe8d6;
  border-left: 4px solid #315f43;
  max-width: 1020px;
}
.verdict p:last-child {
  max-width: 830px;
  margin-bottom: 0;
}
.verdict h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid #d4d6cc;
}
thead th {
  background: #e7e9df;
  font-size: 12px;
}
tbody th {
  font-weight: 500;
  width: 40%;
}
.fine {
  color: #586052;
  font-size: 12px;
  max-width: 1000px;
}
.findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.findings article {
  border-top: 1px solid #a6b29d;
  padding-top: 16px;
}
.findings p {
  font-size: 14px;
  color: #505a4d;
}
.number {
  font-family: Georgia, serif;
  color: #69865c;
  font-size: 28px;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.gallery-heading h2 {
  margin-bottom: 0;
}
.filters {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #f5f3edf5;
  border-bottom: 1px solid #bfc7b7;
  padding: 15px 0;
  margin-top: 20px;
  backdrop-filter: blur(12px);
}
button,
select {
  font: inherit;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid #a8b29f;
  background: #fafbf6;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
}
button[aria-pressed='true'] {
  background: #294e38;
  color: white;
  border-color: #294e38;
}
button:hover,
a:hover {
  filter: brightness(0.85);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #4e76af;
  outline-offset: 3px;
}
.filters label {
  font-size: 12px;
}
.case {
  padding: 28px 0 36px;
  border-bottom: 1px solid #c7cec0;
}
.case-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.case-head h3 {
  margin: 0;
}
.case-head p {
  margin: 5px 0;
  font-size: 12px;
  color: #56614e;
}
.case-head a {
  font-size: 12px;
}
.case-actions {
  display: flex;
  gap: 10px;
  align-items: start;
  flex-wrap: wrap;
}
.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.shot {
  margin: 0;
  min-width: 0;
}
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  background: #e3e5db;
  border: 1px solid #c5cabd;
  border-radius: 6px;
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0;
}
.tag {
  font-size: 10px;
  font-weight: 500;
  background: #e4e8db;
  padding: 3px 6px;
  border-radius: 3px;
}
.tag.material {
  background: #f2dfcf;
  color: #713d1f;
}
.review {
  font-size: 12px;
  color: #505a4d;
  margin-top: 10px;
  min-height: 3em;
}
.mobile .screens {
  max-width: 900px;
}
.methods {
  border-top: 2px solid #aab79e;
  padding-top: 28px;
  max-width: 1050px;
}
.methods p {
  font-size: 14px;
}
.methods nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
}
footer {
  border-top: 1px solid #cecfc2;
  border-bottom: 0;
}
dialog {
  border: 1px solid #aeb7a6;
  border-radius: 8px;
  background: #f5f3ed;
  color: inherit;
  width: min(1500px, 96vw);
  max-height: 94vh;
  padding: 18px;
}
dialog::backdrop {
  background: #132016bb;
}
dialog form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
#overlay-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 14px;
}
#overlay-controls[hidden] {
  display: none;
}
#image-stage {
  position: relative;
  margin: auto;
  width: 100%;
}
#image-stage img {
  display: block;
  width: 100%;
}
#comparison {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
#divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px solid #e95936;
  pointer-events: none;
}
#divider-handle {
  position: absolute;
  top: 50%;
  left: -1px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #e95936;
  border-radius: 50%;
  background: #fffdf7;
  color: #294e38;
  box-shadow: 0 2px 10px #13201640;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}
#divider-handle:hover,
#divider-handle:active {
  filter: none;
  background: #e7eedd;
}
#full-image {
  display: inline-block;
  font-size: 12px;
  margin-top: 12px;
}
@media (max-width: 750px) {
  main {
    padding-top: 30px;
  }
  .findings {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gallery-heading {
    align-items: start;
    gap: 15px;
  }
  .case-head {
    flex-direction: column;
    gap: 7px;
  }
  .screens {
    gap: 7px;
  }
  .shot figcaption {
    align-items: start;
    flex-direction: column;
  }
  .filters {
    gap: 12px;
  }
  .review {
    font-size: 11px;
  }
  .tag {
    font-size: 9px;
  }
  .verdict {
    padding: 22px;
  }
  .verdict h2 {
    font-size: 27px;
  }
  header span {
    max-width: 130px;
    text-align: right;
  }
  .gallery-heading a {
    font-size: 12px;
  }
  th,
  td {
    padding: 10px;
    font-size: 12px;
  }
}

[hidden] {
  display: none !important;
}
