:root {
  color-scheme: dark;
  --ink: #e9e7df;
  --muted: #a4a69e;
  --paper: #111613;
  --panel: #1a211c;
  --line: rgba(233, 231, 223, 0.16);
  --gold: #c99a5c;
  --rust: #a8563e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.2%;
  border-bottom: 1px solid rgba(233, 231, 223, 0.12);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.wordmark-mark {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  color: #d3d3cc;
  font-size: 12px;
}

.site-nav a,
.text-link,
.underlined-link,
.back-to-top {
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover,
.underlined-link:hover,
.back-to-top:hover {
  color: var(--gold);
}

.site-nav .nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(233, 231, 223, 0.38);
}

.nav-cta span {
  margin-left: 9px;
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(810px, 100svh);
  min-height: max(720px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 120px 11% 90px;
  isolation: isolate;
  background: #18211f;
}

.hero::after {
  position: absolute;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 19, 17, 0.96) 1%, rgba(13, 19, 17, 0.77) 38%, rgba(13, 19, 17, 0.15) 100%),
    linear-gradient(0deg, rgba(13, 19, 17, 0.53), transparent 28%, transparent 76%, rgba(13, 19, 17, 0.14));
  content: "";
  inset: 0;
}

.hero-art {
  position: absolute;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, #313c3b 0%, #71736b 44%, #b47d59 69%, #3c4945 70%, #1c2927 100%);
  inset: 0;
}

