:root {
  color-scheme: dark;
  --red: #ef151c;
  --dark-red: #a7070d;
  --background: #050505;
  --panel: #101011;
  --line: rgba(255, 255, 255, .13);
  --muted: #a7a7a7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--background); color: #f6f6f6; font: 15px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #ff5257; outline-offset: 3px; }

.site-header { display: flex; align-items: center; gap: 30px; min-height: 82px; padding: 14px clamp(24px, 5vw, 78px); border-bottom: 1px solid var(--line); background: #090909; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: -1.6px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.brand em { color: var(--red); font-style: italic; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav a { color: #ddd; transition: color .2s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--red); }
.header-download { margin-left: 10px; padding: 12px 22px; border: 1px solid #ff353a; border-radius: 5px; background: linear-gradient(135deg, #ee1921, #a9050b); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.page-shell { width: min(100% - 48px, 1160px); margin: 0 auto; }
.updates-page { padding-top: 60px; }
.page-heading { padding: 70px 0 50px; }
.page-heading h1, .section-heading h2, .bottom-cta h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .4px; }
.page-heading h1 { max-width: 900px; font-size: clamp(48px, 6vw, 82px); }
.page-heading h1 em { color: var(--red); font-style: italic; }
.page-heading > p:last-of-type { max-width: 680px; margin: 18px 0 0; color: #b5b5b5; font-size: 17px; }
.eyebrow { margin: 0 0 13px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 50px; padding: 11px 24px; border-radius: 5px; font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; transition: transform .2s, box-shadow .2s, border-color .2s; }
.primary-button { border: 1px solid #ff353a; background: linear-gradient(135deg, #ef1c23, #a7070d); color: #fff; box-shadow: 0 10px 25px rgba(180, 5, 12, .2); }
.primary-button:hover { transform: translateY(-2px); border-color: #ff5257; box-shadow: 0 14px 30px rgba(200, 5, 14, .22); }
.primary-button span { font-size: 16px; line-height: 1; }

.section-heading, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { font-size: 36px; }
.section-heading .eyebrow, .panel-heading .eyebrow { margin-bottom: 7px; }
.count { color: #999; font-size: 12px; white-space: nowrap; }
.release-list { display: grid; gap: 16px; }
.release-card { padding: 30px 34px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #171718, #0b0b0c); }
.release-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.version-tag { display: inline-block; padding: 5px 10px; border: 1px solid rgba(239, 21, 28, .45); border-radius: 4px; background: rgba(239, 21, 28, .11); color: #ff666a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.release-top time { color: #969696; font-size: 12px; }
.release-card h3 { margin: 17px 0 8px; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.2; }
.release-notes { max-width: 900px; margin: 14px 0 0; color: #b5b5b5; line-height: 1.75; overflow-wrap: anywhere; }
.empty-state { padding: 65px 28px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #111112, #090909); text-align: center; }
.empty-state > span { color: var(--red); font-size: 46px; line-height: 1; }
.empty-state h3 { margin: 16px 0 5px; font-size: 24px; }
.empty-state p { margin: 0 auto; max-width: 510px; color: var(--muted); }
.bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 75px 0 90px; padding: 40px 46px; border: 1px solid rgba(239, 21, 28, .32); border-radius: 8px; background: radial-gradient(circle at right, rgba(169, 5, 11, .22), transparent 55%), #101011; }
.bottom-cta h2 { font-size: 34px; }
.bottom-cta p:last-child { margin: 10px 0 0; color: var(--muted); }
.bottom-cta .eyebrow { margin-bottom: 7px; }
.bottom-cta .primary-button { flex: 0 0 auto; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 25px clamp(24px, 5vw, 78px); border-top: 1px solid var(--line); color: #888; font-size: 12px; }
.footer a { color: #c9c9c9; }
.footer a:hover { color: var(--red); }
.footer-links { display: inline-flex; align-items: center; gap: 18px; }

.admin-page .page-heading { padding: 62px 0 32px; }
.admin-page .page-heading h1 { font-size: clamp(42px, 5vw, 68px); }
.admin-page .page-heading > p:last-of-type { font-size: 15px; }
.panel { margin: 0 0 24px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #151516, #0b0b0c); }
.panel h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.panel > .muted { margin: 14px 0 24px; }
.muted { color: var(--muted); font-size: 13px; }
.panel code { color: #e4e4e4; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-grid label, .login-panel label { display: flex; flex-direction: column; gap: 7px; color: #e4e4e4; font-size: 12px; font-weight: 800; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .login-panel input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #393939; border-radius: 5px; background: #09090a; color: #fff; font-size: 14px; font-weight: 400; }
.form-grid textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .login-panel input:focus { border-color: var(--red); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #bcbcbc; font-size: 13px; }
.admin-topbar strong { color: #fff; }
.text-button { padding: 6px 0; border: 0; background: none; color: #eee; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover, .text-link:hover { color: var(--red); }
.text-link { color: #f2f2f2; font-size: 12px; font-weight: 700; white-space: nowrap; }
.notice { margin: 0 0 24px; padding: 14px 18px; border: 1px solid; border-radius: 5px; font-size: 13px; }
.notice.success { border-color: #3c8c56; background: rgba(48, 125, 75, .14); color: #b3e5bd; }
.notice.error { border-color: rgba(239, 21, 28, .6); background: rgba(239, 21, 28, .11); color: #ffd1d3; }
.notice ul { margin: 5px 0 0; padding-left: 19px; }
.login-panel { width: min(100%, 500px); margin-bottom: 100px; }
.login-panel p { margin: 10px 0 20px; }
.login-panel form { display: grid; gap: 17px; }
.login-panel .primary-button { justify-self: start; }
.admin-release-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.admin-release-list .release-card { padding: 23px; background: #0d0d0e; }
.admin-release-list .release-card h3 { font-size: 19px; }
.status-tag { margin-left: 8px; color: #9f9f9f; font-size: 11px; font-weight: 700; }
.status-tag.is-published { color: #77c88d; }
.excerpt { min-height: 40px; margin: 6px 0 14px; color: #aaa; font-size: 13px; overflow-wrap: anywhere; }
.release-actions { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 13px; }
.delete-form { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.confirm-delete { display: inline-flex; align-items: center; gap: 8px; color: #c4c4c4; font-size: 12px; }
.confirm-delete input { accent-color: var(--red); }
.danger-button { min-height: 40px; padding: 9px 14px; border: 1px solid rgba(239, 21, 28, .7); border-radius: 5px; background: rgba(239, 21, 28, .12); color: #ff9598; font-size: 12px; font-weight: 800; }
.danger-button:hover { background: rgba(239, 21, 28, .23); }
.admin-page .footer { margin-top: 40px; }

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; min-height: 72px; gap: 12px 20px; padding: 15px 24px; }
  .brand { font-size: 22px; }
  .site-header nav { order: 3; width: 100%; gap: 22px; }
  .header-download { margin-left: auto; padding: 10px 14px; }
  .page-shell { width: min(100% - 36px, 1160px); }
  .updates-page { padding-top: 42px; }
  .page-heading { padding: 57px 0 38px; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .release-card { padding: 24px; }
  .bottom-cta { align-items: start; flex-direction: column; margin: 60px 0; padding: 30px; }
  .admin-release-list, .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .panel-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 440px) {
  .site-header nav { font-size: 12px; }
  .brand img { width: 30px; height: 30px; }
  .header-download { font-size: 10px; }
  .release-top { align-items: start; flex-direction: column; gap: 9px; }
  .release-card { padding: 20px; }
  .bottom-cta { padding: 24px; }
}
