/* Ham Radio Dude v2: large, high-contrast, easy to follow. Light by default, dark on request. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1c1c1e;
  --muted: #45454b;
  --border: #ddd5c8;
  --accent: #c2410c;        /* links + primary buttons (white text passes AA) */
  --accent-hover: #9a3412;
  --on-accent: #ffffff;
  --star: #d97706;
  --star-empty: #d6d0c6;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --no: #7f1d1d;
  --no-bg: #fee2e2;
  --notice-bg: #fff4d6;
  --notice-border: #e9b949;
  --header-bg: #1c1c1e;
  --header-text: #ffffff;
  --shadow: 0 2px 10px rgba(40, 30, 10, .08);
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12151b;
  --surface: #1c2029;
  --surface-2: #252a35;
  --text: #f3f4f6;
  --muted: #c9ccd3;
  --border: #353b48;
  --accent: #ff8a3d;
  --accent-hover: #ffa766;
  --on-accent: #1a1206;
  --star: #fbbf24;
  --star-empty: #4b5160;
  --ok: #86efac;
  --ok-bg: #14301f;
  --no: #fca5a5;
  --no-bg: #3a1a1a;
  --notice-bg: #2d2611;
  --notice-border: #8a6d1c;
  --header-bg: #0b0d11;
  --header-text: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 12px; z-index: 10; }

/* Buttons: big, obvious, always labelled in words */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 56px; padding: 12px 26px;
  border: 2px solid var(--accent); border-radius: 12px;
  background: transparent; color: var(--accent);
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface-2); color: var(--accent-hover); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-big { min-height: 66px; font-size: 1.25rem; padding: 14px 34px; width: 100%; }
.btn-small { min-height: 46px; padding: 8px 16px; font-size: .95rem; }
.btn-youtube, .site-header .btn-youtube, .site-footer .btn-youtube { background: #cc0000; border-color: #cc0000; color: #fff; }
.btn-youtube:hover, .site-header .btn-youtube:hover, .site-footer .btn-youtube:hover { background: #a30000; border-color: #a30000; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-text); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--header-text); text-decoration: none; }
.brand img { border-radius: 50%; border: 3px solid #f59e0b; width: 64px; height: 64px; }
.brand-name { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: .9rem; color: #d4d4d8; }
.brand:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-header .btn { color: #fff; border-color: #6b6b73; }
.site-header .btn:hover { background: #2c2c30; color: #fff; }
.site-header .btn-etsy { background: #f1641e; border-color: #f1641e; color: #fff; }
.site-header .btn-etsy:hover { background: #d4520f; border-color: #d4520f; }
.theme-toggle .t-light { display: none; }
:root[data-theme="dark"] .theme-toggle .t-light { display: inline; }
:root[data-theme="dark"] .theme-toggle .t-dark { display: none; }

.main-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; margin: 0 auto; }
.main-nav a {
  display: block; padding: 10px 18px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* Shop break notice */
.notice { background: var(--notice-bg); border-bottom: 2px solid var(--notice-border); padding: 14px 0; }
.notice strong { font-size: 1.1rem; }
.notice details { margin: 6px 0; }
.notice summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.notice details p { margin: 8px 0 0; max-width: 760px; }
.notice-sub { display: block; color: var(--muted); }

main { padding: 32px 0 56px; }
main.wrap { padding-top: 32px; padding-bottom: 56px; }
section { margin: 0 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: 1.05rem; }

/* Breadcrumb */
.crumbs { font-size: .95rem; margin-bottom: 18px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.hero h1 { margin-bottom: .4em; }
.hero-art { background: #0b0b0d; border-radius: 16px; padding: 12px; }
.hero-art img { margin: 0 auto; max-height: 380px; width: auto; }
.trust { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.trust .icon { font-size: 1.3rem; width: 1.6em; text-align: center; }

/* Stars */
.stars { position: relative; display: inline-block; color: var(--star-empty); letter-spacing: 2px; line-height: 1; font-size: 1.1rem; white-space: nowrap; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.stars.big { font-size: 1.6rem; }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.cat-tile:hover { border-color: var(--accent); color: var(--text); }
.cat-tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-tile span { padding: 14px 16px; font-weight: 700; font-size: 1.15rem; }
.cat-tile small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); color: var(--text); }
.card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-size: 1.3rem; font-weight: 700; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.no { background: var(--no-bg); color: var(--no); }
.card .rcount { color: var(--muted); font-size: .95rem; }

/* Category chips on shop page */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 28px; }
.chips a { padding: 10px 18px; border: 2px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 700; background: var(--surface); }
.chips a:hover { border-color: var(--accent); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.gallery-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--surface-2); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; width: 76px; height: 76px; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.buy-box h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.buy-box .price { font-size: 2rem; display: block; margin: 10px 0 6px; }
.buy-note { font-size: .95rem; color: var(--muted); margin-top: 12px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--border); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.description { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.description h3 { margin-top: 1.2em; }
.description h3:first-child { margin-top: 0; }
.description ul { padding-left: 1.3em; }
.description li { margin-bottom: .35em; }
.description p, .description li { overflow-wrap: anywhere; }

/* Reviews */
.review-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px; }
.review-summary .score { font-size: 3rem; font-weight: 700; line-height: 1; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.review blockquote { margin: 10px 0; font-size: 1.08rem; }
.review figcaption { color: var(--muted); font-size: .95rem; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.steps strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video { text-decoration: none; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video:hover { border-color: var(--accent); color: var(--text); }
.video .thumb { position: relative; }
.video img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.video .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video .play span { background: rgba(0, 0, 0, .7); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.video p { padding: 12px 16px; margin: 0; font-weight: 700; }

/* Footer */
.site-footer { background: var(--header-bg); color: #e5e5e5; padding: 40px 0 20px; }
.site-footer a { color: #ffb37a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-title { font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-small { color: #a1a1aa; font-size: .9rem; margin-top: 24px; }

/* Tablet */
@media (max-width: 960px) {
  .hero, .product { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-height: 260px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid, .videos, .quotes { grid-template-columns: repeat(2, 1fr); }
  .buy-box { position: static; }
}
/* Phone: menu becomes a grid of big buttons (nothing hidden behind a ☰) */
@media (max-width: 640px) {
  html { font-size: 18px; }
  .hero { padding: 22px; }
  .grid, .videos, .quotes, .reviews, .steps, .footer-grid { grid-template-columns: 1fr; }
  .main-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .main-nav a { text-align: center; padding: 12px 6px; background: var(--surface-2); }
  .header-top { justify-content: center; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
  .description { padding: 20px; }
  .buy-box { padding: 20px; }
}

/* Prints page */
.card .go { color: var(--accent); font-weight: 700; font-size: .95rem; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 24px 28px; }
.info-box ul { list-style: none; padding: 0; }
.info-box li { margin-bottom: 12px; }
.info-box .badge { margin-right: 8px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1.08rem; }
.faq p { padding: 0 20px 16px; margin: 0; }
