@font-face {
  font-family: "LifeCraft";
  src: url("assets/LifeCraft_Font.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090c0d;
  --surface: #151718;
  --surface-raised: #1b1d1d;
  --text: #f0eadc;
  --muted: #aaa99f;
  --faint: #7d807b;
  --gold: #d3b47a;
  --gold-bright: #f2d9a3;
  --gold-dark: #725a34;
  --line: rgba(192, 159, 99, .28);
  --line-strong: rgba(210, 178, 117, .55);
  --red: #c86a5d;
  --blue: #88add3;
  --heading-font: "LifeCraft", Georgia, serif;
  --body-font: "Segoe UI", Arial, sans-serif;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { color: #17120b; background: #d3b47a; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: #ecd39e;
  color: #18130d;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid #f1d29a; outline-offset: 4px; }

.shell-width {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 23px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.08;
}
.section-heading > p {
  max-width: 360px;
  margin: 0 0 4px;
  color: var(--muted);
}
.surface {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(28, 30, 29, .96), rgba(17, 19, 19, .97));
  box-shadow: inset 0 1px rgba(255, 235, 190, .035), 0 18px 50px rgba(0, 0, 0, .2);
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 19, 19, .78);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover {
  border-color: var(--gold-bright);
  background: #29261e;
  color: #fff7e7;
}
.button--gold {
  border-color: #e4c992;
  background: linear-gradient(180deg, #dfc28a, #b79053);
  box-shadow: inset 0 1px rgba(255, 249, 226, .5), 0 5px 18px rgba(0, 0, 0, .25);
  color: #21180d;
}
.button--gold:hover { background: #ead09b; color: #17120c; }
.button-arrow { font-size: 1rem; line-height: 1; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 700;
}
.text-link:hover { color: #fff2d6; }
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: radial-gradient(ellipse at 50% 20%, #26302a, #0b0e0e 60%);
}
.error-shell { width: min(100% - 36px, 760px); padding: 45px 0; }
.error-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.error-brand img { width: 58px; }
.error-brand strong { display: block; color: #ead9b5; font-family: var(--heading-font); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.error-brand span { display: block; margin-top: 5px; color: #a9a28d; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.error-card { overflow: hidden; padding: clamp(26px, 6vw, 55px); }
.error-code { position: absolute; top: 0; right: 20px; color: rgba(224, 201, 157, .05); font-family: var(--heading-font); font-size: clamp(8rem, 25vw, 15rem); line-height: 1; pointer-events: none; }
.error-card h1 { position: relative; margin: 20px 0 12px; color: #efe1c7; font-family: var(--heading-font); font-size: clamp(3rem, 8vw, 5rem); font-weight: 400; line-height: 1; }
.error-card p { position: relative; max-width: 470px; color: #b7bab0; }
.error-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.error-footnote { color: #a3a79c; font-size: .75rem; }

@media (max-width: 700px) {
  .shell-width { width: min(100% - 36px, var(--container)); }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
