/* Pre-sell pages (/p/*): advertorials, listicles and the gift guide. The home page keeps /styles.css. */
:root {
  --ink: #23201c;
  --muted: #625b52;
  --pine: #2f4a3a;
  --pine-2: #3d5f4b;
  --pine-soft: #e7eee8;
  --ember: #d0642c;
  --ember-2: #b8541f;
  --ember-soft: #fbeadf;
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --line: #e7ddcf;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

body.has-sticky {
  padding-bottom: 96px;
}

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

a {
  color: var(--pine-2);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Reading progress */
.readbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
}

.readbar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ember);
}

/* Header */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.top-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .top-note {
    display: none;
  }
}

.ad-label {
  max-width: 712px;
  margin: 14px auto 0;
  padding: 0 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Article */
.article {
  max-width: 712px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.head {
  padding: 8px 0 18px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--ember-2);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5.4vw, 2.6rem);
}

.dek {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.15rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.note-box {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.body h2 {
  margin: 40px 0 12px;
  font-size: 1.55rem;
}

.body h3 {
  margin: 24px 0 8px;
  font-size: 1.2rem;
}

.lede {
  font-size: 1.15rem;
}

.pull {
  margin: 28px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--ember);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
}

figure {
  margin: 24px 0;
}

figure img,
.reasons img {
  border-radius: 10px;
}

.reasons img {
  margin: 14px 0 6px;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

/* An image still to be supplied: a photo of the real product or an approved creative. */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-align: center;
}

.small {
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}

/* Spec and fact lists */
.facts {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.facts h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1rem;
}

.facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.facts .src {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Who it's for / not for */
.fit {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.fit > div {
  padding: 16px 18px;
  border-radius: 10px;
}

.fit .yes {
  background: var(--pine-soft);
}

.fit .no {
  background: var(--ember-soft);
}

.fit h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1rem;
}

.fit ul {
  margin: 0;
  padding-left: 20px;
}

@media (min-width: 640px) {
  .fit {
    grid-template-columns: 1fr 1fr;
  }
}

/* Listicle items */
.reasons {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: reason;
}

.reasons > li {
  position: relative;
  margin: 0 0 30px;
  padding-left: 56px;
  counter-increment: reason;
}

.reasons > li::before {
  content: counter(reason);
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.reasons h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.reasons p {
  margin: 0 0 10px;
}

/* Gift guide picks */
.pick {
  margin: 28px 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.pick .for {
  margin: 0 0 6px;
  color: var(--ember-2);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pick h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.pick ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.pick img {
  margin: 0 0 16px;
  border-radius: 10px;
}

.tips {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.tips h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1rem;
}

.tips ul {
  margin: 0;
  padding-left: 20px;
}

/* Buttons and calls to action */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ember-2);
}

.btn.block {
  display: block;
  width: 100%;
}

.cta-box {
  margin: 32px 0;
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--pine);
  color: #fff;
}

.cta-box h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.35rem;
}

.cta-box p {
  margin: 0 0 16px;
  color: #e4ece6;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #e4ece6;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.ticks li::before {
  content: "✓ ";
  color: #f2b98f;
}

.cta-box .req {
  margin: 12px 0 0;
  color: #cfdad2;
  font-size: 0.8rem;
}

/* Disclosure */
.disclosure {
  margin: 36px 0 0;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
}

.disclosure p {
  margin: 0 0 10px;
}

.foot {
  padding: 24px 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-align: center;
}

/* Sticky mobile button */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.97);
  transform: translateY(110%);
  transition: transform 0.2s ease;
  text-align: center;
}

.sticky.show {
  transform: none;
}

.sticky .btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.sticky .small {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  body.has-sticky {
    padding-bottom: 0;
  }

  .sticky {
    display: none;
  }
}

.brand img {
  display: block;
  width: auto;
  height: 36px;
}

@media (max-width: 480px) {
  .brand img {
    height: 30px;
  }
}
