:root {
  --bg: #060606;
  --bg-soft: #0e0e0f;
  --bg-elevated: rgba(18, 18, 18, 0.84);
  --bg-strong: rgba(10, 10, 10, 0.96);
  --panel: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(9, 9, 9, 0.96));
  --panel-strong: rgba(7, 7, 7, 0.98);
  --ink: #f2f2ef;
  --muted: #8d918d;
  --muted-strong: #c9cbc6;
  --line: rgba(210, 214, 210, 0.12);
  --line-strong: rgba(220, 223, 220, 0.22);
  --accent: #d0d0cc;
  --accent-dark: #a7aaa7;
  --glow: rgba(255, 255, 255, 0.08);
  --warning: #b08b52;
  --success: #87b08c;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 50% -5%, rgba(255, 255, 255, 0.09), transparent 18%),
    radial-gradient(circle at 16% 22%, rgba(94, 94, 94, 0.12), transparent 18%),
    radial-gradient(circle at 84% 0%, rgba(62, 62, 62, 0.15), transparent 26%),
    linear-gradient(180deg, #030303 0%, #0b0b0b 38%, #070707 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 5px, transparent 5px 72px) 0 0 / 72px 100%,
    linear-gradient(180deg, transparent 0, rgba(255, 255, 255, 0.02) 50%, transparent 100%) 0 0 / 100% 220px;
  opacity: 0.42;
}

body::after {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.06) 0%, rgba(7, 7, 7, 0.34) 58%, rgba(7, 7, 7, 0.82) 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 1px solid rgba(226, 228, 224, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #d3d2cc, #85857f);
  color: #090909;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: rgba(221, 229, 239, 0.08);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4.5rem;
}

.ambient-lines {
  position: absolute;
  inset: 0 0 auto;
  height: 920px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 92px),
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.07), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.05), transparent 22%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.85) 72%, transparent 100%);
  z-index: -1;
}

.hero {
  position: relative;
  margin: 1rem 0 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(31, 31, 31, 0.96) 38%, rgba(7, 7, 7, 0.99));
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 104px) 0 0 / 104px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
  pointer-events: none;
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.hero--compact {
  margin-bottom: 1.1rem;
}

.hero__inner {
  position: relative;
  padding: 3rem clamp(1.25rem, 3vw, 3rem);
}

.hero__kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: rgba(216, 218, 214, 0.66);
}

.hero__signal {
  margin: 0;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(218, 228, 239, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1.6rem;
  align-items: end;
}

.hero__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.hero__lead {
  max-width: 760px;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.92;
  color: #f3f2ed;
  text-wrap: balance;
}

.hero__copy {
  width: min(690px, 100%);
  margin: 1.15rem 0 0;
  font-size: 1.04rem;
  line-height: 1.82;
  color: rgba(226, 228, 224, 0.8);
  max-width: 42rem;
}

.hero__details {
  display: grid;
  gap: 0.8rem;
}

.detail-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(221, 229, 239, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 2px, transparent 2px 82px);
  backdrop-filter: blur(10px);
}

.detail-card__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-card strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.layout,
.admin-layout {
  display: grid;
  gap: 1.5rem;
}

.layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(310px, 0.82fr);
  align-items: start;
}

.content-column,
.sidebar,
.panel,
.article-card,
.admin-item {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 1rem;
}

.section-head {
  margin-bottom: 1.1rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
  color: var(--ink);
}

.section-head p,
.panel p,
.article-meta,
.form-status,
.empty-state,
.comment-note,
.sidebar-note {
  color: var(--muted);
}

.section-head--tight {
  margin-bottom: 0.95rem;
}

.article-list,
.admin-list {
  display: grid;
  gap: 1.4rem;
}

.article-card,
.panel,
.admin-item {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(224, 233, 244, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.article-card::before,
.panel::before,
.admin-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 26%, transparent 68%, rgba(255, 255, 255, 0.04));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.article-card {
  overflow: hidden;
  transform: translateY(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.66);
}

.article-image {
  aspect-ratio: 16 / 7.7;
  object-fit: cover;
  background:
    linear-gradient(135deg, #1d1d1d, #0b0b0b);
  filter: saturate(0.5) contrast(1.08) brightness(0.72);
}

.article-body {
  padding: 1.5rem;
}

.article-body h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1;
  color: #f3f2ed;
}

.article-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body p {
  margin: 0;
  line-height: 1.76;
}

.article-description,
.public-comment__body {
  white-space: pre-line;
}

.comment-box {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.public-comments {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.public-comments h4 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.public-comment-list {
  display: grid;
  gap: 0.8rem;
}

.public-comment {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.public-comment__name {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--ink);
}

.public-comment__body {
  margin: 0;
  color: var(--muted-strong);
}

.public-comments__empty {
  margin: 0;
}

.recommended-list {
  display: grid;
  gap: 0.7rem;
}

.recommended-link {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.recommended-link:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.comment-note {
  margin: 0 0 0.95rem;
  font-size: 0.96rem;
}

.panel {
  padding: 1.35rem;
}

.panel--spotlight {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(29, 29, 29, 0.98), rgba(8, 8, 8, 0.96));
}

.mini-rule {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
}

.stacked-form {
  display: grid;
  gap: 0.95rem;
}

.stacked-form label {
  display: grid;
  gap: 0.4rem;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row span {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.stacked-form span {
  font-weight: 700;
  color: #ecebe5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.field-note {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.image-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 6, 6, 0.82);
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.92), rgba(20, 20, 20, 0.84));
  padding: 0.9rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #6d716e;
}

input:focus,
textarea:focus {
  border-color: rgba(216, 226, 238, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
  background: rgba(15, 15, 15, 0.96);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.1rem;
  margin: 0;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid--lower {
  margin-top: 1.5rem;
}

.narrow-form {
  max-width: 420px;
}

.login-panel {
  max-width: 520px;
}

.button-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-item {
  padding: 1.05rem;
}

.admin-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  color: #f2f0ea;
}

.admin-item p {
  margin: 0.42rem 0;
  line-height: 1.58;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.pending {
  background: rgba(176, 139, 82, 0.14);
  color: #d7b784;
}

.status-pill.approved {
  background: rgba(135, 176, 140, 0.16);
  color: #a9d0ad;
}

.empty-state {
  margin: 0;
  padding: 1rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .reveal.is-visible,
  .article-card,
  button {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .layout,
  .hero__grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero__kicker-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1280px);
  }

  .hero__inner,
  .panel,
  .article-body,
  .admin-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}
