/*
Theme Name: Daniel Warner — The Affordable Edit
Theme URI: https://danielwarner.co.uk
Author: Daniel Warner
Description: A clean, editorial WordPress theme for thoughtful, budget-conscious product reviews.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: daniel-warner
*/

:root {
  --dw-ink: #19362f;
  --dw-ink-soft: #53655f;
  --dw-cream: #f5f4ee;
  --dw-paper: #fffefa;
  --dw-line: #dedfd5;
  --dw-lime: #d9f47a;
  --dw-coral: #ed9b79;
  --dw-blue: #c9e3de;
  --dw-lilac: #dbd3f0;
  --dw-serif: Georgia, "Times New Roman", serif;
  --dw-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dw-radius: 22px;
  --dw-shadow: 0 18px 45px rgba(25, 54, 47, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dw-cream);
  color: var(--dw-ink);
  font-family: var(--dw-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #426a50; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8fb43a; outline-offset: 4px; }
.dw-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.dw-skip-link { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 10px 16px; background: var(--dw-ink); color: white; border-radius: 8px; }
.dw-skip-link:focus { top: 12px; }

/* Header and navigation */
.dw-header { position: relative; z-index: 5; border-bottom: 1px solid rgba(25,54,47,.09); background: rgba(245,244,238,.94); }
.dw-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dw-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--dw-ink); text-decoration: none; }
.dw-brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dw-ink); color: var(--dw-lime); font-size: 13px; font-weight: 800; letter-spacing: -.08em; }
.dw-brand__name { font-family: var(--dw-serif); font-size: 19px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.dw-brand__tag { display: block; margin-top: 4px; color: var(--dw-ink-soft); font-family: var(--dw-sans); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dw-nav { display: flex; align-items: center; gap: 34px; }
.dw-nav__list { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.dw-nav a { color: var(--dw-ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.dw-nav a:hover { color: #64823a; }
.dw-nav__cta { padding: 11px 17px; border: 1px solid var(--dw-ink); border-radius: 999px; }
.dw-nav__cta:hover { background: var(--dw-ink); color: var(--dw-lime) !important; }
.dw-menu-toggle { display: none; border: 0; background: transparent; color: var(--dw-ink); padding: 8px; cursor: pointer; }

/* Shared details */
.dw-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--dw-ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .17em; line-height: 1.3; text-transform: uppercase; }
.dw-eyebrow::before { content: ""; display: block; width: 20px; height: 2px; background: #a8c25a; }
.dw-section { padding-block: 82px; }
.dw-section__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.dw-section__head h2 { margin: 0; font: 500 clamp(34px, 4vw, 48px)/1.07 var(--dw-serif); letter-spacing: -.045em; }
.dw-section__head p { max-width: 410px; margin: 0; color: var(--dw-ink-soft); font-size: 14px; }
.dw-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--dw-ink); border-radius: 999px; color: var(--dw-ink); font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.dw-button:hover { transform: translateY(-2px); background: var(--dw-ink); color: var(--dw-lime); }
.dw-button--dark { background: var(--dw-ink); color: #fffefa; }
.dw-button--dark:hover { background: #294f43; color: var(--dw-lime); }
.dw-button__arrow { font-size: 17px; line-height: 1; }

/* Home hero */
.dw-hero { padding: 68px 0 54px; }
.dw-hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.dw-hero h1 { max-width: 630px; margin: 0; font: 500 clamp(56px, 7.2vw, 94px)/.94 var(--dw-serif); letter-spacing: -.075em; }
.dw-hero h1 em { color: #7f9a46; font-weight: 400; }
.dw-hero__copy { max-width: 490px; margin: 25px 0 25px; color: var(--dw-ink-soft); font-size: 17px; line-height: 1.6; }
.dw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-hero__note { display: flex; align-items: center; gap: 9px; margin-top: 29px; color: var(--dw-ink-soft); font-size: 11px; }
.dw-hero__note-dot { width: 8px; height: 8px; border-radius: 50%; background: #9fc44e; }
.dw-feature { position: relative; min-height: 405px; overflow: hidden; padding: 28px; border-radius: 30px; background: var(--dw-ink); color: #fffefa; box-shadow: var(--dw-shadow); }
.dw-feature__label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.dw-feature__label span:last-child { color: var(--dw-lime); }
.dw-feature__art { position: absolute; top: 65px; right: 10%; width: 72%; height: 235px; }
.dw-feature__orb { position: absolute; width: 218px; height: 218px; top: 5px; right: 8px; border-radius: 50%; background: var(--dw-lime); }
.dw-feature__device { position: absolute; top: 42px; right: 70px; width: 114px; height: 172px; border: 7px solid #f4f4e8; border-radius: 28px; background: linear-gradient(140deg, #263f38, #46665b); transform: rotate(10deg); box-shadow: 10px 14px 26px rgba(0,0,0,.25); }
.dw-feature__device::before { content: ""; position: absolute; top: 8px; left: 50%; width: 23px; height: 5px; border-radius: 5px; background: #e4e8dc; transform: translateX(-50%); }
.dw-feature__device::after { content: "10K"; position: absolute; top: 58px; left: 0; width: 100%; color: var(--dw-lime); font-size: 25px; font-weight: 850; letter-spacing: -.07em; text-align: center; }
.dw-feature__spark { position: absolute; top: 20px; left: 34px; color: var(--dw-coral); font: 62px/1 var(--dw-serif); transform: rotate(-13deg); }
.dw-feature__sticker { position: absolute; top: 125px; left: 0; display: grid; place-items: center; width: 93px; height: 93px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; color: #fff; font: 11px/1.25 var(--dw-serif); text-align: center; transform: rotate(-11deg); }
.dw-feature__bottom { position: absolute; right: 28px; bottom: 25px; left: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.dw-feature__bottom p { max-width: 290px; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.dw-feature__bottom strong { display: block; margin-bottom: 7px; color: white; font: 500 24px/1.05 var(--dw-serif); letter-spacing: -.03em; }
.dw-feature__link { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dw-lime); color: var(--dw-ink); font-size: 20px; text-decoration: none; }

.dw-proof { border-block: 1px solid var(--dw-line); }
.dw-proof__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.dw-proof__item { display: flex; align-items: center; gap: 14px; padding: 21px 24px; border-right: 1px solid var(--dw-line); }
.dw-proof__item:first-child { padding-left: 0; }
.dw-proof__item:last-child { border: 0; }
.dw-proof__icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; background: var(--dw-lime); font-size: 15px; }
.dw-proof__item strong { display: block; font-size: 12px; line-height: 1.4; }
.dw-proof__item span { display: block; margin-top: 3px; color: var(--dw-ink-soft); font-size: 10px; }

/* Review cards */
.dw-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dw-card { overflow: hidden; border: 1px solid rgba(25,54,47,.1); border-radius: var(--dw-radius); background: var(--dw-paper); transition: transform .2s ease, box-shadow .2s ease; }
.dw-card:hover { transform: translateY(-4px); box-shadow: var(--dw-shadow); }
.dw-card__image { position: relative; display: grid; place-items: center; height: 202px; overflow: hidden; background: var(--card-bg, var(--dw-blue)); text-decoration: none; }
.dw-card__image::before { content: ""; position: absolute; width: 176px; height: 176px; border: 1px solid rgba(25,54,47,.15); border-radius: 50%; }
.dw-card__image::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(25,54,47,.1); border-radius: 50%; }
.dw-card__number { position: absolute; top: 17px; left: 19px; z-index: 1; color: rgba(25,54,47,.55); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.dw-card__type { position: absolute; right: 17px; bottom: 17px; z-index: 1; padding: 6px 10px; border: 1px solid rgba(25,54,47,.2); border-radius: 99px; color: var(--dw-ink); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dw-product-art { position: relative; z-index: 1; display: block; filter: drop-shadow(0 13px 12px rgba(25,54,47,.16)); }
.dw-product-art--bank { width: 78px; height: 125px; border: 5px solid #f9f7ee; border-radius: 18px; background: linear-gradient(145deg,#324d43,#182d27); transform: rotate(9deg); }
.dw-product-art--bank::before { content: ""; position: absolute; inset: 34px 13px auto; height: 24px; border-radius: 4px; background: var(--dw-lime); opacity: .92; }
.dw-product-art--bank::after { content: ""; position: absolute; top: -22px; left: 48%; width: 4px; height: 23px; border-radius: 5px; background: #f9f7ee; }
.dw-product-art--mouse { width: 120px; height: 83px; border: 5px solid #f7f5eb; border-radius: 58% 58% 47% 47%; background: #f0ede1; transform: rotate(-9deg); }
.dw-product-art--mouse::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 29px; background: #b8b8aa; transform: translateX(-50%); }
.dw-product-art--mouse::after { content: ""; position: absolute; top: 11px; left: 50%; width: 7px; height: 13px; border-radius: 6px; background: #9ba39a; transform: translateX(-50%); }
.dw-product-art--keyboard { width: 160px; height: 91px; border: 7px solid #35483f; border-radius: 14px; background-color: #f4f1e6; background-image: linear-gradient(90deg, rgba(45,62,53,.55) 3px, transparent 3px), linear-gradient(rgba(45,62,53,.55) 3px, transparent 3px); background-size: 18px 17px; transform: rotate(-7deg); }
.dw-product-art--speaker { width: 115px; height: 115px; border: 9px solid #e9e6d9; border-radius: 25px; background: repeating-radial-gradient(circle at center, #4c6c5d 0 2px, #284238 3px 5px); transform: rotate(8deg); }
.dw-product-art--earbuds { width: 112px; height: 78px; border: 7px solid #f7f5eb; border-radius: 23px; background: #f5f3e9; }
.dw-product-art--earbuds::before, .dw-product-art--earbuds::after { content: ""; position: absolute; top: -50px; width: 25px; height: 66px; border-radius: 17px 17px 14px 14px; background: #243d33; border: 3px solid #e8e7db; }
.dw-product-art--earbuds::before { left: 18px; transform: rotate(-12deg); }
.dw-product-art--earbuds::after { right: 18px; transform: rotate(12deg); }
.dw-card__body { padding: 19px 20px 21px; }
.dw-card__meta { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--dw-ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dw-card__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #a8bf61; }
.dw-card h3 { margin: 0; font: 500 25px/1.12 var(--dw-serif); letter-spacing: -.04em; }
.dw-card h3 a { text-decoration: none; }
.dw-card__excerpt { min-height: 52px; margin: 12px 0 18px; color: var(--dw-ink-soft); font-size: 12px; line-height: 1.55; }
.dw-card__read { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-decoration: none; }
.dw-card__read span { font-size: 16px; transition: transform .18s ease; }
.dw-card__read:hover span { transform: translateX(4px); }

/* Method, about and footer */
.dw-method { padding-block: 74px; background: var(--dw-lime); }
.dw-method__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.dw-method h2 { max-width: 400px; margin: 0; font: 500 clamp(38px, 4.8vw, 59px)/1.02 var(--dw-serif); letter-spacing: -.055em; }
.dw-method__lead { max-width: 530px; margin: 4px 0 25px; font-size: 15px; line-height: 1.65; }
.dw-method__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 21px; border-top: 1px solid rgba(25,54,47,.28); }
.dw-method__step b { display: block; margin-bottom: 8px; font: 500 20px/1 var(--dw-serif); }
.dw-method__step span { display: block; color: rgba(25,54,47,.78); font-size: 11px; line-height: 1.5; }
.dw-about { padding-block: 74px; }
.dw-about__inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 36px 42px; border: 1px solid var(--dw-line); border-radius: 26px; background: rgba(255,254,250,.54); }
.dw-about__text { max-width: 690px; }
.dw-about h2 { margin: 0 0 11px; font: 500 36px/1.08 var(--dw-serif); letter-spacing: -.045em; }
.dw-about p { margin: 0; color: var(--dw-ink-soft); font-size: 13px; }
.dw-about__stamp { flex: 0 0 94px; display: grid; place-items: center; width: 94px; height: 94px; border-radius: 50%; background: var(--dw-ink); color: var(--dw-lime); font: 700 13px/1.25 var(--dw-serif); text-align: center; transform: rotate(8deg); }
.dw-footer { padding: 30px 0 25px; border-top: 1px solid var(--dw-line); }
.dw-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-bottom: 22px; }
.dw-footer__links { display: flex; gap: 22px; }
.dw-footer__links a { color: var(--dw-ink-soft); font-size: 11px; text-decoration: none; }
.dw-footer__bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 17px; border-top: 1px solid var(--dw-line); color: var(--dw-ink-soft); font-size: 10px; }
.dw-footer__bottom p { margin: 0; }

/* Single review and standard pages */
.dw-breadcrumb { padding-top: 22px; color: var(--dw-ink-soft); font-size: 11px; }
.dw-breadcrumb a { text-decoration: none; }
.dw-article { width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 90px; }
.dw-article__head { margin-bottom: 36px; }
.dw-article__category { display: inline-flex; padding: 7px 11px; border-radius: 99px; background: var(--dw-lime); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.dw-article h1 { margin: 18px 0 14px; font: 500 clamp(42px, 6vw, 66px)/.99 var(--dw-serif); letter-spacing: -.06em; }
.dw-article__dek { max-width: 650px; margin: 0; color: var(--dw-ink-soft); font-size: 17px; line-height: 1.55; }
.dw-article__byline { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--dw-ink-soft); font-size: 11px; }
.dw-article__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dw-ink); color: var(--dw-lime); font-size: 10px; font-weight: 800; }
.dw-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 35px 0; padding: 24px; border-radius: 20px; background: var(--dw-ink); color: white; }
.dw-verdict__label { display: block; margin-bottom: 8px; color: var(--dw-lime); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.dw-verdict strong { display: block; font: 500 23px/1.12 var(--dw-serif); }
.dw-verdict p { margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.5; }
.dw-article__content { color: #293e37; font-size: 16px; line-height: 1.8; }
.dw-article__content h2 { margin: 38px 0 12px; font: 500 32px/1.12 var(--dw-serif); letter-spacing: -.035em; }
.dw-article__content h3 { margin: 27px 0 8px; font: 600 18px/1.3 var(--dw-sans); }
.dw-article__content p { margin: 0 0 19px; }
.dw-article__content ul { padding-left: 22px; margin: 0 0 21px; }
.dw-article__content li { padding-left: 4px; margin: 5px 0; }
.dw-article__content blockquote { margin: 28px 0; padding: 3px 0 3px 21px; border-left: 3px solid #a8c25a; color: var(--dw-ink); font: 500 22px/1.45 var(--dw-serif); }
.dw-article__content a { text-decoration-color: #9bb84b; }
.dw-editorial-note { margin-top: 38px; padding: 17px 20px; border: 1px solid var(--dw-line); border-radius: 13px; color: var(--dw-ink-soft); font-size: 11px; line-height: 1.6; }
.dw-source-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.dw-source-list a { display: inline-flex; padding: 7px 10px; border: 1px solid var(--dw-line); border-radius: 99px; color: var(--dw-ink); font-size: 10px; text-decoration: none; }
.dw-related { padding-top: 12px; border-top: 1px solid var(--dw-line); }
.dw-related .dw-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dw-page { width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 100px; }
.dw-page h1 { margin: 0 0 25px; font: 500 clamp(42px, 6vw, 66px)/.99 var(--dw-serif); letter-spacing: -.06em; }
.dw-page__content { color: #293e37; font-size: 16px; line-height: 1.8; }

/* Archive/search fallback */
.dw-archive { padding: 66px 0 90px; }
.dw-archive__intro { max-width: 650px; margin-bottom: 35px; }
.dw-archive h1 { margin: 0 0 13px; font: 500 clamp(45px, 6vw, 72px)/.98 var(--dw-serif); letter-spacing: -.06em; }
.dw-archive__intro p { margin: 0; color: var(--dw-ink-soft); }
.dw-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 35px; }
.dw-pagination .nav-links { display: flex; align-items: center; gap: 12px; }
.dw-pagination a, .dw-pagination span { padding: 9px 14px; border: 1px solid var(--dw-line); border-radius: 99px; font-size: 12px; text-decoration: none; }
.dw-pagination .current { background: var(--dw-ink); color: white; }

@media (max-width: 850px) {
  .dw-hero__grid { gap: 36px; }
  .dw-feature { min-height: 365px; }
  .dw-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dw-method__grid { gap: 35px; }
}
@media (max-width: 640px) {
  .dw-wrap { width: min(100% - 34px, 540px); }
  .dw-header__inner { min-height: 72px; }
  .dw-menu-toggle { display: inline-grid; place-items: center; }
  .dw-menu-toggle svg { width: 23px; height: 23px; }
  .dw-nav { position: absolute; top: 71px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 18px 17px; border-bottom: 1px solid var(--dw-line); background: var(--dw-cream); }
  .dw-nav.is-open { display: flex; }
  .dw-nav__list { align-items: stretch; flex-direction: column; gap: 0; }
  .dw-nav a { padding: 13px 5px; }
  .dw-nav__cta { align-self: flex-start; margin-top: 5px; padding: 10px 16px !important; }
  .dw-hero { padding: 46px 0 35px; }
  .dw-hero__grid { grid-template-columns: 1fr; gap: 35px; }
  .dw-hero h1 { font-size: clamp(59px, 15vw, 82px); }
  .dw-hero__copy { margin: 18px 0 22px; font-size: 15px; }
  .dw-feature { min-height: 360px; }
  .dw-feature__art { right: 8%; }
  .dw-proof__inner { grid-template-columns: 1fr; }
  .dw-proof__item, .dw-proof__item:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--dw-line); }
  .dw-proof__item:last-child { border-bottom: 0; }
  .dw-section { padding-block: 56px; }
  .dw-section__head { display: block; }
  .dw-section__head p { margin-top: 12px; }
  .dw-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .dw-card__image { height: 215px; }
  .dw-card__excerpt { min-height: 0; }
  .dw-method { padding-block: 53px; }
  .dw-method__grid { grid-template-columns: 1fr; gap: 23px; }
  .dw-method__steps { gap: 12px; }
  .dw-method__step b { font-size: 16px; }
  .dw-method__step span { font-size: 10px; }
  .dw-about { padding-block: 48px; }
  .dw-about__inner { align-items: flex-start; padding: 26px 22px; }
  .dw-about__stamp { flex-basis: 66px; width: 66px; height: 66px; font-size: 10px; }
  .dw-about h2 { font-size: 29px; }
  .dw-footer__top, .dw-footer__bottom { align-items: flex-start; flex-direction: column; }
  .dw-footer__links { flex-wrap: wrap; gap: 13px 18px; }
  .dw-article { padding-top: 35px; }
  .dw-article h1 { font-size: clamp(43px, 12vw, 60px); }
  .dw-article__dek { font-size: 15px; }
  .dw-verdict { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .dw-related .dw-card-grid { grid-template-columns: 1fr; }
  .dw-archive { padding: 48px 0 70px; }
}
