/* W3dan — Internet Marketing, 2026 refresh. SERP-native design. */
:root {
  --bg: #ffffff;
  --panel: #f1f4f8;
  --ink: #1c2430;
  --muted: #5b6675;
  --link: #1a5fd6;
  --link-hover: #0d47ad;
  --url: #0b7a3b;
  --gold: #e8a800;
  --gold-ink: #6b4e00;
  --rule: #e3e8ef;
  --max: 880px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202124;
    --panel: #2b2d31;
    --ink: #e8eaed;
    --muted: #9aa0a6;
    --link: #8ab4f8;
    --link-hover: #aecbfa;
    --url: #99c58f;
    --gold: #fdd663;
    --gold-ink: #fdd663;
    --rule: #3c4043;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.3rem; }

header.site { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.wordmark .proto { color: var(--muted); opacity: 0.75; }
.wordmark:hover { text-decoration: none; color: var(--link); }
nav.top { display: flex; gap: 0.95rem; flex-wrap: wrap; font-size: 0.85rem; font-weight: 500; }
nav.top a { color: var(--muted); }
nav.top a:hover { color: var(--link); text-decoration: none; }

/* Hero: the search moment */
.hero { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--rule); }
.searchbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 560px;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--link);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  box-shadow: 0 4px 18px rgba(26, 95, 214, 0.14);
}
.searchbar .query {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  color: var(--ink);
}
.caret {
  width: 2px; height: 1.25em;
  background: var(--link);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero-count { margin: 0.7rem 0 2rem; font-size: 0.8rem; color: var(--muted); }
.hero h1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 17em;
}
.hero-copy { margin-top: 1rem; color: var(--muted); max-width: 40em; }

main { padding: 2.2rem 0 3rem; }

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* Keyword chips */
.keywords { padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 0.32rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
}
.note { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }

/* Results list — the signature */
.results { padding-top: 2rem; }
.result {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 0.9rem;
  margin: 0 -0.9rem;
  border-radius: 12px;
  color: inherit;
}
.result:hover { background: var(--panel); text-decoration: none; }
.result img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.crumb {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--url);
  margin-bottom: 0.15rem;
}
.result h2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--link);
  margin: 0.05rem 0 0.3rem;
}
.result:hover h2 { text-decoration: underline; }
.result p { font-size: 0.9rem; color: var(--muted); }
.badge {
  display: inline-block;
  vertical-align: 0.15em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .result { grid-template-columns: 1fr; }
  .result img { max-width: 320px; }
}

/* Article pages */
article.page { max-width: 700px; }
article.page header { margin-bottom: 1.4rem; }
article.page h1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 0.35rem;
}
.page-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  margin: 0 0 1.7rem;
}
article.page p { margin: 0 0 1.1rem; }
article.page h2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 1.8rem 0 0.7rem;
}
article.page ul:not(.chips) { margin: 0 0 1.1rem 1.3rem; }
article.page ul:not(.chips) li { margin-bottom: 0.35rem; }
article.page .chips { margin: 0 0 1.2rem; }
.pull {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--link);
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

/* Blogroll */
.blogroll { margin: 0 0 1.2rem; }
.blogroll dt { font-weight: 600; margin-top: 1rem; }
.blogroll dd { color: var(--muted); font-size: 0.94rem; margin-top: 0.15rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

footer.site { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-size: 0.8rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
