/*
Theme Name: Watch Winder Guide
Template: aff-base
Description: Quiet-luxury look for watchwinderguide.com: midnight navy, champagne gold and ivory, with bezel and guilloché details.
Version: 1.0.0
*/

:root {
	--bg: #faf7f0;
	--surface: #fffdf8;
	--surface-2: #f2ecdf;
	--ink: #121a2c;
	--ink-2: #353e53;
	--muted: #6b6e78;
	--line: #e5dccb;
	--accent: #1d2c4f;
	--accent-ink: #faf7f0;
	--accent-soft: #f1e8d4;
	--accent-2: #c9a96e;
	--good: #2b6c54;
	--bad: #a3392f;
	--radius: 6px;
	--radius-sm: 4px;
	--shadow: 0 1px 2px rgba(14, 23, 41, .05), 0 12px 32px rgba(14, 23, 41, .08);
	--font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-weight: 600;
	--display-tracking: 0.005em;
	/* theme-only tokens */
	--navy: #0e1729;
	--navy-2: #16233f;
	--gold: #c9a96e;
	--gold-hi: #e9d5a6;
	--gold-ink: #7a5f2c;
	--gold-line: rgba(201, 169, 110, .55);
}

a { text-decoration-color: var(--gold-line); }
a:hover { text-decoration-color: var(--gold); }
.kicker { color: var(--gold-ink); letter-spacing: .22em; font-size: 12px; }

