/*
Theme Name: Pottery Wheel Guide
Template: aff-base
Description: Earthy studio look for pottery-wheel.com: terracotta, raw clay beige and a glaze-teal accent.
Version: 1.0.0
*/

:root {
	--bg: #f4ece0;
	--surface: #fffaf3;
	--surface-2: #ebdfcd;
	--ink: #2a1d16;
	--ink-2: #4e3d33;
	--muted: #7d6a5d;
	--line: #dfcfb9;
	--accent: #a8482a;
	--accent-ink: #fffaf3;
	--accent-soft: #f3dccd;
	--accent-2: #1d6e6a;
	--glaze-soft: #d5e6e2;
	--good: #2d7a52;
	--bad: #a83a2a;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(59, 36, 24, .05), 0 10px 26px rgba(59, 36, 24, .08);
	--font-display: "Gloock", Georgia, serif;
	--font-body: "Work Sans", system-ui, sans-serif;
	--display-weight: 400;
	--display-tracking: 0;
}

body { background: var(--bg); }
.kicker { color: var(--accent-2); }

/* Buttons: squarer, like a fired tile */
.btn { border-radius: var(--radius-sm); }
.btn--primary { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--ghost { border-color: var(--accent-2); color: var(--accent-2); }
.btn--ghost:hover { background: var(--accent-2); color: var(--accent-ink); }

/* Header: teal glaze line with drips along the bottom edge */
.site-header { border-bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: inset 0 -3px 0 var(--accent-2); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none;
	background: radial-gradient(ellipse 6px 9px at 50% 0, var(--accent-2) 98%, transparent 100%) 0 0 / 46px 9px repeat-x,
		radial-gradient(ellipse 3.5px 5px at 50% 0, var(--accent-2) 98%, transparent 100%) 23px 0 / 46px 5px repeat-x; }
.brand__name { font-size: 22px; }
.nav__list a { border-radius: var(--radius-sm); }
.nav__list a:hover, .nav__list .current-menu-item a { background: var(--accent-soft); color: var(--accent); }

/* Hero: throwing rings spinning out from the wheel, on a clay wash */
.hero { border-bottom: 1px solid var(--line); padding-top: 72px;
	background:
		repeating-radial-gradient(circle at 78% 58%, transparent 0 34px, rgba(168, 72, 42, .07) 34px 35.5px),
		radial-gradient(760px 420px at 80% 55%, #efdcc6, transparent 72%),
		radial-gradient(520px 300px at 0% 100%, var(--glaze-soft), transparent 70%),
		var(--bg); }
.hero__title { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.08; }
.hero__copy .kicker { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--glaze-soft); }

/* Section headings get a clay "coil" underline */
.section__head h2 { position: relative; padding-bottom: 10px; }
.section__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) 0 60%, var(--accent-2) 60%); }

/* Silo tiles: glazed tiles, dipped teal along the top edge */
.silo { position: relative; overflow: hidden; padding-top: 30px; border-radius: 4px 4px var(--radius) var(--radius); border-color: var(--line); }
.silo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
	background: radial-gradient(ellipse 9px 8px at 50% 0, var(--accent-2) 98%, transparent 100%) 0 6px / 38px 8px repeat-x, linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / 100% 7px no-repeat; }
.silo__icon { width: 60px; height: 60px; padding: 9px; border-radius: 50%; color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent-soft); }
.silo:hover .silo__icon { color: var(--accent-2); }
.silo__name { font-size: 21px; }

