/* djynntech.dev: one small stylesheet, system fonts, light and dark. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b1a;
  --muted: #5f5b56;
  --line: #e6e2dc;
  --accent: #b4461f;
  --accent-text: #ffffff;
  --radius: 14px;
  --wrap: 68rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1c1a;
    --text: #efece8;
    --muted: #a8a29b;
    --line: #2f2d2a;
    --accent: #f08a5d;
    --accent-text: #1a0d07;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 8px;
}
.skip:focus { left: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.mark { width: 1.75rem; height: 1.75rem; }
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-top: clamp(4rem, 12vw, 8rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; margin: 0 0 1rem; }
h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.035em;
  margin: 0 0 1.25rem; max-width: 16ch;
}
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 38ch; margin: 0 0 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: var(--surface);
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { filter: brightness(1.06); }

/* Sections */
.section { padding-top: 3.5rem; padding-bottom: 1rem; border-top: 1px solid var(--line); }
h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1.25rem; }
.section > p { max-width: 60ch; margin-top: 0; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card.muted { border-style: dashed; background: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 !important; }
.tags span { font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }

/* Footer */
.site-footer { margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; }
