/*
Theme Name: DailyDevs
Theme URI: https://dailydevs.dev/
Author: DailyDevs
Description: A clean, editorial WordPress theme for the DailyDevs technology blog.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dailydevs
*/

:root {
  --dd-ink: #101827;
  --dd-muted: #607089;
  --dd-paper: #f6f8fb;
  --dd-surface: #ffffff;
  --dd-line: #dce4ee;
  --dd-accent: #2864ff;
  --dd-accent-dark: #1947c2;
  --dd-radius: 18px;
  --dd-shadow: 0 18px 55px rgba(16, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dd-ink);
  background: var(--dd-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.dd-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.dd-site-header { background: var(--dd-surface); border-bottom: 1px solid var(--dd-line); }
.dd-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.dd-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--dd-accent); border-radius: 10px; font-size: 15px; }
.dd-nav ul { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.dd-nav a { color: var(--dd-muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.dd-nav a:hover, .dd-nav .current-menu-item a { color: var(--dd-accent); }
.dd-hero { padding: clamp(75px, 12vw, 145px) 0 95px; background: radial-gradient(circle at 85% 18%, #dce8ff 0, transparent 30%), var(--dd-paper); }
.dd-kicker { margin: 0 0 16px; color: var(--dd-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dd-hero h1 { max-width: 780px; margin: 0; font-size: clamp(44px, 7vw, 82px); line-height: .98; letter-spacing: -.07em; }
.dd-hero p { max-width: 650px; margin: 25px 0 0; color: var(--dd-muted); font-size: 19px; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dd-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border-radius: 999px; background: var(--dd-accent); color: white; text-decoration: none; font-weight: 750; }
.dd-button:hover { background: var(--dd-accent-dark); }
.dd-button--quiet { background: transparent; color: var(--dd-ink); border: 1px solid var(--dd-line); }
.dd-section { padding: 88px 0; }
.dd-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dd-section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.055em; }
.dd-section-heading p { max-width: 480px; margin: 0; color: var(--dd-muted); }
.dd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dd-card { overflow: hidden; border: 1px solid var(--dd-line); border-radius: var(--dd-radius); background: var(--dd-surface); box-shadow: var(--dd-shadow); }
.dd-card-body { padding: 24px; }
.dd-card h3 { margin: 9px 0 10px; font-size: 23px; line-height: 1.12; letter-spacing: -.035em; }
.dd-card p { margin: 0; color: var(--dd-muted); }
.dd-card-meta { color: var(--dd-accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dd-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dd-newsletter { padding: 52px; border-radius: var(--dd-radius); background: var(--dd-ink); color: white; }
.dd-newsletter h2 { max-width: 600px; margin: 0; font-size: clamp(30px, 5vw, 54px); line-height: 1; letter-spacing: -.06em; }
.dd-newsletter p { max-width: 560px; color: #b7c2d5; }
.dd-site-footer { padding: 34px 0; border-top: 1px solid var(--dd-line); color: var(--dd-muted); font-size: 14px; }
.dd-post { max-width: 820px; padding: 88px 0; }
.dd-post h1 { margin: 0 0 20px; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.065em; }
.dd-post-content { font-size: 18px; }
.dd-post-content > * { margin-top: 1.4em; }
.dd-post-content img { max-width: 100%; height: auto; border-radius: var(--dd-radius); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .dd-shell { width: min(100% - 28px, 1160px); }
  .dd-header-inner, .dd-section-heading { align-items: flex-start; flex-direction: column; }
  .dd-nav ul { gap: 10px 16px; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-newsletter { padding: 32px 24px; }
}
