:root {
  --canvas: #fff8ed;
  --panel: #fffcf4;
  --panel-cool: #f1fbf6;
  --ink: #24201d;
  --muted: #625a52;
  --line: #dfd2c1;
  --red: #d83421;
  --red-dark: #a82417;
  --orange: #f47b20;
  --green: #4f8f52;
  --yellow: #d8a32e;
  --blue: #356b94;
  --gray: #77716b;
  --shadow: 0 18px 40px rgba(45, 36, 28, 0.08);
  --radius: 8px;
  --content: 1120px;
  --font-body: "Trebuchet MS", Arial, sans-serif;
  --font-display: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(216, 52, 33, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(53, 107, 148, 0.04) 1px, transparent 1px),
    var(--canvas);
  background-size: 34px 34px;
}

body.is-404 {
  display: grid;
}

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

a {
  color: var(--red-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  background: rgba(255, 252, 244, 0.92);
  border-color: var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-link strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand-link span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #ffe2d1;
  color: var(--red-dark);
}

.page-shell {
  padding: 48px 0 64px;
}

.section,
.browser-panel {
  margin-top: 32px;
}

.browser-panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-panel__bar {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 2px solid var(--line);
  background: #f4eadb;
}

.browser-panel__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red);
}

.browser-panel__dot:nth-child(2) {
  background: var(--yellow);
}

.browser-panel__dot:nth-child(3) {
  background: var(--green);
}

.browser-panel__label {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.browser-panel__body {
  padding: 28px;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.hero-visual,
.image-frame {
  background: var(--panel-cool);
  border: 2px dashed #9cc5ad;
  border-radius: var(--radius);
  padding: 18px;
}

.hero-visual img,
.image-frame img {
  width: 100%;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 3.4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.34rem;
}

p {
  margin: 12px 0 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.button-secondary,
.button-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red-dark);
}

.button:hover {
  background: var(--red-dark);
  color: #fff;
}

.button-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--orange);
  color: var(--red-dark);
}

.button-disabled {
  background: #eee7dd;
  border: 2px solid #d4cabd;
  color: var(--gray);
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.card-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid #e7dccd;
  border-radius: 6px;
  background: #fff;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.category-label,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.category-label {
  background: #edf4f9;
  color: var(--blue);
}

.status-badge {
  background: #eee7dd;
  color: var(--ink);
}

.status-active {
  background: #def2df;
  color: #2f6532;
}

.status-planned,
.status-coming-soon {
  background: #fff1c6;
  color: #7a5715;
}

.status-fan-project {
  background: #ffe0d6;
  color: var(--red-dark);
}

.status-archive,
.status-disabled,
.status-hidden {
  background: #e9e6e2;
  color: var(--gray);
}

.text-action {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
}

.text-action.is-disabled {
  color: var(--gray);
}

.fan-disclaimer,
.notice {
  border-left: 4px solid var(--red);
  padding: 10px 12px;
  background: #fff0e9;
  color: var(--ink);
  font-size: 0.95rem;
}

.notice {
  margin-top: 20px;
}

.callout-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.callout-list li {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.contact-card {
  max-width: 720px;
}

.site-footer {
  border-top: 2px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 28px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.not-found-shell {
  width: min(100% - 32px, 820px);
  margin: auto;
  padding: 48px 0;
}

.not-found-shell h1 {
  max-width: 100%;
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .hero-grid,
  .split-grid,
  .grid,
  .grid-two,
  .callout-list,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: 2.5rem;
  }

  .browser-panel__body {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .not-found-shell {
    width: min(100% - 24px, var(--content));
  }

  .button,
  .button-secondary,
  .button-disabled {
    width: 100%;
  }
}
