/* nvdev – clean black studio site. The clay look lives only in the logo. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --ok: #3fae6a;
  --bad: #e5534b;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: 1040px; width: 100%; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(10,10,10,.88); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 34px; width: auto; display: block; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
nav a:hover, nav a.active { color: var(--text); background: var(--surface-2); }

main { flex: 1; padding: 56px 0 80px; }
main.narrow .wrap { max-width: 720px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Home */
.hero { text-align: center; padding: 40px 0 72px; }
.hero-logo { width: min(440px, 85%); height: auto; display: block; margin: 0 auto 28px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 520px; margin: 0 auto 32px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
section + section { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  background: var(--text); color: #000; border: 1px solid var(--text); border-radius: 10px; padding: 11px 22px;
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: #000; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.btn.danger { background: transparent; color: var(--bad); border-color: #4a2523; }
.btn.danger:hover { background: #2a1513; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Content pages */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* Forms */
.form { display: grid; gap: 18px; }
.form.narrow { max-width: 360px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: var(--text); width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--muted); outline: none; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.ok, .err { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; }
.ok { background: #0f2418; border-color: #1f4d30; color: #9fe0b5; }
.err { background: #2a1513; border-color: #4a2523; color: #f3a29d; }

/* Admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filters select, .actions select { width: auto; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.msg p { overflow-wrap: anywhere; }
.msg.handled { opacity: .5; }
.msg .meta { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 560px) {
  .top .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 8px; }
  main { padding-top: 32px; }
}
