/* ==========================================================================
   Pattern F — "Light Premium"
   White/ivory base + the image-led visual components (Pattern C), elevated
   with serif headlines, a bronze accent, and soft shadow depth. Legibility
   is the priority here: body copy stays 15.5px+ and muted text keeps
   sufficient contrast against the background (unlike Pattern E's dark
   editorial, which read as too faint/small at a glance).
   ========================================================================== */
:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-border: #e9e2d4;
  --color-text: #211f1b;
  --color-text-muted: #6c675d;
  --color-accent: #9c7a3f;
  --color-accent-strong: #7a5e2f;
  --color-accent-soft: #f3ead9;
  --color-amazon: #f79400;
  --color-amazon-dark: #dd8300;
  --color-amazon-text: #3d2600;
  --color-good: #375840;
  --color-good-soft: #e7f0e8;
  --color-bad: #96402e;
  --color-bad-soft: #f8e9e6;
  --color-tag-bg: #f1ece0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(90, 70, 30, 0.06), 0 1px 1px rgba(90, 70, 30, 0.05);
  --shadow-md: 0 16px 34px rgba(90, 70, 30, 0.12);

  --content-width: 800px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-strong);
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(155deg, #c9a25c, #9c7a3f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-accent-strong);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  max-width: var(--content-width);
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent-strong);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* ==========================================================================
   Article header
   ========================================================================== */
.article-header {
  max-width: var(--content-width);
  margin: 16px auto 0;
  padding: 0 20px;
}

.article-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.8vw, 40px);
  line-height: 1.5;
  margin: 18px 0 14px;
  font-weight: 600;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.article-lead {
  font-size: 17px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 22px 0 0;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Table of contents
   ========================================================================== */
.toc {
  max-width: var(--content-width);
  margin: 26px auto 0;
  padding: 0 20px;
}

.toc details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.toc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent-strong);
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::before {
  content: "\1F4D1";
  margin-right: 8px;
}

.toc ol {
  margin: 14px 0 2px;
  padding-left: 20px;
  font-size: 14px;
}

.toc li {
  margin: 7px 0;
}

.toc a {
  color: var(--color-text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-accent-strong);
}

.toc ol ol {
  margin: 4px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Article body
   ========================================================================== */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 54px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-accent-soft);
  scroll-margin-top: 76px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 34px 0 12px;
  scroll-margin-top: 76px;
}

.article-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
}

.article-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-body li {
  margin: 6px 0;
  font-size: 15.5px;
}

/* ==========================================================================
   Ad slot
   ========================================================================== */
.ad-slot {
  margin: 38px 0;
  text-align: center;
}

.ad-slot__label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.ad-slot__box {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ==========================================================================
   Pick cards — merges the product gallery with the use-case Q&A: each
   card answers "who's this for" with a photo, not just a name and price.
   ========================================================================== */
.pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 18px;
}

