/* ============================================================
   brondijk.xyz — soft neo-brutalist theme
   warm paper · chunky thin outlines · hard offset shadows
   one red accent · mono for small accents only
   ============================================================ */

:root {
  /* palette (light) */
  --bg: #FAF3E7;
  --surface: #FFFFFF;
  --ink: #141414;
  --muted: #6F6A60;
  --faint: #C9C2B4;
  --accent: #E5484D;        /* primary pop */
  --accent-soft: rgba(229, 72, 77, 0.10);
  --green: #19B97F;
  --gold: #FFD23F;
  --teal: #42BEAA;
  --pink: #FF5DA2;

  --border: var(--ink);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 880px;
  --pad: 22px;

  --t: 0.18s ease;
}

body.dark {
  --bg: #16130D;
  --surface: #211C13;
  --ink: #F4ECDC;
  --muted: #b3a98f;
  --faint: #4a4334;
  --accent: #FF6B70;
  --accent-soft: rgba(255, 107, 112, 0.14);
  --border: #F4ECDC;
  --shadow: 4px 4px 0 #000;
  --shadow-sm: 2px 2px 0 #000;
  --shadow-hover: 6px 6px 0 #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; color: var(--accent); }
header.site nav { display: flex; align-items: center; gap: 22px; }
header.site nav a {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  color: var(--muted);
}
header.site nav a:hover { color: var(--ink); text-decoration: none; }

/* dark-mode toggle */
.theme-toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: 50%;
  background: var(--surface); cursor: pointer; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: transform var(--t);
  line-height: 1; padding: 0;
}
.theme-toggle:hover { transform: translate(-1px, -1px); }
.theme-toggle:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 70px 0 22px; }
.hero .kicker {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 5.5vw, 48px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px;
}
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; }

/* ---------- section label ---------- */
.section-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin: 56px 0 20px; display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1.5px; background: var(--border); opacity: 0.18; }

/* ---------- grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.card.featured { box-shadow: 5px 5px 0 var(--accent); }
.card.featured:hover { box-shadow: 7px 7px 0 var(--accent); }

.card .shot {
  position: relative;
  height: 168px; border-radius: var(--radius-sm); margin-bottom: 16px;
  border: 1.5px solid var(--border); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--accent-soft) 0 12px, transparent 12px 24px),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card .shot .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); pointer-events: none;
}

.card h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card p.desc { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.card .how {
  font-size: 13px; color: var(--ink); margin-bottom: 16px;
  padding-left: 12px; border-left: 2.5px solid var(--accent);
}
.card .how b { font-weight: 600; }
.card .foot { margin-top: auto; }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- status pill ---------- */
.status {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--border);
}
.status .pip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--green); }
.status.daily { color: var(--accent); }
.status.archive { color: var(--muted); }
.status.live .pip { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- ctas ---------- */
.cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent);
}
.cta:hover { text-decoration: underline; }
.nolink { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- blog teaser ---------- */
.post { padding: 18px 0; border-bottom: 1.5px solid var(--border); border-bottom-color: var(--faint); }
.post:last-child { border-bottom: none; }
.post .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.post h4 a { color: var(--ink); }
.post h4 a:hover { color: var(--accent); text-decoration: none; }
.post p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 74px; border-top: 1.5px solid var(--border);
}
footer.site .wrap {
  padding-top: 26px; padding-bottom: 50px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }

/* ---------- fade-in ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero, .section-label, .grid, .post-list { animation: fadeIn 0.5s ease-out both; }

@media (max-width: 768px) {
  .hero { padding-top: 48px; }
  header.site nav { gap: 16px; }
}

/* ============================================================
   LEGACY ALIASES — map old variable names onto the new palette
   so any leftover inline styles render on-theme.
   ============================================================ */
:root {
  --primary-color: var(--accent);
  --hover-color: var(--accent);
  --accent-color: var(--accent);
  --text-color: var(--ink);
  --secondary-color: var(--muted);
  --secondary-text: var(--muted);
  --bg-color: var(--bg);
  --card-bg: var(--surface);
  --border-color: var(--border);
}

