/*
Theme Name: The Shopping Ideas
Theme URI: https://theshoppingideas.com/
Author: The Shopping Ideas
Description: A flat, architectural blog theme — Archivo type, visible 2px rules, zero corner radius, grayscale imagery, and an emerald-green accent. Includes homepage, single article, category and author templates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theshoppingideas
Tags: blog, one-column, custom-menu, featured-images
*/

:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201e1d;
  --accent: #0a8a56;
  --accent-100: #eaf8f0; --accent-200: #cff0dd; --accent-300: #a4e2c2;
  --accent-400: #4fc78f; --accent-500: #10a866; --accent-600: #078049;
  --accent-700: #066339; --accent-800: #074a2c; --accent-900: #0a331f;
  --divider: rgba(32, 30, 29, 0.4);
  --ink-70: rgba(32, 30, 29, 0.7);
  --ink-78: rgba(32, 30, 29, 0.78);
  --font: "Archivo", system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/28px var(--font); text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--accent-700); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-200); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
.rule2 { height: 2px; border: 0; margin: 0; background: var(--divider); }
.kicker { display: block; font-size: 13px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-700); font-feature-settings: "tnum" 1; }
.grayscale img { filter: grayscale(1); display: block; }

/* — nav — */
.nav { display: flex; align-items: center; gap: 24px; padding: 16px max(var(--edge), calc((100% - 1200px) / 2 + var(--edge))); border-bottom: 2px solid var(--divider); }
.nav-brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav-brand:hover { color: var(--accent-700); }
.nav-links { display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links li { display: contents; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; white-space: nowrap; }
@media (max-width: 560px) { .nav-links { display: none; } }

/* — buttons & tags — */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 11px 20px; border: 2px solid transparent; border-radius: 0; font: 500 15px/20px var(--font); text-decoration: none; cursor: pointer; text-align: left; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-600); color: var(--bg); }
.btn-primary:active { background: var(--accent-700); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--accent-100); color: var(--accent-700); border-color: var(--accent-700); }
.tag { display: inline-block; padding: 5px 10px; border: 2px solid var(--divider); font-size: 12px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.tag:hover { border-color: var(--accent-700); color: var(--accent-700); }

/* — hero — */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 5vw, 96px); align-items: center; padding: 84px 0; }
.display { font-weight: 800; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0 -0.058em; }
.display a { text-decoration: none; }
.hero .kicker { margin: 0 0 14px; }
.hero-sub { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 28px 0 0; color: var(--ink-78); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-placeholder { width: 100%; aspect-ratio: 4 / 3; background: var(--surface); border: 2px solid var(--divider); }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding: 56px 0; } .hero-figure { order: -1; } }

/* — topics row — */
.topics { display: flex; align-items: baseline; gap: 14px 28px; flex-wrap: wrap; padding: 42px 0; }
.topics-list { display: flex; gap: 10px; flex-wrap: wrap; }

/* — article grid — */
.section { padding: 56px 0 70px; }
.section > .kicker { margin: 0 0 28px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px clamp(24px, 3vw, 48px); }
.card { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--divider); padding-top: 28px; }
.card-figure { margin: 0; }
.card-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-title { font-weight: 800; font-size: 24px; line-height: 28px; letter-spacing: -0.01em; margin: 0; }
.card-title a { text-decoration: none; }
.card-excerpt { font-size: 15.5px; line-height: 26px; margin: 0; color: var(--ink-78); }
.card-excerpt p { margin: 0; }
.card-meta { font-size: 13px; line-height: 14px; color: var(--ink-70); font-feature-settings: "tnum" 1; }

/* — trending list — */
.trend-list { display: grid; }
.trend { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 21px 0; border-top: 2px solid var(--divider); text-decoration: none; }
.trend:last-child { border-bottom: 2px solid var(--divider); }
.trend:hover { color: var(--accent-700); }
.trend-num { font-weight: 800; font-size: 15px; font-feature-settings: "tnum" 1; }
.trend-title { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.trend-cat { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-70); }
@media (max-width: 640px) { .trend { grid-template-columns: 40px minmax(0, 1fr); } .trend-cat { display: none; } }

/* — archive / page heads — */
.page-head { padding: 70px 0 42px; max-width: 900px; }
.page-head .kicker { margin: 0 0 14px; }
.page-head .display { font-size: clamp(34px, 4.2vw, 56px); }
.page-head-sub { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 21px 0 0; color: var(--ink-78); }
.author-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px clamp(24px, 4vw, 48px); align-items: center; padding: 70px 0 42px; }
.author-head img.avatar { filter: grayscale(1); width: 120px; height: 120px; border-radius: 0; display: block; }
@media (max-width: 560px) { .author-head { grid-template-columns: 1fr; } }

/* — single article — */
.entry-head { padding: 70px 0 42px; max-width: 900px; }
.entry-head .kicker { margin: 0 0 14px; }
.entry-standfirst { font-size: 19px; line-height: 30px; max-width: 58ch; margin: 28px 0 0; color: var(--ink-78); }
.entry-hero { margin: 0 0 56px; }
.entry-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.entry-content { max-width: 66ch; padding-bottom: 28px; }
.entry-content > * { margin: 0 0 28px; }
.entry-content h2 { font-weight: 800; font-size: 28px; line-height: 32px; letter-spacing: -0.015em; margin-top: 56px; }
.entry-content h3 { font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; margin-top: 42px; }
.entry-content a { color: var(--accent-700); }
.entry-content blockquote { font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.015em; color: var(--accent-700); border-left: 0; margin: 56px 0; padding: 0; max-width: 34ch; }
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { filter: grayscale(1); }
.entry-content pre { background: var(--surface); padding: 21px; overflow: auto; font-size: 14px; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; border-bottom: 2px solid var(--divider); padding: 10px 16px 10px 0; text-align: left; }
.entry-tags { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 0 56px; }
.entry-footer-meta { padding: 28px 0 56px; border-top: 2px solid var(--divider); font-size: 13px; color: var(--ink-70); }

/* — pagination — */
.pagination { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 0 70px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 2px solid var(--divider); text-decoration: none; font-size: 15px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pagination .page-numbers:hover { border-color: var(--accent-700); color: var(--accent-700); }

/* — poster close + footer — */
.close { background: var(--accent); color: var(--bg); }
.close-inner { max-width: 1200px; margin: 0 auto; padding: 84px var(--edge); }
.close h2 { font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 0 -0.058em; }
.close-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 42px; }
.close .btn-ghost { color: var(--bg); border-color: var(--bg); }
.close .btn-ghost:hover { background: var(--accent-600); color: var(--bg); border-color: var(--bg); }
.site-footer { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 56px 0; font-size: 13px; line-height: 28px; color: var(--ink-70); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer ul { display: flex; gap: 24px; margin: 0; padding: 0; }
.site-footer li { display: contents; list-style: none; }

/* — comments (minimal) — */
.comments-area { max-width: 66ch; padding: 0 0 70px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment { border-top: 2px solid var(--divider); padding: 21px 0; }
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"], .comments-area textarea { width: 100%; border: 2px solid var(--divider); background: var(--bg); padding: 10px 12px; font: 400 15px/24px var(--font); border-radius: 0; }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--accent); outline: none; }
.comments-area .submit { background: var(--accent); color: var(--bg); border: 0; padding: 11px 20px; font: 500 15px/20px var(--font); cursor: pointer; }
.comments-area .submit:hover { background: var(--accent-600); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; background: var(--accent); color: var(--bg); padding: 10px 16px; z-index: 100; }
