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

:root {
  --paper: #f4f0e7;
  --ink: #152421;
  --pine: #28513e;
  --rule: #aaa89a;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
}

html { scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.25rem/1.38 var(--serif);
}

a {
  color: var(--pine);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }
p { margin: 0 0 .65em; }

.wrap {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.top {
  min-height: 74px;
  display: flex;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.masthead {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 650;
  line-height: 1.03;
  text-decoration: none;
}

.top nav { display: flex; gap: clamp(.7rem, 3vw, 3rem); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: .91fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 46px);
  padding-block: clamp(32px, 5vw, 50px) 24px;
  border-bottom: 1px solid var(--rule);
}

h1, h2, h3 {
  color: inherit;
  font-family: var(--serif);
  letter-spacing: -.025em;
}

h1 {
  margin: 0 0 .45em;
  font-size: clamp(3rem, 4.85vw, 4.15rem);
  line-height: .94;
  font-weight: 455;
}

.hero p { max-width: 43ch; }
.hero-link {
  display: inline-block;
  margin-top: .35rem;
  font-size: 1.32rem;
  font-weight: 640;
}

.hero-photo { margin: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.comparison { padding-block: 36px 30px; }
h2 {
  margin: 0 0 .4em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 480;
}

.comparison > p { max-width: 78ch; }
.compare-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--rule);
  margin-block: 1rem;
}
.compare-table thead th { font-weight: 620; }
.compare-table th, .compare-table td {
  vertical-align: middle;
  padding: .5rem .48rem;
}
.compare-table tbody th { width: 23%; }

.compare-table .form-control {
  display: inline-block;
  width: min(8rem, 100%);
  min-height: 44px;
  color: var(--ink);
  background: #fbf8ef;
  border: 1px solid #9b9b8e;
  border-radius: 2px;
  font: 550 1.1rem/1.3 var(--serif);
  font-variant-numeric: tabular-nums;
}

.compare-table .form-control:focus {
  box-shadow: 0 0 0 .16rem #28513e36;
  border-color: var(--pine);
}

.compare-action { display: flex; align-items: baseline; gap: 12px 18px; flex-wrap: wrap; }
.compare-action .btn {
  --bs-btn-bg: var(--pine);
  --bs-btn-color: white;
  --bs-btn-border-color: var(--pine);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-color: white;
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-color: white;
  --bs-btn-active-border-color: var(--ink);
  min-height: 43px;
  padding: .5rem 1.1rem;
  font: 570 1.23rem/1.25 var(--serif);
}
.compare-action output { font-weight: 610; }

.method {
  border: 1px solid var(--rule);
  padding: clamp(18px, 3vw, 30px);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  margin-top: 1.25rem;
}
.method-grid section + section {
  border-left: 1px solid var(--rule);
  padding-left: clamp(14px, 2.4vw, 28px);
}
h3 { margin: 0 0 .4em; font-size: 1.38rem; line-height: 1.05; font-weight: 670; }
.method p { margin: 0; }
.method .checklist {
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.source {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 26px 20px;
  font-size: 1.08rem;
}
.source p { margin: 0; }
.source img { width: 38px; height: auto; flex-shrink: 0; }

.site-footer:not(:empty) {
  border-top: 1px solid var(--rule);
  padding-block: 16px 26px;
}
#mesure #spybox-mesure-preferences {
  position: static;
  max-width: none;
  font: 1.05rem/1.4 var(--serif);
}
#mesure #spybox-mesure-preferences .mesure-toggle {
  background: transparent;
  padding-inline: 0;
  color: var(--pine);
  border: 0;
  text-decoration: underline;
  text-underline-offset: .16em;
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 5 / 3; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid section + section {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 14px 0 0;
  }
}

@media (max-width: 440px) {
  body { font-size: 1.12rem; }
  .wrap { width: calc(100% - 28px); }
  .top { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: .9rem; }
  .top nav a { padding-block: .2rem; }
  h1 { font-size: clamp(2.85rem, 13vw, 3.45rem); }
  .comparison { padding-top: 28px; }
  .compare-table tbody th { width: 17%; }
  .source { align-items: flex-start; flex-direction: column; gap: 8px; }
}