.sun {
  position: absolute;
  top: 22%;
  right: 24%;
  width: clamp(120px, 17vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d5a473;
  box-shadow: 0 0 100px 40px rgba(213, 164, 115, 0.19);
}

.mountain {
  position: absolute;
  right: -5%;
  bottom: 23%;
  width: 90%;
  height: 50%;
  clip-path: polygon(0 100%, 14% 48%, 24% 69%, 42% 5%, 53% 55%, 68% 18%, 81% 57%, 91% 35%, 100% 100%);
}

.mountain-back {
  right: 4%;
  bottom: 25%;
  background: linear-gradient(145deg, #90928a, #596563 58%, #3c4b48);
  opacity: 0.73;
}

.mountain-front {
  bottom: 21%;
  height: 42%;
  background: linear-gradient(145deg, #6d7872, #354340 58%, #202e2b);
  clip-path: polygon(0 100%, 13% 34%, 23% 64%, 40% 14%, 55% 72%, 69% 29%, 79% 63%, 90% 17%, 100% 100%);
}

.water {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  background: repeating-linear-gradient(176deg, rgba(215, 187, 153, 0.14) 0 1px, transparent 1px 13px), linear-gradient(#384846, #172421);
}

.longship {
  position: absolute;
  right: 15%;
  bottom: 20%;
  width: clamp(160px, 23vw, 310px);
  height: 155px;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.34));
}

.hull {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 28px;
  border-radius: 0 0 50% 50%;
  background: repeating-linear-gradient(90deg, #49372b 0 18px, #79583e 18px 22px);
  clip-path: polygon(0 0, 100% 0, 91% 65%, 79% 100%, 22% 100%, 9% 65%);
}

.mast {
  position: absolute;
  bottom: 47px;
  left: 49%;
  width: 4px;
  height: 123px;
  background: #3a3027;
}

.sail {
  position: absolute;
  bottom: 64px;
  left: 21%;
  width: 58%;
  height: 95px;
  border: 2px solid rgba(225, 214, 189, 0.63);
  background: repeating-linear-gradient(90deg, #bba985 0 24px, #725e4c 24px 27px);
  clip-path: polygon(0 0, 100% 9%, 88% 100%, 9% 90%);
  opacity: 0.8;
}

.hero-content {
  width: min(620px, 64%);
  padding-top: 20px;
}

.eyebrow,
.section-kicker,
.card-label,
.character-type,
.hero-caption,
.hero-coordinate,
.world-caption,
.copyright,
.back-to-top {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d0cfc5;
}

.eyebrow > span {
  width: 25px;
  height: 1px;
  background: var(--gold);
}

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

h1,
h2,
.saga-card h3,
.character-info h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  margin: 25px 0 20px;
  font-size: clamp(58px, 7.4vw, 102px);
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h1 em,
h2 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-copy {
  max-width: 435px;
  color: #c0c2ba;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 19px;
  font-size: 12px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--gold);
  color: #1b1b16;
}

.button-primary:hover {
  background: #dfb47b;
}

.button span {
  font-size: 17px;
}

.text-link {
  color: #e3e1d8;
  font-size: 12px;
}

.text-link span {
  margin-left: 6px;
  color: var(--gold);
}

.hero-caption,
.hero-coordinate {
  position: absolute;
  bottom: 34px;
  color: #c4c6bf;
  font-size: 9px;
}

.hero-caption {
  left: 7.2%;
}

.hero-caption span {
  margin-right: 14px;
  color: var(--gold);
}

.hero-coordinate {
  right: 7.2%;
}

.section-wrap {
  padding-right: 11%;
  padding-left: 11%;
}

.intro {
  padding-top: 125px;
  padding-bottom: 130px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a8aaa1;
}

.section-kicker span {
  color: var(--gold);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: end;
  gap: 9%;
  margin: 38px 0 64px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -0.04em;
  line-height: 1.09;
}

.intro-copy {
  max-width: 390px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.underlined-link {
  display: inline-flex;
  gap: 20px;
  margin-top: 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(201, 154, 92, 0.64);
  color: var(--ink);
  font-size: 11px;
}

.underlined-link span {
  color: var(--gold);
}

.saga-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.saga-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 21px 23px 26px;
  background-color: #24302c;
  isolation: isolate;
}

.saga-card::before {
  position: absolute;
  z-index: -1;
  background: linear-gradient(0deg, rgba(13, 18, 16, 0.96), rgba(13, 18, 16, 0.24) 77%);
  content: "";
  inset: 0;
}

.saga-card::after {
  position: absolute;
  z-index: -2;
  background: linear-gradient(135deg, #697568, #22312d 55%, #8a674d);
  content: "";
  inset: 0;
  transition: transform 450ms ease;
}

.saga-card:hover::after {
  transform: scale(1.05);
}

.saga-card-land::after {
  background: linear-gradient(155deg, #b1835b 3%, #58665c 35%, #202e2c 80%);
}

.saga-card-oath::after {
  background: linear-gradient(140deg, #788078, #34433c 42%, #6f4835);
}

.saga-card-legend::after {
  background: linear-gradient(150deg, #727a82, #2d3d42 50%, #a67d55);
}

.card-number {
  color: rgba(233, 231, 223, 0.72);
  font-family: var(--serif);
  font-size: 16px;
}

.card-label {
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 9px;
}

.saga-card h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.13;
}

.saga-card div > p:last-child {
  max-width: 240px;
  margin-bottom: 0;
  color: #c5c6bf;
  font-size: 11px;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 24px;
  color: var(--gold);
  font-size: 18px;
}

.characters {
  padding-top: 105px;
  padding-bottom: 125px;
  background: #171d19;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 32px 0 42px;
}

.section-heading h2 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.section-heading p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.character-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 4px;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: #b7b9b1;
  cursor: pointer;
  font-size: 10px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: #191a16;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.character-card {
  position: relative;
  overflow: hidden;
  background: #202722;
  transition: opacity 180ms ease, transform 180ms ease;
}

.character-card.is-hidden {
  display: none;
}

.character-art {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #34413c;
  isolation: isolate;
}

.character-art::before,
.character-art::after {
  position: absolute;
  content: "";
}

.character-art::before {
  z-index: -2;
  background: linear-gradient(150deg, #8e765d, #4a5650 43%, #202b29);
  inset: 0;
}

.character-art::after {
  z-index: -1;
  background: linear-gradient(0deg, rgba(20, 26, 23, 0.5), transparent 65%);
  inset: 0;
}

.odin-art::before {
  background:
    radial-gradient(ellipse at 68% 28%, rgba(195, 160, 112, 0.54), transparent 22%),
    radial-gradient(ellipse at 38% 62%, #536057 0 7%, transparent 8%),
    linear-gradient(152deg, #85827a, #49544e 48%, #202b29);
}

.odin-art::after {
  background:
    radial-gradient(ellipse at 39% 61%, #111917 0 6%, transparent 6.5%),
    linear-gradient(0deg, rgba(20, 26, 23, 0.84), transparent 71%);
}

.thor-art::before {
  background:
    linear-gradient(121deg, transparent 45%, rgba(219, 194, 139, 0.78) 45.4%, transparent 47%),
    radial-gradient(ellipse at 71% 28%, #879083, transparent 32%),
    linear-gradient(150deg, #87928c, #3e4c48 50%, #222b29);
}

.freyja-art::before {
  background:
    radial-gradient(ellipse at 44% 15%, rgba(135, 174, 143, 0.8), transparent 25%),
    radial-gradient(ellipse at 70% 22%, rgba(98, 137, 125, 0.7), transparent 20%),
    linear-gradient(155deg, #435451, #253635 49%, #715943);
}

.shieldmaiden-art::before {
  background:
    radial-gradient(ellipse at 70% 36%, rgba(188, 144, 99, 0.67), transparent 28%),
    linear-gradient(160deg, #747a72, #404c45 47%, #28322f);
}

.character-info {
  min-height: 177px;
  padding: 20px 19px 24px;
}

.character-type {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.character-info h3 {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.1;
}

.character-info p {
  margin: 0;
  color: #aeb1a9;
  font-size: 10px;
  line-height: 1.65;
}

.character-rune {
  position: absolute;
  top: 14px;
  right: 15px;
  color: rgba(245, 234, 213, 0.74);
  font-family: var(--serif);
  font-size: 19px;
}

.history-note {
  margin: 18px 0 0;
  color: #8d9189;
  font-size: 10px;
}

.world {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 50%, #35473f, #1d2925 41%, #111613 73%);
  isolation: isolate;
}

.world-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 7%;
  width: min(53vw, 660px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.world-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 154, 92, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 96%;
}

.ring-two {
  width: 69%;
}

.ring-three {
  width: 38%;
  border-color: rgba(201, 154, 92, 0.6);
  box-shadow: 0 0 60px rgba(201, 154, 92, 0.13);
}

.world-star {
  position: absolute;
  color: var(--gold);
  font-size: 15px;
}

.star-one {
  top: 14%;
  left: 30%;
}

.star-two {
  right: 12%;
  bottom: 27%;
}

.star-three {
  bottom: 17%;
  left: 22%;
}

.world-copy {
  width: min(510px, 48%);
  margin-left: 11%;
  padding: 95px 0;
}

.world-copy h2 {
  margin: 30px 0 20px;
  font-size: clamp(50px, 6vw, 77px);
}

.world-copy > p {
  max-width: 390px;
  margin-bottom: 29px;
  color: #adb2a9;
  font-size: 13px;
}

.button-outline {
  border: 1px solid rgba(233, 231, 223, 0.5);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.world-caption {
  position: absolute;
  right: 7%;
  bottom: 28px;
  color: #a5a89f;
  font-size: 8px;
}

.closing {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
}

.closing h2 {
  margin: 20px 0 13px;
  font-size: clamp(43px, 5.2vw, 68px);
}

.closing > p:not(.eyebrow) {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: grid;
  min-height: 100px;
  grid-template-columns: 1fr 2fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 7.2%;
  border-top: 1px solid var(--line);
}

.site-footer .wordmark {
  font-size: 10px;
}

.site-footer .wordmark-mark {
  font-size: 21px;
}

.site-footer p {
  margin: 0;
  color: #93978e;
  font-size: 10px;
}

.back-to-top,
.copyright {
  color: #aeb1a9;
  font-size: 8px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }

  .site-nav {
    gap: 17px;
    font-size: 11px;
  }

  .hero {
    padding-right: 8%;
    padding-left: 8%;
  }

  .section-wrap {
    padding-right: 8%;
    padding-left: 8%;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-art {
    height: 280px;
  }

  .world-copy {
    margin-left: 8%;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: rgba(17, 22, 19, 0.65);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 9px 5% 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 22, 19, 0.97);
  }

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

  .site-nav a {
    padding: 12px 4px;
  }

  .site-nav .nav-cta {
    align-self: flex-start;
    margin-top: 7px;
    padding: 9px 13px;
  }

  .hero {
    min-height: 760px;
    min-height: 100svh;
    padding: 130px 7% 100px;
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(57px, 14vw, 82px);
  }

  .hero-copy {
    max-width: 350px;
  }

  .sun {
    top: 28%;
    right: 9%;
    width: 140px;
  }

  .longship {
    right: 3%;
    bottom: 22%;
    width: 190px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }

  .hero-caption {
    left: 7%;
  }

  .hero-coordinate {
    right: 7%;
    font-size: 8px;
  }

  .section-wrap {
    padding-right: 7%;
    padding-left: 7%;
  }

  .intro {
    padding-top: 86px;
    padding-bottom: 88px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 27px 0 36px;
  }

  h2 {
    font-size: 45px;
  }

  .saga-cards {
    grid-template-columns: 1fr;
  }

  .saga-card {
    min-height: 260px;
  }

  .characters {
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin: 26px 0 28px;
  }

  .section-heading h2 {
    font-size: 41px;
  }

  .character-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .character-art {
    height: 265px;
  }

  .character-info {
    min-height: 0;
  }

  .world {
    min-height: 680px;
    align-items: flex-start;
  }

  .world-art {
    top: auto;
    right: -18%;
    bottom: -7%;
    width: 100vw;
    transform: none;
    opacity: 0.75;
  }

  .world-copy {
    width: auto;
    margin: 0 7%;
    padding: 82px 0 250px;
  }

  .world-copy h2 {
    font-size: 57px;
  }

  .world-caption {
    right: 7%;
  }

  .closing {
    min-height: 400px;
  }

  .closing h2 {
    font-size: 47px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 20px 7%;
  }

  .back-to-top {
    grid-column: 2;
    grid-row: 1;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
