:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #e8e8e8;
  --muted: #9a9a9a;
  --dim: #626262;
  --line: rgba(255, 255, 255, 0.2);
  --ember: #ff5c24;
  --ember-hot: #ffd0a1;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-size: 16px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #000000;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  min-height: 100vh;
}

body::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.nav-link {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rune-backdrop {
  height: 100vh;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 0;
}

a,
button {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
  text-decoration-color: var(--ember);
}

a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

main {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-section,
.content-band,
.split-band {
  padding-block: clamp(44px, 7vw, 104px);
}

.hero-section {
  min-height: calc(100vh - 80px);
}

.min-vh-75 {
  min-height: min(760px, calc(100vh - 96px));
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 3rem);
  line-height: 1.02;
  max-width: 18ch;
}

h3 {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lede {
  color: #b9b9b9;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  border-color: rgba(255, 92, 36, 0.7);
  color: var(--ember);
  transform: translateY(-2px);
}

.button-primary {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
}

.button-primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #000000;
}

.section-strip {
  border-block: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.section-strip span {
  background: rgba(0, 0, 0, 0.62);
  border-right: 1px solid var(--line);
  color: #868686;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  height: 100%;
  min-height: 68px;
  padding: 25px 18px;
  text-align: center;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.ink-card,
.service-row {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
}

.ink-card {
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.ink-card p,
.service-row p {
  color: #929292;
  font-size: 0.9rem;
}

.page-body {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin: 0;
  max-width: 52rem;
}

.page-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-panel h2 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.page-panel .button {
  margin-top: auto;
  width: fit-content;
}

.gallery-tile {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  height: 100%;
  margin: 0;
}

.gallery-tile img {
  aspect-ratio: 4 / 4.8;
  display: block;
  filter: grayscale(1) contrast(1.08);
  object-fit: cover;
  width: 100%;
}

.gallery-tile figcaption {
  color: #9d9d9d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  min-height: 48px;
  padding: 14px 16px;
  text-transform: uppercase;
}

.split-band p {
  max-width: 620px;
}

.flash-board {
  border-block: 1px solid var(--line);
  display: grid;
}

.flash-board span {
  border-bottom: 1px solid var(--line);
  color: #8d8d8d;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  min-height: 58px;
  padding: 20px 0;
  text-transform: uppercase;
}

.flash-board span:last-child {
  border-bottom: 0;
}

.service-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 24px;
}

.service-row span {
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-section {
  min-height: calc(100vh - 88px);
}

.identity-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.identity-form {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding: clamp(22px, 4vw, 34px);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.checkbox-field {
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 0;
  color: #ffffff;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 0.2rem rgba(255, 92, 36, 0.14);
  outline: 0;
}

.checkbox-field {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-field input {
  accent-color: var(--ember);
}

.identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.text-danger,
.validation-summary-errors {
  color: var(--ember-hot) !important;
  font-size: 0.84rem;
}

.admin-section h2 {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
}

.admin-list,
.admin-section-list {
  display: grid;
  gap: 0.9rem;
}

.admin-row,
.admin-section-editor,
.admin-new-section {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.admin-row {
  display: grid;
  gap: 1rem;
}

.admin-row-copy {
  display: grid;
  gap: 0.35rem;
}

.admin-row h2 {
  font-size: 1rem;
  margin-bottom: 0;
}

.admin-meta,
.admin-row p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.admin-row-actions {
  display: grid;
}

.admin-section-editor {
  display: grid;
  gap: 0.85rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-delete-form {
  display: grid;
}

.admin-new-section {
  margin-top: 1.5rem;
}

.admin-gallery-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.admin-gallery-item {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.admin-gallery-item > img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
  width: 100%;
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

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

  .rune-backdrop {
    opacity: 0.38;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.9rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2rem;
  }

  .button,
  .hero-actions .button,
  .admin-actions .button {
    width: 100%;
  }

  .page-panel .button {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .admin-row {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-row-actions,
  .admin-delete-form {
    justify-self: end;
    width: auto;
  }

  .admin-row-actions .button,
  .admin-delete-form .button {
    width: auto;
  }
}
