/* Worth the Splurge: buyer's guides with a hang-tag verdict. */
:root {
  --paper: #ffffff;
  --wash: #f1f4f2;
  --ink: #1c2433;
  --slate: #586274;
  --rule: #dbe1e3;
  --manila: #ecd29b;
  --manila-edge: #c9a35a;
  --green: #1d6a4e;
  --green-dark: #144d39;
  --focus: #2f6fd6;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --measure: 40rem;
  --wide: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
}

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--sans);
  font-stretch: 100%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 800; font-stretch: 85%; font-size: 1.35rem; letter-spacing: -0.015em; }
.wordmark:hover { color: var(--ink); }
.wordmark-tag { width: 1.05rem; height: 1.5rem; }
.wordmark-tag path { fill: var(--manila); stroke: var(--manila-edge); stroke-width: 1.5; }
.wordmark-tag circle { fill: var(--paper); stroke: var(--manila-edge); stroke-width: 1.2; }
.masthead nav { display: flex; gap: 1.4rem; align-items: center; font-family: var(--sans); font-size: .98rem; font-weight: 500; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover { color: var(--green); }
.masthead nav .nav-cta { color: var(--green); border-bottom: 2px solid var(--manila-edge); padding-bottom: 1px; }

/* Shared bits */
.guide-cat { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--green); margin: 0 0 .35rem; }
.guide-cat a { text-decoration: none; }
.button {
  display: inline-block; background: var(--green); color: #fff; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; padding: .8rem 1.35rem; border-radius: 6px; text-decoration: none;
}
.button:hover { background: var(--green-dark); color: #fff; }

/* The hang tag: the site's signature element */
.tag {
  position: relative; background: var(--manila); color: var(--ink);
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  font-family: var(--sans);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tag::after { /* soft inner edge, like card stock */
  content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(122, 88, 30, .35);
  clip-path: inherit; pointer-events: none;
}
.tag-hole { display: block; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--manila-edge); }
.tag-price { font-weight: 800; font-stretch: 80%; letter-spacing: -0.02em; line-height: 1.05; }

.tag-large { width: 17.5rem; padding: 1.6rem 1.75rem 2rem; }
.tag-large .tag-hole { width: 1.3rem; height: 1.3rem; margin-bottom: 1.2rem; }
.tag-large .tag-price { font-size: 2.35rem; }
.tag-verdict { display: block; margin-top: .9rem; font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; }

.tag-small { width: 6.25rem; padding: .65rem .5rem .8rem; flex: none; }
.tag-small::after { inset: 4px; }
.tag-small .tag-hole { width: .6rem; height: .6rem; margin-bottom: .45rem; }
.tag-small .tag-price { font-size: .95rem; }

.hero-tag, .article-tag { position: relative; display: flex; flex-direction: column; align-items: center; }
/* The string runs down to the tag's hole. */
.string { position: relative; z-index: 2; display: block; width: 2px; height: 6.4rem; background: var(--manila-edge); margin-bottom: -2.3rem; }
.hero-tag .tag, .article-tag .tag { transform: rotate(-3deg); transform-origin: 50% 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-tag .tag { animation: swing 2.4s cubic-bezier(.3, .6, .3, 1) both; }
  @keyframes swing {
    0% { transform: rotate(9deg); }
    35% { transform: rotate(-6deg); }
    65% { transform: rotate(-1.5deg); }
    100% { transform: rotate(-3deg); }
  }
}

/* Home hero */
.hero { background: var(--wash); border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: start; padding-top: 3.5rem; padding-bottom: 4rem; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.75rem); font-weight: 800; font-stretch: 75%;
  line-height: .92; letter-spacing: -0.03em; max-width: 9ch;
}
.hero-sub { font-size: 1.3rem; line-height: 1.55; color: var(--slate); max-width: 34rem; margin: 1.4rem 0 2.5rem; }
.hero-lead { border-left: 3px solid var(--manila-edge); padding-left: 1.25rem; max-width: 36rem; }
.hero-lead h2 { font-size: 1.55rem; margin-bottom: .5rem; }
.hero-lead h2 a { color: var(--ink); text-decoration: none; }
.hero-lead h2 a:hover { color: var(--green); }
.hero-lead p { margin: 0 0 1.2rem; }
.hero-tag { padding-right: 2rem; }