.pick-card {
  display: flex;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pick-card__media {
  flex: none;
  align-self: center;
  width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.pick-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pick-card__body {
  flex: 1;
  min-width: 0;
}

.pick-card__q {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 5px;
}

.pick-card__a {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-strong);
  margin: 0 0 6px;
  line-height: 1.5;
}

.pick-card__desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Product photo — soft bronze-toned pastel gradient mat behind a
   contain-fit image (Amazon/manufacturer product photos have their own
   white background, so the gradient shows through as a frame around them)
   ========================================================================== */
.product-visual {
  position: relative;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  padding: 22px;
  overflow: hidden;
}

.product-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.visual-1 { background: linear-gradient(135deg, #f4ead4, #e6d3a8); }
.visual-2 { background: linear-gradient(135deg, #f2e2d8, #e3c3ae); }
.visual-3 { background: linear-gradient(135deg, #eef0e2, #d7dcbf); }
.visual-4 { background: linear-gradient(135deg, #efe6e9, #dbc4cb); }
.visual-5 { background: linear-gradient(135deg, #f6efd8, #e8d99f); }
.visual-6 { background: linear-gradient(135deg, #e7eeec, #cfe0da); }
.visual-7 { background: linear-gradient(135deg, #f3e6df, #e3c6b6); }

/* ==========================================================================
   Chips
   ========================================================================== */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-tag-bg);
  color: var(--color-text);
}

.chip--accent {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.chip--good {
  background: var(--color-good-soft);
  color: var(--color-good);
}

.chip--bad {
  background: var(--color-bad-soft);
  color: var(--color-bad);
}

/* ==========================================================================
   Spec bars
   ========================================================================== */
.spec-plain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 20px;
}

.spec-plain__row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.spec-plain__label {
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.spec-plain__value {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
}

/* ==========================================================================
   Rating badge — Amazon customer review score (PA-API CustomerReviews)
   ========================================================================== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin: 0 0 14px;
}

/* Fractional star fill: a grey 5-star track with a gold copy laid on top,
   clipped to (rating / 5 * 100)% so values like 4.3 render as a partial star
   instead of rounding to a whole one. */
.stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
}

.stars__track,
.stars__fill {
  white-space: nowrap;
}

.stars__track {
  color: var(--color-border);
}

.stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 0%;
  color: var(--color-amazon);
}

.rating-badge__value {
  font-weight: 800;
  color: var(--color-text);
}

.rating-badge__count {
  color: var(--color-text-muted);
}

.rating-badge--placeholder .rating-badge__value,
.rating-badge--placeholder .rating-badge__count {
  color: var(--color-text-muted);
}

.compare-table .rating-badge {
  margin: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-strong);
  margin: 0 0 10px;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare-table caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 14px 16px 0;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
  white-space: nowrap;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--color-accent-soft);
}

.compare-table .col-name {
  font-weight: 700;
  white-space: nowrap;
}

.compare-table .col-name a {
  color: inherit;
  text-decoration: none;
}

.compare-table .col-name a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

.compare-table .col-price {
  font-weight: 700;
  color: var(--color-accent-strong);
  white-space: nowrap;
}

.compare-table .col-fit {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.compare-table .col-link {
  white-space: nowrap;
}

.compare-table .col-link a {
  color: var(--color-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.compare-table .col-link a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--good {
  background: var(--color-good-soft);
  color: var(--color-good);
}

.badge--bad {
  background: var(--color-bad-soft);
  color: var(--color-bad);
}

/* ==========================================================================
   Product review card
   ========================================================================== */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 22px 0 34px;
  box-shadow: var(--shadow-sm);
}

.product-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}

.product-card__price {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--color-accent-strong);
  white-space: nowrap;
}

.product-card__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

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

.fit-box {
  border-radius: var(--radius-md);
  padding: 15px 17px;
}

.fit-box--good {
  background: var(--color-good-soft);
}

.fit-box--bad {
  background: var(--color-bad-soft);
}

.fit-box__title {
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fit-box--good .fit-box__title {
  color: var(--color-good);
}

.fit-box--bad .fit-box__title {
  color: var(--color-bad);
}

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

.fit-box li {
  font-size: 13.5px;
  margin: 4px 0;
}

.detail-toggle {
  margin: 0 0 18px;
}

.detail-toggle summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-strong);
  list-style: none;
}

.detail-toggle summary::-webkit-details-marker {
  display: none;
}

.detail-toggle summary::after {
  content: " ›";
}

.detail-toggle[open] summary::after {
  content: " ﹀";
}

.detail-toggle p {
  margin-top: 12px;
  color: var(--color-text-muted);
}

/* CTA button — soft metallic gold fill, legible dark text */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-cta--amazon {
  background: var(--color-amazon);
  color: var(--color-amazon-text);
}

.btn-cta--amazon:hover {
  background: var(--color-amazon-dark);
}

.btn-cta--outline {
  background: transparent;
  color: var(--color-accent-strong);
  border: 1.5px solid var(--color-accent);
}

.btn-cta--outline:hover {
  background: var(--color-accent-soft);
}

.btn-cta__note {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   Notice / disclosure boxes
   ========================================================================== */
.notice-box {
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
  border-radius: var(--radius-md);
  padding: 15px 19px;
  margin: 30px 0;
}

.disclosure-box {
  font-size: 12.5px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 17px 19px;
  margin: 20px 0 0;
  line-height: 1.8;
  background: var(--color-surface);
}

.disclosure-box strong {
  color: var(--color-text);
}

/* ==========================================================================
   Home page
   ========================================================================== */
.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5.2vw, 38px);
  margin: 0 0 14px;
  font-weight: 600;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 15.5px;
  max-width: 520px;
  margin: 0 auto;
}

.article-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.article-card__excerpt {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

.article-card__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.article-card--placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  border-style: dashed;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 30px 20px 44px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}

.site-footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-accent-strong);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
  .article-body h2 {
    font-size: 21px;
  }
  .product-card {
    padding: 18px;
  }
}
