/*
Theme Name: Everyday Answered
Theme URI: https://everydayanswered.com
Author: Everyday Answered
Description: A fast, accessible editorial theme for practical answers and explainers.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: everyday-answered
*/

:root {
  --ea-ink: #16213c;
  --ea-ink-soft: #536078;
  --ea-blue: #3659d9;
  --ea-blue-dark: #2442b5;
  --ea-aqua: #0f8a83;
  --ea-warm: #ffcf66;
  --ea-sky: #eef4ff;
  --ea-mist: #f6f8fc;
  --ea-line: #dfe5ef;
  --ea-white: #ffffff;
  --ea-radius: 18px;
  --ea-shadow: 0 14px 40px rgba(22, 33, 60, 0.09);
  --ea-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ea-ink);
  background: var(--ea-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ea-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ea-blue-dark); }

button, input, textarea, select { font: inherit; }

.ea-container { width: min(calc(100% - 40px), var(--ea-width)); margin-inline: auto; }
.ea-narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.screen-reader-text:focus,
.ea-skip-link:focus {
  clip: auto !important; width: auto; height: auto; margin: 0;
  top: 10px; left: 10px; z-index: 10000; padding: 10px 14px;
  background: var(--ea-white); color: var(--ea-ink); border-radius: 8px;
}

.ea-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,239,.85);
  backdrop-filter: blur(14px);
}

.ea-header-inner {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.ea-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ea-ink); text-decoration: none; }
.ea-brand:hover { color: var(--ea-ink); }
.ea-brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  color: var(--ea-white); background: linear-gradient(145deg, var(--ea-blue), #6a4de6);
  font-weight: 850; font-size: 22px; line-height: 1;
  box-shadow: 0 7px 18px rgba(54,89,217,.22);
}
.ea-brand-name { font-weight: 790; letter-spacing: -.035em; font-size: 21px; }

.ea-desktop-nav ul, .ea-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.ea-desktop-nav a { color: var(--ea-ink); text-decoration: none; font-size: 15px; font-weight: 650; }
.ea-desktop-nav a:hover, .ea-desktop-nav .current-menu-item > a { color: var(--ea-blue); }

.ea-header-search {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  color: var(--ea-ink); text-decoration: none; border: 1px solid var(--ea-line); border-radius: 50%;
}
.ea-header-search:hover { background: var(--ea-sky); border-color: #bfccef; }
.ea-header-actions { display: flex; align-items: center; gap: 12px; }
.ea-mobile-menu { display: none; position: relative; }
.ea-mobile-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border: 1px solid var(--ea-line); border-radius: 50%; display: grid; place-items: center; }
.ea-mobile-menu summary::-webkit-details-marker { display: none; }
.ea-mobile-menu nav { position: absolute; right: 0; top: 50px; width: min(310px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--ea-line); border-radius: 15px; background: var(--ea-white); box-shadow: var(--ea-shadow); }
.ea-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.ea-mobile-menu li + li { border-top: 1px solid var(--ea-line); }
.ea-mobile-menu a { display: block; padding: 11px 4px; text-decoration: none; color: var(--ea-ink); font-weight: 650; }