/* Sections */
.section { padding-top: 3.5rem; padding-bottom: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.section-head h2 { font-size: 1.5rem; }
.section-head a { font-family: var(--sans); font-size: .98rem; }

/* Guide list */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-row { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.guide-row-text { max-width: var(--measure); }
.guide-row h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.guide-row h3 a { color: var(--ink); text-decoration: none; }
.guide-row h3 a:hover { color: var(--green); text-decoration: underline; }
.guide-dek { margin: 0 0 .5rem; }
.guide-meta { margin: 0; font-family: var(--sans); font-size: .9rem; color: var(--slate); }

/* How we decide */
.how h2 { font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 1.5rem; }
.how h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.how p { margin: 0; font-size: 1.05rem; }

/* Subscribe */
.subscribe {
  margin: 3.5rem 0 1rem; background: var(--ink); color: #fff; border-radius: 10px;
  padding: 2.25rem 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center;
}
.subscribe h2 { font-size: 1.75rem; margin-bottom: .4rem; }
.subscribe p { margin: 0; color: #cdd4df; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.subscribe-form input[type="email"] {
  flex: 1 1 14rem; font: inherit; font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem;
  border: 2px solid transparent; border-radius: 6px; background: #fff; color: var(--ink);
}
.subscribe-form input[type="email"]:focus-visible { outline: 3px solid var(--manila); outline-offset: 2px; }
.subscribe-form button {
  font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: .8rem 1.4rem; border: 0; border-radius: 6px;
  background: var(--manila); color: var(--ink); cursor: pointer;
}
.subscribe-form button:hover { background: #f4dfb1; }
.subscribe-form button:focus-visible { outline: 3px solid #fff; }
.subscribe-status { flex-basis: 100%; min-height: 1.5em; font-family: var(--sans); font-size: .95rem; }
.subscribe-status.ok { color: #b9e6cf; }
.subscribe-status.err { color: #ffc9bd; }

/* Article */
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; padding-top: 3rem; padding-bottom: 2rem; align-items: start; }
.article-head-text { max-width: 46rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 85%; letter-spacing: -0.025em; line-height: 1.02; }
.article-dek { font-size: 1.3rem; line-height: 1.55; color: var(--slate); margin: 1rem 0; }
.article-meta { font-family: var(--sans); font-size: .92rem; color: var(--slate); margin: 0; }
.article-tag { padding-top: 0; }
.article-tag .string { height: 4.4rem; }
.prose .table-wrap { width: min(58rem, calc(100vw - 2.5rem)); max-width: none; }

.article-body { display: block; }
.disclosure {
  max-width: var(--measure); font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--slate);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .8rem 0; margin-bottom: 2rem;
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.7rem; margin: 2.75rem 0 .9rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--manila-edge); font-family: var(--sans); font-weight: 700; }
.prose strong { font-weight: 600; }
.prose em { color: var(--slate); }

.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; max-width: min(100vw - 2.5rem, var(--wide)); }
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.45; min-width: 100%; }
.prose th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: .6rem .9rem .6rem 0; vertical-align: bottom; }
.prose td { border-bottom: 1px solid var(--rule); padding: .7rem .9rem .7rem 0; vertical-align: top; }
.prose tr:last-child td { border-bottom: 2px solid var(--ink); }
.prose td a { font-weight: 600; }

/* Plain pages */
.page-top { padding-top: 3rem; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; font-stretch: 85%; letter-spacing: -0.025em; margin-bottom: .75rem; }
.page-intro { font-size: 1.2rem; color: var(--slate); max-width: var(--measure); margin: 0 0 2rem; }

/* Footer */
.footer { margin-top: 4rem; border-top: 1px solid var(--rule); background: var(--wash); font-family: var(--sans); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-top: 2.25rem; padding-bottom: 1.25rem; flex-wrap: wrap; }
.footer-name { font-weight: 800; font-stretch: 85%; font-size: 1.15rem; margin: 0 0 .4rem; }
.footer-note { max-width: 30rem; color: var(--slate); margin: 0; line-height: 1.5; }
.footer nav { display: flex; flex-direction: column; gap: .35rem; }
.footer nav a { color: var(--ink); text-decoration: none; }
.footer nav a:hover { color: var(--green); text-decoration: underline; }
.footer-legal { padding-bottom: 2rem; color: var(--slate); font-size: .85rem; }

/* Narrow screens */
@media (max-width: 52rem) {
  .hero-inner, .article-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-tag, .article-tag { padding: 0; width: fit-content; margin-left: 1.5rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .subscribe { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1.1rem; }
  .masthead nav { gap: 1rem; font-size: .92rem; }
  .masthead nav .nav-cta { display: none; }
  .tag-large { width: 15rem; }
  .guide-row { gap: 1rem; }
  .tag-small { width: 5rem; }
  .tag-small .tag-price { font-size: .8rem; }
}
