/* The Smartest Gear - homepage styles
   Design language modeled on CleverHiker.com per owner request:
   white editorial base, charcoal condensed uppercase headings (Oswald),
   Montserrat body, mint feature block, coral links, square corners,
   italic serif micro-links. Light theme only, matching the reference. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --text: #3e3e43;
  --heading: #38383d;
  --soft: #6b6b70;
  --bg: #ffffff;
  --bar: #f4f3ee;
  --line: #dcdcd8;
  --rule: #38383d;
  --mint: #b5e5d2;
  --coral: #d94f38;
  --coral-dark: #bf3f2a;
  --dark: #1e1d1b;
  --serif-italic: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }

h1, h2, h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.wrap { max-width: 1224px; margin: 0 auto; padding: 0 1.5rem; }

/* Italic serif micro-link, e.g. "Read More", "View All" */
.more-link {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1rem;
  color: var(--heading);
}
.more-link:hover { color: var(--coral); }

/* ---------- Header: top bar + nav bar ---------- */

.top-bar { background: var(--bar); }
.top-bar .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.search-form { display: flex; align-items: center; gap: 0.5rem; }
.search-form img { width: 20px; height: 20px; opacity: 0.65; }
.search-form input {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  width: 12rem;
  max-width: 40vw;
}
.search-form input::placeholder { color: var(--soft); }
.search-form input:focus { border-bottom: 1px solid var(--heading); }

.logo {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
  white-space: nowrap;
}
.logo em {
  font-style: normal;
  font-weight: 400;
  padding-left: 0.15rem;
}

.top-links { display: flex; justify-content: flex-end; gap: 1.8rem; font-size: 0.95rem; }
.top-links a:hover { color: var(--coral); }

.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  min-height: 56px;
  align-items: center;
  overflow-x: auto;
}
.main-nav a { font-size: 0.98rem; white-space: nowrap; }
.main-nav a:hover { color: var(--coral); }

@media (max-width: 860px) {
  .top-bar .wrap { grid-template-columns: 1fr auto; min-height: 64px; }
  .search-form { display: none; }
  .logo { justify-self: start; font-size: 1.3rem; }
  .top-links { flex-wrap: nowrap; gap: 1.1rem; font-size: 0.88rem; white-space: nowrap; }
  .main-nav ul { justify-content: flex-start; gap: 1.6rem; padding: 0 0.25rem; }
}

/* ---------- Page headline ---------- */

.page-title { text-align: center; padding: 2.8rem 0 2.4rem; }
.page-title h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.015em;
}

/* ---------- Featured + sidebar ---------- */

.featured .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.feature-article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.feature-article .feature-text {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.feature-article h2 { font-size: 1.7rem; }
.feature-article .more-link { display: inline-block; margin-top: 0.9rem; }
.feature-article p { font-size: 1.02rem; }
.feature-article:hover h2 { color: var(--coral); }

.side-block + .side-block { margin-top: 2.6rem; }
.side-block h3 {
  font-size: 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--rule);
}
.side-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.side-item img { width: 62px; height: 62px; object-fit: cover; }
.side-item h4 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--heading);
}
.side-item .arrow { color: var(--heading); font-size: 1.1rem; }
.side-item:hover h4, .side-item:hover .arrow { color: var(--coral); }

