:root {
  color-scheme: dark;
  --bg: #050914;
  --panel: rgba(7, 15, 28, 0.94);
  --ink: #f2eee6;
  --muted: #aab1bd;
  --faint: #747e8e;
  --line: rgba(154, 168, 189, 0.32);
  --line-soft: rgba(154, 168, 189, 0.18);
  --accent: #cffe42;
  --accent-deep: #cffe42;
  --accent-wash: rgba(207, 254, 66, 0.09);
  --warn: #ffae64;
  --warn-wash: rgba(255, 174, 100, 0.09);
  --serif: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 900px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(5, 9, 20, 0.74), rgba(5, 9, 20, 0.9)),
    url('/2026-08-02_styl-night-wardrobe-backdrop.jpg') center top / cover fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-color: rgba(207, 254, 66, 0.45); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  border-bottom: 1px solid rgba(207, 254, 66, 0.28);
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

header .wrap {
  display: flex;
  width: min(100%, 1180px);
  max-width: none;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 5vw, 56px);
}

header a,
footer a { min-height: 44px; align-items: center; }

header a:first-child { position: relative; min-width: 78px; }
header .logo { display: none; }
header a:first-child::after {
  content: "STYL";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

header a:last-child {
  border: 1px solid rgba(207, 254, 66, 0.5);
  padding: 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

main.wrap {
  position: relative;
  width: min(calc(100% - 32px), var(--maxw));
  max-width: var(--maxw);
  margin: clamp(28px, 6vw, 76px) auto;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
}

main.wrap::before,
main.wrap::after {
  position: absolute;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
main.wrap::before { content: "// STYL LEGAL ARCHIVE"; top: 18px; right: 22px; }
main.wrap::after { content: "001"; right: 22px; bottom: 18px; }

.tag {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.tag::before { content: "// "; }

h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-transform: uppercase;
}

.updated {
  margin: 24px 0 42px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 48px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}
h2::before { color: var(--accent); content: "/ "; font-family: var(--mono); }
h3 { color: var(--ink); font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; }
p, li { color: #d5d7dc; }
b, strong { color: var(--ink); }
.muted, small { color: var(--muted); }
ul, ol { padding-left: 1.4em; }
li::marker { color: var(--accent); }

code, .ph {
  border: 1px solid rgba(207, 254, 66, 0.25);
  border-radius: 0;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--mono);
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 0;
  border-collapse: collapse;
  background: rgba(3, 9, 18, 0.65);
}
th, td { border: 1px solid var(--line-soft); padding: 12px 14px; color: #d5d7dc; text-align: left; vertical-align: top; }
th { background: var(--accent-wash); color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.note, .disclaimer {
  border-radius: 0;
  padding: 18px 20px;
  color: #d5d7dc;
  font-size: 0.92rem;
}
.note { border: 1px solid rgba(207, 254, 66, 0.44); background: var(--accent-wash); }
.note b { color: var(--accent); }
.disclaimer { border: 1px solid rgba(255, 174, 100, 0.55); background: var(--warn-wash); }
.disclaimer b { color: var(--warn); }

footer.wrap {
  width: min(calc(100% - 32px), var(--maxw));
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(207, 254, 66, 0.28);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 2.2;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  body { background-image: linear-gradient(rgba(5, 9, 20, 0.76), rgba(5, 9, 20, 0.94)), url('/2026-08-02_styl-night-wardrobe-backdrop-mobile.jpg'); }
  header .wrap { min-height: 64px; }
  header a:last-child { padding-inline: 12px; font-size: 9px; }
  main.wrap { width: 100%; margin: 0; padding: 52px 22px 64px; border-width: 0 0 1px; }
  main.wrap::before { top: 18px; left: 22px; right: auto; }
  h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .updated { margin-bottom: 34px; }
  footer.wrap { width: calc(100% - 44px); }
}

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