/* Cards */
.card__link { border-radius: var(--radius); }
.card__icon { color: var(--accent-2); }
.card--lg .card__link { background: linear-gradient(165deg, var(--accent-soft), var(--surface) 62%); border-color: #e8cdb9; }
.card__more { color: var(--accent-2); }

/* Tool teaser and promise */
.teaser__inner { background: linear-gradient(135deg, var(--glaze-soft), var(--surface-2) 70%); border-radius: 8px 8px 40px 8px; }
.promise__item { border-top: 0; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.promise__item:nth-child(2) { border-left-color: var(--accent-2); }
.promise__item:nth-child(3) { border-left-color: #c98a64; }

/* Silo page head */
.silo-head { background: repeating-radial-gradient(circle at 92% 0%, transparent 0 30px, rgba(29, 110, 106, .07) 30px 31.5px), radial-gradient(900px 300px at 90% -20%, var(--accent-soft), transparent 70%); }
.silo-head__icon { color: var(--accent-2); }

/* Prose */
.prose blockquote { border-left-color: var(--accent-2); background: var(--surface); padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose th { background: #e6d6c0; }

/* Quick picks: numbered wheel-head bullets */
.quick-picks { counter-reset: agp-pick; border-radius: var(--radius); border-top: 4px solid var(--accent); }
.quick-picks li { position: relative; padding-left: 64px; counter-increment: agp-pick; }
.quick-picks li::before { content: counter(agp-pick); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 400 17px/1 var(--font-display); color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent); }
.quick-picks li:nth-child(even)::before { background: var(--accent-2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent-2); }

/* Product box: teal glaze dripping over the top edge */
.aff-product { position: relative; overflow: hidden; border: 1.5px solid var(--line); padding-top: 26px; border-radius: var(--radius); }
.aff-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13px;
	background: radial-gradient(ellipse 7px 7px at 50% 0, var(--accent-2) 98%, transparent 100%) 0 5px / 31px 7px repeat-x, linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / 100% 6px no-repeat; }
.aff-product__icon { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.aff-product__badge { background: var(--accent-2); }
.aff-product__btn, .aff-cta__btn { border-radius: var(--radius-sm); background: var(--accent); }
.aff-cta { border-left-color: var(--accent); }
.aff-cta__label { color: var(--accent); }

/* Footer: deep umber with a terracotta rim */
.site-footer { background: #2b1a12; border-top: 6px solid var(--accent); box-shadow: inset 0 3px 0 #c98a64; }
.site-footer .brand__mark circle { fill: #c95f3a; }
.site-footer__title { color: #e9c9a8; }

/* ------------------------------------------------------------------ *
 * Tools
 * ------------------------------------------------------------------ */
.agp-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.agp-note a { color: inherit; }
.aff-tool .agp-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 14px; cursor: pointer; }
.aff-tool .agp-check input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent-2); }

/* Throwing steps */
.agp-steps__lede, .agp-finder__lede, .agp-budget__lede { color: var(--ink-2); font-size: 15.5px; }
.agp-steps__list { list-style: none; margin: 0; padding: 0; }
.agp-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.agp-step__art { background: radial-gradient(circle at 50% 85%, #f6e7d6, var(--surface-2)); border-radius: var(--radius); padding: 8px; }
.agp-step__art svg { display: block; width: 100%; height: auto; }
.agp-steps__lbl { font: 600 12px var(--font-body); fill: var(--ink-2); }
.agp-step__num { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.agp-step__name { font-size: 24px; margin: 0 0 8px; }
.agp-step__copy p { font-size: 15.5px; line-height: 1.6; }
.agp-step__speed { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.agp-speed { display: inline-flex; align-items: end; gap: 3px; height: 16px; }
.agp-speed i { display: block; width: 6px; border-radius: 2px; background: var(--line); }
.agp-speed i:nth-child(1) { height: 7px; } .agp-speed i:nth-child(2) { height: 11px; } .agp-speed i:nth-child(3) { height: 16px; }
.agp-speed i.is-on { background: var(--accent); }
.agp-step__sign { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--glaze-soft); }
.agp-step__sign span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.agp-steps__tabs { display: flex; gap: 0; margin: 4px 0 6px; padding: 0; list-style: none; position: relative; }
.agp-steps__tabs::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 3px; background: var(--line); border-radius: 2px; }
.agp-steps__tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px 6px; border: 0; background: none; cursor: pointer; font: 600 13px/1.2 var(--font-body); color: var(--muted); position: relative; }
.agp-steps__tab b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font: 400 18px/1 var(--font-display); color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.agp-steps__tab[aria-selected="true"] { color: var(--ink); }
.agp-steps__tab[aria-selected="true"] b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.agp-steps__tab.is-done b { border-color: var(--accent-2); color: var(--accent-2); }
.agp-steps__tab:focus-visible { outline: none; }
.agp-steps__tab:focus-visible b { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.agp-steps.is-enhanced .agp-step { border-top: 0; }
.agp-step[hidden] { display: none; }
.agp-steps__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.agp-steps__nav button { min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--accent-2); background: var(--surface); color: var(--accent-2); font: 600 15px/1 var(--font-body); cursor: pointer; }
.agp-steps__nav button:hover:not(:disabled) { background: var(--accent-2); color: var(--accent-ink); }
.agp-steps__nav button:disabled { opacity: .4; cursor: default; }

/* Wheel finder */
.agp-finder__count { margin-bottom: 14px; }
.agp-wheels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.agp-wheel { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.agp-wheel[hidden] { display: none; }
.agp-wheel__top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.agp-wheel__name { margin: 0; font: 400 19px/1.25 var(--font-display); color: var(--ink); }
.agp-wheel__type { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); background: var(--glaze-soft); padding: 4px 8px; border-radius: 999px; }
.agp-wheel__cap { margin: 0; font-size: 15px; color: var(--ink-2); }
.agp-wheel__cap strong { font: 400 18px/1 var(--font-display); color: var(--accent); }
.agp-wheel__specs { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.agp-wheel__specs div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); }
.agp-wheel__specs dt { color: var(--muted); font-weight: 600; }
.agp-wheel__specs dd { margin: 0; color: var(--ink); }
.agp-wheel__note { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.agp-wheel__link { margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.agp-wheel__link:hover { text-decoration: underline; }
.agp-finder__empty { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }

/* Budget planner */
.agp-budget__have { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.agp-budget__have legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.agp-budget__result { padding: 18px; }
.agp-budget__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(42, 29, 22, .12); }
.agp-budget__head span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.agp-budget__head strong { font-size: 26px; }
.agp-budget__list { list-style: none; margin: 0; padding: 0; }
.agp-budget__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid rgba(42, 29, 22, .08); margin: 0; }
.agp-budget__list li:last-child { border-bottom: 0; }
.agp-budget__item { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.agp-budget__why { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.agp-budget__lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.agp-budget__lvl i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); }
.agp-budget__lvl i.is-on { background: var(--accent); }
.agp-budget__lvl--ongoing i { border-color: var(--accent-2); }
.agp-budget__lvl--ongoing i.is-on { background: var(--accent-2); }
.agp-budget__sub { display: block; margin: 10px 0 4px; }
.agp-budget__count { margin: 10px 0 2px; font-size: 14px; color: var(--muted); }
.agp-budget__tip { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); font-size: 14.5px; line-height: 1.5; }
.agp-budget__tip a { color: var(--accent-2); }

@media (max-width: 760px) {
	.agp-step { grid-template-columns: 1fr; gap: 12px; }
	.agp-steps__tab span { display: none; }
	.agp-steps__tab b { width: 40px; height: 40px; }
	.agp-steps__tabs::before { top: 19px; }
	.aff-tool { padding: 16px; }
	.agp-wheels { grid-template-columns: 1fr; }
	.quick-picks li { padding-left: 58px; }
	.quick-picks li::before { left: 14px; }
}