@media (max-width: 960px) {
  .featured .wrap { grid-template-columns: 1fr; }
  .feature-article .feature-text { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* ---------- Top categories ---------- */

.top-categories { padding: 4rem 0 3.4rem; text-align: center; }
.top-categories h2 { font-size: 1.9rem; margin-bottom: 2.4rem; }
.cat-row {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.cat-link { display: grid; justify-items: center; gap: 0.9rem; min-width: 96px; }
.cat-link img { width: 54px; height: 54px; opacity: 0.85; transition: transform 0.15s ease; }
.cat-link span {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cat-link:hover { color: var(--coral); }
.cat-link:hover img { transform: translateY(-3px); }

/* ---------- Mint trust block ---------- */

.trust { padding: 0 0 1rem; }
.trust-inner {
  background: var(--mint);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}
.trust-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; }
.trust-inner .more-link { display: inline-block; margin-top: 1.2rem; }
.trust-inner .trust-tag {
  font-family: var(--serif-italic);
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .trust-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Category sections ---------- */

.cat-section { padding: 3.2rem 0 3.6rem; }
.cat-section .wrap > .section-rule { border-top: 2px solid var(--rule); padding-top: 2rem; }

.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.4rem;
}
.cat-head h2 { font-size: 1.9rem; }
.subcats {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.subcats a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.subcats a:hover { color: var(--coral-dark); }

/* Row card: thumbnail left, text right */
.row-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.row-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.row-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.row-card p { font-size: 0.98rem; }
.row-card:hover h3 { color: var(--coral); }

/* Stacked card: image on top */
.stack-card h3 { font-size: 1.35rem; margin: 1rem 0 0.5rem; }
.stack-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stack-card p { font-size: 0.95rem; }
.stack-card:hover h3 { color: var(--coral); }

/* Layout A: one lead card + two row cards (Smartwatches) */
.grid-lead {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 3rem;
}
.grid-lead .lead-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.grid-lead .lead-card h3 { font-size: 1.55rem; margin: 1.1rem 0 0.5rem; }
.grid-lead .lead-card:hover h3 { color: var(--coral); }
.grid-lead .lead-side { display: grid; gap: 2.2rem; align-content: start; }

/* Layout B: 2-column row cards (Smart Rings, Smart Home) */
.grid-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem 3rem;
}

/* Layout C: 4-column stacked cards (Outdoor Tech) */
.grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .grid-lead { grid-template-columns: 1fr; }
  .grid-rows { grid-template-columns: 1fr; }
  .grid-four { grid-template-columns: 1fr 1fr; }
  .cat-head { flex-wrap: wrap; gap: 0.5rem; }
}
@media (max-width: 560px) {
  .grid-four { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 120px 1fr; gap: 1rem; }
  .row-card p { display: none; }
}

/* ---------- Newsletter ---------- */

.newsletter { padding: 2rem 0 4.5rem; }
.newsletter .wrap {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 3.5rem;
  align-items: center;
}

.news-card { background: var(--dark); color: #f5f4f0; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .news-body { padding: 1.8rem 2rem 2.2rem; }
.news-card h3 {
  color: #f5f4f0;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}
.news-card label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.news-card input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f5f4f0;
  color: #f5f4f0;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  margin-bottom: 1.4rem;
  outline: none;
}
.news-card input[type="email"]::placeholder { color: #b9b8b2; }
.news-card input[type="email"]:focus { border-bottom-width: 2px; }

.btn-coral {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--coral);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-coral:hover { background: var(--coral-dark); }
.btn-coral:active { transform: scale(0.98); }

.news-pitch h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
.news-pitch .lede {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.news-pitch p + p { margin-top: 0.8rem; }
.news-pitch .helper { font-size: 0.88rem; color: var(--soft); }

@media (max-width: 860px) {
  .newsletter .wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #cfcec9; }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 2.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: 3rem;
}

.site-footer h3 { color: #f5f4f0; font-size: 1.3rem; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--mint); }

.footer-sub label { display: block; font-size: 0.92rem; font-weight: 600; color: #f5f4f0; margin-bottom: 0.4rem; }
.footer-sub input[type="email"] {
  width: 100%;
  max-width: 320px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #cfcec9;
  color: #f5f4f0;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  margin-bottom: 1.3rem;
  outline: none;
}
.footer-sub input[type="email"]::placeholder { color: #8f8e89; }
.footer-sub input[type="email"]:focus { border-bottom-width: 2px; }

.footer-brand .logo { color: #f5f4f0; }
.footer-brand p { font-size: 0.95rem; margin-top: 0.8rem; }

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3936;
  font-size: 0.85rem;
  color: #a3a29d;
  display: grid;
  gap: 0.4rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-sub { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==================== Inner pages (guides & reviews) ==================== */

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 700px);
  gap: 4.5rem;
  justify-content: center;
  padding: 1.5rem 1.5rem 4rem;
}

/* Table of contents */
.toc { position: sticky; top: 86px; align-self: start; text-align: right; }
.toc h2 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.8rem;
}
.toc ul { list-style: none; display: grid; gap: 0.7rem; }
.toc a { font-size: 0.85rem; color: var(--soft); line-height: 1.4; display: block; }
.toc a:hover { color: var(--coral); }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 700px); }
  .toc { display: none; }
}

/* Article head */
.crumbs { text-align: center; font-size: 0.92rem; padding-top: 1.8rem; }
.crumbs a { color: var(--heading); }
.crumbs a:hover { color: var(--coral); }
.crumbs span { color: var(--soft); }

.article-head { text-align: center; margin-bottom: 2rem; }
.article-head h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 500;
  margin: 0.8rem 0 0.6rem;
}
.article-head .pub-date {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 0.95rem;
}
.article-head .pub-date strong { font-weight: 700; }
.byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
  font-size: 0.95rem;
}
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--coral); }
.byline a:hover { color: var(--coral-dark); }
.independence {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Article body */
.article img.hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 1.5rem 0; }
.article h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; scroll-margin-top: 90px; }
.article h3.sub { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.article p { margin-bottom: 1.1rem; }
.article p a, .article li a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.article p a:hover, .article li a:hover { color: var(--coral-dark); }
.article ul.links { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; display: grid; gap: 0.4rem; }
.editor-note {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.02rem;
  margin: 0.5rem 0 1.5rem;
}

/* Gray #1 pick box */
.pick-box { background: #f2f1ec; padding: 2.2rem 2.4rem; margin: 2.2rem 0; }
.pick-box h2 { margin: 0 0 1.4rem; font-size: 1.5rem; }
.pick-box .pick-inner { display: grid; grid-template-columns: 5fr 6fr; gap: 2rem; align-items: center; }
.pick-box img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick-box .btn-coral { margin-top: 1.4rem; }
@media (max-width: 680px) { .pick-box { padding: 1.5rem; } .pick-box .pick-inner { grid-template-columns: 1fr; } }

/* Quick picks */
.quick-picks { list-style: none; counter-reset: pick; display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.quick-picks li { counter-increment: pick; }
.quick-picks li::before { content: counter(pick) ". "; font-weight: 700; }
.quick-picks strong { font-weight: 700; }
.quick-picks .jump { display: block; font-size: 0.95rem; padding-left: 1.4rem; text-decoration: none; color: var(--text); }
.quick-picks .jump:hover { color: var(--coral); }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.compare { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 560px; }
.compare th {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.88rem;
  text-align: left;
  border-bottom: 2px solid var(--rule);
  padding: 0.6rem 0.9rem 0.6rem 0;
}
.compare td { padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }

/* Product card */
.product-card { border: 1px solid var(--heading); margin: 2.4rem 0; scroll-margin-top: 90px; }
.product-card .card-top { display: grid; grid-template-columns: 5fr 6fr; gap: 2rem; padding: 2rem; align-items: center; }
.product-card .card-top img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.product-card .tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.product-card .specs { list-style: none; display: grid; gap: 0.35rem; font-size: 0.98rem; }
.product-card .specs strong { font-weight: 700; }
.product-card .buy-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn-coral.upper { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--heading); }
.pros-cons > div { padding: 1.6rem 2rem; }
.pros-cons > div + div { border-left: 1px solid var(--heading); }
.pros-cons h4 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 0.9rem;
}
.pros-cons ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.pros-cons li { padding-left: 1.5rem; position: relative; }
.pros-cons li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.pros-cons .pros li::before { content: "\2713"; color: #1d8a66; }
.pros-cons .cons li::before { content: "\2715"; color: var(--coral); }

.bottom-line { border-top: 1px solid var(--heading); padding: 1.6rem 2rem 1.8rem; }
.bottom-line p { margin-bottom: 1rem; }
.bottom-line p:last-child { margin-bottom: 0; }
.bottom-line strong { font-weight: 700; }

@media (max-width: 680px) {
  .product-card .card-top { grid-template-columns: 1fr; padding: 1.4rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .pros-cons > div + div { border-left: none; border-top: 1px solid var(--heading); }
  .pros-cons > div, .bottom-line { padding: 1.3rem 1.4rem; }
}
