@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --color-abyss: #090712;
  --color-blueberry: #12102a;
  --color-reliquary: #1d1738;
  --color-reliquary-deep: #100d23;
  --color-lilac: #e8ddf5;
  --color-lilac-muted: #b9a9d0;
  --color-amber: #f4b942;
  --color-amber-bright: #ffd166;
  --color-ember: #d85a3a;
  --color-frame: #59477a;
  --color-success: #74c69d;

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --text-12: 0.75rem;
  --text-14: 0.875rem;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-24: 1.5rem;
  --text-32: 2rem;
  --text-48: 3rem;
  --text-64: 4rem;

  --leading-compact: 1;
  --leading-tight: 1.125;
  --leading-body: 1.625;
  --leading-relaxed: 1.75;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --gutter: 1rem;
  --container-max: 80rem;
  --section-space: 2.25rem;

  --radius-image: 2px;
  --radius-panel: 2px;
  --radius-control: 4px;
  --radius-overlay: 6px;

  --border-frame: 1px solid var(--color-frame);
  --border-featured: 2px solid var(--color-frame);
  --shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.38);

  --transition-fast: 180ms ease-out;
  --focus-outline: 3px solid var(--color-amber-bright);
  --focus-offset: 3px;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
    --section-space: 3rem;
  }
}

@media (min-width: 75rem) {
  :root {
    --gutter: 2rem;
    --section-space: 4rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-8);
  background: var(--color-abyss);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-abyss);
  color: var(--color-lilac);
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
form,
fieldset,
figure,
blockquote,
details {
  min-width: 0;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  object-fit: cover;
}

a {
  color: var(--color-amber);
  overflow-wrap: anywhere;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast),
    transform var(--transition-fast);
}

a:hover {
  color: var(--color-amber-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: none;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select,
textarea {
  width: 100%;
  border: var(--border-frame);
  border-radius: var(--radius-control);
  background: var(--color-reliquary-deep);
  color: var(--color-lilac);
  line-height: 1.4;
}

input,
select {
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
}

textarea {
  min-height: 8rem;
  padding: 0.75rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-lilac-muted);
  opacity: 0.9;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-amber);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-amber-bright);
}

select {
  background-color: var(--color-reliquary-deep);
}

fieldset {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: var(--border-frame);
}

legend {
  padding: 0 var(--space-2);
  color: var(--color-lilac);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--color-lilac);
  font-size: var(--text-14);
  font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--color-amber);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border-frame);
  background: var(--color-reliquary-deep);
}

th,
td {
  padding: var(--space-3);
  border-bottom: var(--border-frame);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-lilac);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

hr {
  height: 1px;
  margin: var(--space-6) 0;
  border: 0;
  background: var(--color-frame);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: var(--color-lilac);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.12;
}

h4 {
  font-size: var(--text-24);
}

h5 {
  font-size: var(--text-18);
}

h6 {
  font-size: var(--text-16);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: inherit;
  overflow-wrap: anywhere;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: var(--space-5);
  padding-left: 1.25rem;
}

ul:not([class]),
ol:not([class]) {
  display: grid;
  gap: var(--space-2);
}

li {
  overflow-wrap: anywhere;
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  border-left: 2px solid var(--color-amber);
  background: var(--color-reliquary-deep);
  color: var(--color-lilac);
  font-size: var(--text-18);
  line-height: 1.55;
}

blockquote p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-top: var(--space-2);
  color: var(--color-lilac-muted);
  font-size: var(--text-14);
  line-height: 1.43;
}

pre,
code,
kbd,
samp {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

code,
kbd,
samp {
  padding: 0.12em 0.32em;
  border: 1px solid var(--color-frame);
  border-radius: 2px;
  background: var(--color-reliquary-deep);
  color: var(--color-amber-bright);
  font-size: 0.9em;
}

pre {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--border-frame);
  background: var(--color-reliquary-deep);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

small {
  font-size: var(--text-14);
}

strong {
  color: var(--color-lilac);
  font-weight: 700;
}

::selection {
  background: var(--color-amber);
  color: var(--color-abyss);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.surface-blueberry {
  background: var(--color-blueberry);
}

.surface-reliquary {
  background: var(--color-reliquary);
}

.surface-inset {
  background: var(--color-reliquary-deep);
}

.artefact-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: var(--border-frame);
  border-radius: var(--radius-panel);
  background: var(--color-reliquary);
}

.artefact-panel--featured {
  border: 2px solid var(--color-frame);
}

.artefact-panel--amber {
  border-color: var(--color-amber);
}

.artefact-panel > :last-child,
.compact-content > :last-child {
  margin-bottom: 0;
}

.panel-body {
  min-width: 0;
  padding: var(--space-5);
}

.panel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.panel-image--feature {
  aspect-ratio: 3 / 2;
}

.panel-image--portrait {
  aspect-ratio: 2 / 3;
}

.eyebrow,
.chamber-marker,
.meta-label {
  margin: 0 0 var(--space-2);
  color: var(--color-amber);
  font-family: var(--font-heading);
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.33;
  text-transform: uppercase;
}

.meta {
  color: var(--color-lilac-muted);
  font-size: var(--text-14);
  line-height: 1.43;
}

.lead {
  color: var(--color-lilac-muted);
  font-size: var(--text-18);
  line-height: 1.56;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-amber);
  border-radius: var(--radius-control);
  font-family: var(--font-heading);
  font-size: var(--text-16);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.button {
  background: var(--color-amber);
  color: var(--color-abyss);
}

.button:hover {
  background: var(--color-amber-bright);
  border-color: var(--color-amber-bright);
  color: var(--color-abyss);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--color-amber);
}

.button-secondary:hover {
  border-color: var(--color-amber-bright);
  color: var(--color-amber-bright);
  transform: translateY(-1px);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}

.button-group > * {
  min-width: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 1.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--color-success);
  font-family: var(--font-heading);
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.status-badge--warning {
  color: var(--color-amber);
}

.status-badge--urgent {
  color: var(--color-ember);
}

.rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--color-frame);
}

.rule--amber {
  background: var(--color-amber);
}

.media-frame {
  overflow: hidden;
  border: var(--border-frame);
  border-radius: var(--radius-image);
  background: var(--color-reliquary-deep);
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice {
  padding: var(--space-4);
  border: var(--border-frame);
  border-left: 2px solid var(--color-amber);
  border-radius: var(--radius-panel);
  background: var(--color-reliquary-deep);
  color: var(--color-lilac-muted);
}

.notice > :last-child {
  margin-bottom: 0;
}

.stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.stack > * {
  min-width: 0;
}

.cluster {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster > * {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-amber-bright);
  border-radius: var(--radius-control);
  background: var(--color-abyss);
  color: var(--color-amber-bright);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 39.9375rem) {
  .panel-body {
    padding: var(--space-4);
  }

  .button,
  .button-secondary {
    min-height: 2.75rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .button-secondary:hover {
    transform: none;
  }
}