/* ============================================================
   CONTENT PAGES — blog, project detail, resources
   Re-themes the class vocabulary used across subpages.
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad) 60px; }

.container h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.container h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.container h3 { font-size: 18px; font-weight: 700; }
.container p { margin-bottom: 14px; line-height: 1.7; }
.container ul, .container ol { margin: 0 0 14px; padding-left: 22px; }
.container li { margin-bottom: 8px; line-height: 1.65; }
.container strong { font-weight: 700; }

.back-link, .project-link {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--accent); display: inline-block; margin-bottom: 26px;
}

code {
  font-family: var(--font-mono); font-size: 0.86em;
  padding: 1.5px 6px; border-radius: 5px;
  background: var(--surface); border: 1.5px solid var(--faint); color: var(--ink);
}

/* --- project detail sections --- */
.project-section { margin-bottom: 34px; }
.project-section h2 { display: flex; align-items: center; gap: 8px; }
.emoji { line-height: 1; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tech-item {
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
}

.feature-list { list-style: none; padding-left: 20px; margin: 0 0 14px; }
.feature-list li { position: relative; margin-bottom: 10px; line-height: 1.65; }
.feature-list li::before { content: "–"; color: var(--accent); font-weight: 700; position: absolute; left: -20px; }

.visit-site, .download-btn {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  padding: 11px 18px; background: var(--accent); color: #fff;
  border: 1.5px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform var(--t), box-shadow var(--t);
}
.visit-site { margin-top: 12px; }
.visit-site:hover, .download-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); color: #fff; text-decoration: none; }

.instruction-text {
  margin-bottom: 30px; padding: 16px 18px; font-style: italic;
  background: var(--accent-soft); border: 1.5px solid var(--border);
  border-left: 5px solid var(--accent); border-radius: var(--radius); color: var(--ink);
}

/* --- blog list --- */
.page-title { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 28px; }
.blog-post-preview { margin-bottom: 6px; }
.blog-post-preview h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.blog-post-preview h2 a { color: var(--ink); }
.blog-post-preview h2 a:hover { color: var(--accent); text-decoration: none; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.post-excerpt { color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.read-more { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
hr.section-divider, .section-divider { border: none; border-top: 1.5px solid var(--faint); margin: 28px 0; }

/* --- blog post --- */
.blog-post { max-width: 720px; margin: 0 auto; }
.post-title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 8px; }
.post-content { line-height: 1.8; font-size: 16.5px; }
.post-content p { margin-bottom: 1.3em; }
.post-content h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.post-content h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.post-nav { margin-top: 44px; padding-top: 20px; border-top: 1.5px solid var(--faint); }
.post-nav a { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* --- contact form --- */
.contact-section { max-width: 600px; }
.contact-info { margin-bottom: 24px; color: var(--muted); }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; color: var(--ink);
  font-family: var(--font-mono); font-size: 14px; box-shadow: var(--shadow-sm);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.form-group textarea { min-height: 150px; resize: vertical; }
.btn-primary, .btn {
  background: var(--accent); color: #fff; border: 1.5px solid var(--border);
  padding: 11px 22px; cursor: pointer; font-family: var(--font-mono); font-weight: 700;
  border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.btn-primary:hover, .btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; box-shadow: var(--shadow-sm); }

/* --- side quests --- */
.quests-intro {
  margin-bottom: 32px; padding: 20px 22px; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--border);
  border-left: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quests-intro p { margin-bottom: 10px; }
.quests-intro p:last-child { margin-bottom: 0; }
.quests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.quest-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.quest-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.quest-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.quest-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.quest-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.quest-tech { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tech-tag {
  font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
}
.quest-link { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }

.status-tag, .status-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--green); color: #08130d; display: inline-block;
}
.status-badge { font-size: 11px; margin-left: 10px; vertical-align: middle; }
.status-tag.in-progress { background: var(--gold); color: #1a1505; }

/* --- workflow steps --- */
.workflow-step {
  margin-bottom: 20px; padding: 22px; background: var(--surface);
  border: 1.5px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.workflow-step h3 { margin-top: 0; display: flex; align-items: center; gap: 14px; font-size: 18px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; background: var(--accent); color: #fff;
  border: 1.5px solid var(--border); border-radius: 50%;
  font-family: var(--font-mono); font-weight: 800; font-size: 14px;
}
.workflow-step p { margin-bottom: 12px; line-height: 1.65; }
.workflow-step p:last-child { margin-bottom: 0; }
.file-link { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.file-link:hover { border-bottom: 1px solid var(--accent); text-decoration: none; }

/* --- code block / images --- */
.code-block {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; margin: 20px 0;
  font-family: var(--font-mono); font-size: 13px; box-shadow: var(--shadow-sm);
}
.code-block pre { margin: 0; white-space: pre; }
.demo-image, .workflow-image, .image-container img {
  max-width: 100%; border-radius: var(--radius-sm); border: 1.5px solid var(--border); margin: 20px 0;
}