.ea-hero { padding: 56px 0 28px; }
.ea-hero-panel {
  position: relative; overflow: hidden; min-height: 450px; padding: clamp(42px, 7vw, 82px);
  border-radius: 30px; background: linear-gradient(135deg, #eff4ff 0%, #f9f8ff 52%, #eaf8f5 100%);
  border: 1px solid #dbe4f7;
}
.ea-hero-panel::after {
  content: "?"; position: absolute; right: 4%; bottom: -33%; color: rgba(54,89,217,.075);
  font-size: clamp(330px, 45vw, 600px); font-weight: 900; line-height: 1;
}
.ea-hero-content { position: relative; z-index: 2; max-width: 760px; }
.ea-eyebrow { margin: 0 0 15px; color: var(--ea-aqua); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; }
.ea-hero h1 { max-width: 740px; margin: 0; font-size: clamp(43px, 6vw, 76px); line-height: 1.03; letter-spacing: -.055em; }
.ea-hero-copy { max-width: 680px; margin: 22px 0 30px; color: var(--ea-ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }

.ea-search-form { display: flex; gap: 10px; max-width: 650px; padding: 8px; border: 1px solid #cfd9ed; border-radius: 16px; background: var(--ea-white); box-shadow: 0 10px 28px rgba(22,33,60,.08); }
.ea-search-form label { flex: 1; }
.ea-search-form input[type="search"] { width: 100%; height: 52px; padding: 0 15px; border: 0; outline: 0; color: var(--ea-ink); background: transparent; }
.ea-search-form button { flex: 0 0 auto; min-width: 112px; padding: 0 20px; border: 0; border-radius: 11px; color: var(--ea-white); background: var(--ea-blue); font-weight: 750; cursor: pointer; }
.ea-search-form button:hover { background: var(--ea-blue-dark); }

.ea-trust-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ea-ink-soft); font-size: 14px; font-weight: 650; }
.ea-trust-row li::before { content: "✓"; margin-right: 7px; color: var(--ea-aqua); font-weight: 900; }

.ea-section { padding: 54px 0; }
.ea-section--soft { background: var(--ea-mist); }
.ea-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ea-section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.04em; }
.ea-section-head p { max-width: 570px; margin: 7px 0 0; color: var(--ea-ink-soft); }
.ea-text-link { white-space: nowrap; font-weight: 750; text-decoration: none; }