/* ---------- Header: midnight lid with a double gold hairline ---------- */
.site-header { background: var(--navy); backdrop-filter: none; border-bottom: 0; box-shadow: 0 1px 0 rgba(201, 169, 110, .35), 0 4px 0 var(--navy), 0 5px 0 rgba(201, 169, 110, .28); }
.site-header .brand { color: #faf7f0; }
.brand__name { font: 600 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .24em; }
.brand__mark { width: 34px; height: 34px; }
.nav__list a { color: rgba(250, 247, 240, .78); font-size: 14.5px; letter-spacing: .02em; }
.nav__list a:hover, .nav__list .current-menu-item a { background: rgba(250, 247, 240, .08); color: #faf7f0; }
.site-header :focus-visible { outline-color: var(--gold); }
.nav-toggle { background: transparent; border-color: rgba(250, 247, 240, .25); }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { background: #faf7f0; }
@media (max-width: 1120px) {
	.nav { background: var(--navy); border-bottom: 1px solid var(--gold-line); }
}

/* ---------- Hero: guilloché dial on midnight ---------- */
.hero { color: #faf7f0; border-bottom: 1px solid var(--gold-line); padding: 72px 0 40px; background:
	radial-gradient(640px 360px at 50% 78%, rgba(201, 169, 110, .20), transparent 70%),
	repeating-radial-gradient(circle at 50% 120%, rgba(250, 247, 240, .045) 0 1px, transparent 1px 10px),
	repeating-conic-gradient(from 0deg at 50% 120%, rgba(250, 247, 240, .02) 0 2deg, transparent 2deg 4deg),
	linear-gradient(180deg, #0c1424, #17243f); }
.hero .kicker { color: var(--gold-hi); }
.hero__title { color: #faf7f0; font-weight: 500; font-size: clamp(40px, 6vw, 70px); line-height: 1.05; letter-spacing: 0; max-width: 15em; margin-left: auto; margin-right: auto; }
.hero__text { color: rgba(250, 247, 240, .8); font-size: 18px; }
.hero .btn--primary { background: linear-gradient(135deg, #ecd9ab, #c9a96e 55%, #b08c4f); color: var(--navy); }
.hero .btn--ghost { border-color: rgba(250, 247, 240, .55); color: #faf7f0; }
.hero .btn--ghost:hover { background: #faf7f0; color: var(--navy); }
.hero :focus-visible { outline-color: var(--gold); }
.hero-center .hero__art { width: 100%; max-width: 640px; margin-top: 18px; }
.agw-hero__drum { transform-box: view-box; transform-origin: 300px 281px; }
@media (prefers-reduced-motion: no-preference) {
	.agw-hero__drum { animation: agw-spin 14s cubic-bezier(.45, 0, .55, 1) infinite; }
	@keyframes agw-spin { 0%, 18% { transform: rotate(0deg); } 50%, 68% { transform: rotate(360deg); } 100% { transform: rotate(720deg); } }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 2px; letter-spacing: .06em; text-transform: uppercase; font-size: 13.5px; }
.btn--primary { background: var(--navy-2); }

/* ---------- Section heads: centred, with a gold rule ---------- */
.section__head { justify-content: center; text-align: center; }
.section__head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; }
.section__head h2::after { content: ""; display: block; width: 64px; height: 1px; margin: 14px auto 0; background: var(--gold); box-shadow: 0 3px 0 -0px rgba(201, 169, 110, .35); }

/* ---------- Silo tiles: bezel-ring icons ---------- */
.silos__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.silo { align-items: center; text-align: center; padding: 30px 20px 26px; border-radius: var(--radius); position: relative; }
.silo::after { content: ""; position: absolute; inset: 6px; border: 1px solid transparent; border-radius: 3px; pointer-events: none; transition: border-color .2s; }
.silo:hover { border-color: var(--gold-line); }
.silo:hover::after { border-color: rgba(201, 169, 110, .35); }
.silo__icon, .silo-head__icon { width: 72px; height: 72px; padding: 15px; border-radius: 50%; color: var(--accent); background: var(--surface); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(201, 169, 110, .45); }
.silo__icon { margin-bottom: 10px; }
.silo__name { font-size: 25px; font-weight: 600; }
.silo__count { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold-ink); }

/* ---------- Cards ---------- */
.card__link { border-radius: var(--radius); }
.card__link:hover { border-color: var(--gold-line); }
.card__icon { color: var(--gold-ink); }
.card__meta { color: var(--gold-ink); letter-spacing: .14em; font-size: 11.5px; }
.card__title { font-size: 23px; line-height: 1.18; }
.card--lg .card__title { font-size: 31px; }
.card--lg .card__link { background: linear-gradient(165deg, #16233f, #1d2c4f 70%); border-color: var(--navy-2); color: #faf7f0; }
.card--lg .card__icon, .card--lg .card__meta, .card--lg .card__more { color: var(--gold-hi); }
.card--lg .card__excerpt { color: rgba(250, 247, 240, .78); }
.card__more { color: var(--accent); letter-spacing: .04em; }

/* ---------- Teaser: midnight panel ---------- */
.teaser__inner { background: radial-gradient(500px 300px at 15% 50%, rgba(201, 169, 110, .16), transparent 70%), linear-gradient(160deg, #0e1729, #1b2a4b); color: rgba(250, 247, 240, .82); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--gold-line); }
.teaser__copy h2 { color: #faf7f0; font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); }
.teaser .kicker { color: var(--gold-hi); }
.teaser .btn--primary { background: linear-gradient(135deg, #ecd9ab, #c9a96e 55%, #b08c4f); color: var(--navy); }
.teaser :focus-visible { outline-color: var(--gold); }

/* ---------- Promise: roman-numeral items ---------- */
.promise__grid { counter-reset: agw-p; }
.promise__item { counter-increment: agw-p; border-top: 1px solid var(--gold); border-radius: 0; background: transparent; padding: 22px 6px 0; text-align: center; }
.promise__item::before { content: counter(agw-p, upper-roman); display: block; font: 500 30px/1 var(--font-display); color: var(--gold-ink); margin-bottom: 10px; }
.promise__item h3 { font-size: 24px; }

/* ---------- Silo page and article head ---------- */
.silo-head { background: radial-gradient(900px 300px at 50% -30%, var(--accent-soft), transparent 70%); }
.silo-head h1, .article__title { font-weight: 500; }
.article__title { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.08; }
.article__head { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #fff, 0 4px 0 -2px var(--line); }

/* ---------- Prose ---------- */
.prose h2 { font-size: clamp(29px, 3vw, 37px); font-weight: 600; }
.prose h3 { font-size: 25px; }
.prose h4 { font-size: 20px; }
.prose blockquote { border-left: 1px solid var(--gold); font-family: var(--font-display); font-size: 22px; font-style: italic; }
.prose th { background: var(--navy-2); color: #faf7f0; font-weight: 600; font-size: 13.5px; letter-spacing: .03em; }
.prose th[data-sort]::after { color: var(--gold-hi); }
.table-wrap { border-color: var(--line); border-radius: var(--radius); }
.toc-title, .aff-toc__title { color: var(--gold-ink); }
.aff-toc li a.is-active { border-left-color: var(--gold); }
.faq summary { font-size: 21px; }
.faq summary::after { color: var(--gold-ink); }

/* Quick picks: roman numerals, like hour markers */
.quick-picks { border-radius: var(--radius); border-color: var(--gold-line); }
.quick-picks ul { counter-reset: agw-qp; }
.quick-picks li { counter-increment: agw-qp; position: relative; padding-left: 74px; }
.quick-picks li::before { content: counter(agw-qp, upper-roman); position: absolute; left: 14px; top: 14px; width: 44px; text-align: center; font: 600 21px/1.25 var(--font-display); color: var(--gold-ink); }
.quick-picks li::after { content: ""; position: absolute; left: 64px; top: 16px; bottom: 16px; width: 1px; background: var(--gold-line); }
.quick-picks li strong { font-size: 21px; }

/* Product box: champagne top edge, navy bezel icon */
.aff-product { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.aff-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #b08c4f, #ecd9ab 50%, #b08c4f); }
.aff-product__icon { border-radius: 50%; background: var(--navy-2); color: var(--gold-hi); box-shadow: inset 0 0 0 2px var(--navy-2), inset 0 0 0 3px var(--gold); }
.aff-product__name { font-size: 21px; }
.aff-product__btn, .aff-cta__btn { border-radius: 2px; background: linear-gradient(135deg, #ecd9ab, #c9a96e 55%, #b08c4f); color: var(--navy); letter-spacing: .04em; }
.aff-cta { border-left: 2px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.aff-cta__label { color: var(--gold-ink); }
.aff-cta strong { font-size: 21px; }
.aff-product__badge { background: var(--navy-2); color: var(--gold-hi); border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #0e1729, #0a111f); border-top: 1px solid var(--gold-line); color: rgba(250, 247, 240, .7); }
.site-footer .brand__name { font-size: 15px; }
.site-footer__title { color: var(--gold-hi); letter-spacing: .2em; }
.site-footer__legal { border-top-color: rgba(201, 169, 110, .22); }
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Tools: shared ---------- */
.aff-tool { border-radius: var(--radius); border: 1px solid var(--gold-line); box-shadow: var(--shadow); position: relative; }
.aff-tool h3 { font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.aff-tool__result { background: var(--accent-soft); }
.agt-tool__kicker { font: 700 11.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.agt-tool__source { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* TPD settings lookup */
.agt-tpd__controls { margin-bottom: 10px; }
.agt-tpd__toggle { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; margin: 0 0 6px !important; }
.agt-tpd__toggle input { width: 18px !important; min-height: 18px !important; height: 18px; accent-color: var(--accent); flex: none; }
.agt-tpd__count { font-size: 14px; color: var(--muted); margin: 0 0 8px; min-height: 1.4em; }
.agt-tpd__results { display: grid; gap: 18px; }
.agt-tpd__group h4 { font-size: 21px; margin: 6px 0 4px; }
.agt-tpd__gnote { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.agt-tpd__group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.agt-tpd__row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr); gap: 4px 16px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--line); margin: 0 !important; font-size: 15px; line-height: 1.4; }
.agt-tpd__model { font-weight: 600; color: var(--ink); }
.agt-tpd__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.agt-tpd__dir svg { width: 22px; height: 18px; flex: none; color: var(--gold-ink); }
.agt-dir--cw .agt-tpd__dir svg, .agt-dir--cw-often .agt-tpd__dir svg { color: #1d5c86; }
.agt-dir--ccw .agt-tpd__dir svg { color: #8a3b52; }
.agt-tpd__val { font: 600 21px/1.1 var(--font-display); color: var(--ink); text-align: right; }
.agt-tpd__val small { font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; color: var(--muted); }
.agt-tpd__row.is-np .agt-tpd__val, .agt-dir--na .agt-tpd__val { font: italic 500 17px/1.2 var(--font-display); color: var(--muted); }
.agt-tpd__src { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.agt-tpd__double { display: none; grid-column: 1 / -1; font-size: 13px; color: var(--gold-ink); }
.agt-tpd.is-doubling .agt-tpd__double { display: block; }
.agt-tpd__empty { margin: 8px 0 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 15px; }
.agt-tpd__empty p { margin: 0; }
.agt-tpd__fallback { margin-top: 18px; padding: 16px 18px; background: var(--navy-2); color: rgba(250, 247, 240, .86); border-radius: var(--radius-sm); font-size: 15px; }
.agt-tpd__fallback p { margin: 0; }
.agt-tpd__fallback strong { color: var(--gold-hi); }
.agt-tpd__fallback-title { font: 600 20px/1.2 var(--font-display); color: #faf7f0; margin-bottom: 6px !important; }
.agt-tpd.is-ready .agt-tpd__results { max-height: none; }

/* Rotor animation */
.agt-rotor__controls { display: grid; gap: 14px; margin-bottom: 12px; }
.agt-seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--accent); border-radius: 2px; width: max-content; max-width: 100%; }
.agt-seg button { min-height: 42px; padding: 0 16px; border: 0; border-right: 1px solid var(--accent); background: var(--surface); color: var(--accent); font: 600 14px/1 var(--font-body); cursor: pointer; }
.agt-seg button:last-child { border-right: 0; }
.agt-seg button[aria-pressed="true"] { background: var(--accent); color: #faf7f0; }
.agt-rotor__selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.agt-rotor__selects select:disabled { opacity: .55; }
.agt-rotor__play { justify-self: start; min-height: 42px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 2px; background: linear-gradient(135deg, #ecd9ab, #c9a96e 55%, #b08c4f); color: var(--navy); font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.agt-rotor__fig { margin: 0; padding: 12px; background: radial-gradient(420px 260px at 30% 50%, #1d2c4f, #0e1729); border-radius: var(--radius-sm); }
.agt-rotor__fig svg { display: block; width: 100%; height: auto; }
.agt-rotor__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.agt-rotor__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.agt-rotor__legend .is-rotor { background: #c9a96e; }
.agt-rotor__legend .is-train { background: #e2c991; box-shadow: inset 0 0 0 1.5px #8f6f37; }
.agt-rotor__legend .is-spring { background: #1b2a4f; }
.agt-rotor__legend .is-balance { background: #a0303c; }
.agt-rotor__meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.agt-rotor__bar { height: 10px; border-radius: 5px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.agt-rotor__bar span { display: block; height: 100%; background: linear-gradient(90deg, #b08c4f, #ecd9ab); }
.agt-rotor__status { margin: 10px 0 0; font-size: 15px; color: var(--ink); min-height: 3em; }

/* "Can it hit my TPD?" matcher on comparison tables */
.agt-match { margin-top: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius); }
.agt-match__title { font: 600 21px/1.2 var(--font-display); margin: 0 0 10px; color: var(--ink); }
.agt-match__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.agt-match label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.agt-match input, .agt-match select { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); }
.agt-match__out { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
.agt-fit { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.agt-fit::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.agt-fit--hit { color: var(--good); }
.agt-fit--near { color: var(--gold-ink); }
.agt-fit--miss { color: var(--bad); }
.agt-fit--unknown { color: var(--muted); }
.prose tbody tr.agt-fit--hit td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.prose tbody tr.agt-fit--miss td { opacity: .7; }

@media (max-width: 760px) {
	.hero { padding: 48px 0 28px; }
	.brand__name { font-size: 14px; letter-spacing: .16em; }
	.agt-tpd__row { grid-template-columns: minmax(0, 1fr) auto; }
	.agt-tpd__model { grid-column: 1 / -1; }
	.agt-tpd__val { font-size: 19px; }
	.agt-seg { width: 100%; }
	.agt-seg button { flex: 1 1 0; padding: 0 8px; font-size: 13px; }
	.agt-rotor__fig { padding: 6px; }
	.aff-tool { padding: 18px 16px; }
	.aff-tool h3 { font-size: 25px; }
}

/* Amazon photos: frame in this site's style */
:root { --photo-radius: 6px; --photo-stage: linear-gradient(145deg, var(--gold-hi), var(--gold)); --photo-frame: 5px; }