.ea-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ea-category-card {
  min-height: 235px; padding: 26px; border: 1px solid var(--ea-line); border-radius: var(--ea-radius);
  color: var(--ea-ink); background: var(--ea-white); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ea-category-card:hover { transform: translateY(-4px); border-color: #bdc9e5; box-shadow: var(--ea-shadow); color: var(--ea-ink); }
.ea-category-number { display: block; margin-bottom: 34px; color: var(--ea-blue); font-size: 13px; font-weight: 820; letter-spacing: .11em; }
.ea-category-card h3 { margin: 0 0 9px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.ea-category-card p { margin: 0; color: var(--ea-ink-soft); font-size: 15px; line-height: 1.55; }
.ea-category-card--technology-apps { background: #f2f5ff; }
.ea-category-card--travel-transport { background: #eef9f6; }
.ea-category-card--home-everyday-life { background: #fff8e9; }
.ea-category-card--buying-comparing { background: #f8f1ff; }

.ea-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ea-card { overflow: hidden; border: 1px solid var(--ea-line); border-radius: var(--ea-radius); background: var(--ea-white); transition: transform .18s ease, box-shadow .18s ease; }
.ea-card:hover { transform: translateY(-3px); box-shadow: var(--ea-shadow); }
.ea-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, #e6edff, #e8f7f3); text-decoration: none; }
.ea-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ea-card:hover .ea-card-media img { transform: scale(1.025); }
.ea-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(54,89,217,.35); font-size: 75px; font-weight: 900; }
.ea-card-body { padding: 22px; }
.ea-card-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; color: var(--ea-ink-soft); font-size: 13px; font-weight: 700; }
.ea-card-category { color: var(--ea-aqua); text-decoration: none; }
.ea-card h2, .ea-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.27; letter-spacing: -.027em; }
.ea-card h2 a, .ea-card h3 a { color: var(--ea-ink); text-decoration: none; }
.ea-card h2 a:hover, .ea-card h3 a:hover { color: var(--ea-blue); }
.ea-card-excerpt { margin: 0; color: var(--ea-ink-soft); font-size: 15px; line-height: 1.58; }

.ea-empty { padding: 40px; border: 1px dashed #c5cede; border-radius: var(--ea-radius); text-align: center; background: var(--ea-white); }
.ea-empty h3 { margin-top: 0; }

.ea-principles { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.ea-principles-intro { padding: 30px; border-radius: var(--ea-radius); color: var(--ea-white); background: var(--ea-ink); }
.ea-principles-intro h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.12; letter-spacing: -.035em; }
.ea-principles-intro p { margin: 0; color: #dbe2f3; }
.ea-principle { padding: 28px; border: 1px solid var(--ea-line); border-radius: var(--ea-radius); background: var(--ea-white); }
.ea-principle strong { display: block; margin-bottom: 9px; font-size: 18px; line-height: 1.3; }
.ea-principle p { margin: 0; color: var(--ea-ink-soft); font-size: 15px; }

.ea-page-hero { padding: 68px 0 44px; background: linear-gradient(180deg, var(--ea-mist), var(--ea-white)); }
.ea-page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; letter-spacing: -.05em; }
.ea-page-description { max-width: 720px; margin: 18px 0 0; color: var(--ea-ink-soft); font-size: 20px; }

.ea-content { padding: 50px 0 82px; }
.ea-entry-content { font-size: 18px; }
.ea-entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.ea-entry-content > .alignwide { max-width: 1080px; }
.ea-entry-content > .alignfull { max-width: none; }
.ea-entry-content h2 { margin-top: 2.2em; font-size: 32px; line-height: 1.22; letter-spacing: -.035em; }
.ea-entry-content h3 { margin-top: 1.8em; font-size: 24px; line-height: 1.3; }
.ea-entry-content p, .ea-entry-content li { color: #293550; }
.ea-entry-content blockquote { padding: 8px 0 8px 24px; border-left: 4px solid var(--ea-blue); color: var(--ea-ink); font-size: 21px; }
.ea-entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ea-entry-content th, .ea-entry-content td { padding: 13px 14px; border: 1px solid var(--ea-line); text-align: left; }
.ea-entry-content th { background: var(--ea-sky); }

.ea-article-head { padding: 62px 0 28px; }
.ea-article-kicker { margin: 0 0 13px; }
.ea-article-kicker a { color: var(--ea-aqua); text-decoration: none; font-weight: 800; }
.ea-article-head h1 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.06; letter-spacing: -.052em; }
.ea-article-deck { margin: 20px 0 0; color: var(--ea-ink-soft); font-size: 21px; line-height: 1.55; }
.ea-article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--ea-ink-soft); font-size: 14px; }
.ea-featured-image { width: min(calc(100% - 40px), 1080px); margin: 18px auto 12px; overflow: hidden; border-radius: 24px; }
.ea-featured-image img { display: block; width: 100%; }

.ea-breadcrumbs { padding-top: 24px; color: var(--ea-ink-soft); font-size: 13px; }
.ea-breadcrumbs a { color: inherit; text-decoration: none; }
.ea-breadcrumbs span { margin: 0 7px; }

.ea-pagination { margin-top: 36px; }
.ea-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ea-pagination a, .ea-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--ea-line); border-radius: 10px; text-decoration: none; }
.ea-pagination .current { color: var(--ea-white); background: var(--ea-blue); border-color: var(--ea-blue); }

.ea-site-footer { padding: 54px 0 24px; color: #dce4f6; background: var(--ea-ink); }
.ea-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 50px; }
.ea-site-footer .ea-brand { color: var(--ea-white); }
.ea-footer-about { max-width: 430px; margin: 18px 0 0; color: #bfc9df; }
.ea-footer-title { margin: 0 0 13px; color: var(--ea-white); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ea-footer-list, .ea-footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ea-site-footer a { color: #dce4f6; text-decoration: none; }
.ea-site-footer a:hover { color: var(--ea-white); }
.ea-footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: #aab6d0; font-size: 13px; }

@media (max-width: 980px) {
  .ea-desktop-nav { display: none; }
  .ea-mobile-menu { display: block; }
  .ea-category-grid { grid-template-columns: repeat(2, 1fr); }
  .ea-post-grid { grid-template-columns: repeat(2, 1fr); }
  .ea-principles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .ea-container, .ea-narrow { width: min(calc(100% - 28px), var(--ea-width)); }
  .ea-header-inner { min-height: 66px; }
  .ea-brand-name { font-size: 19px; }
  .ea-hero { padding-top: 24px; }
  .ea-hero-panel { min-height: 0; padding: 36px 24px 42px; border-radius: 22px; }
  .ea-hero-copy { font-size: 18px; }
  .ea-search-form { display: grid; }
  .ea-search-form button { min-height: 48px; }
  .ea-category-grid, .ea-post-grid, .ea-principles, .ea-footer-grid { grid-template-columns: 1fr; }
  .ea-category-card { min-height: 0; }
  .ea-category-number { margin-bottom: 22px; }
  .ea-section { padding: 42px 0; }
  .ea-section-head { display: block; }
  .ea-section-head .ea-text-link { display: inline-block; margin-top: 12px; }
  .ea-page-hero, .ea-article-head { padding-top: 42px; }
  .ea-footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

