/* Navigation and footer styles from the Lost Codex Living Atlas theme. */
@font-face {
  font-family: "TLC Inter";
  src: url("assets/site-fonts/inter-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "TLC Marcellus";
  src: url("assets/site-fonts/marcellus-400-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TLC Garamond";
  src: url("assets/site-fonts/ebgaramond-400-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #07090a;
  --ink-soft: #0d1112;
  --ink-glass: rgba(7, 10, 11, 0.78);
  --bone: #eee9df;
  --bone-dim: #b9b3aa;
  --gold: #c0a466;
  --gold-pale: #e4cf98;
  --gold-dark: #6c5a34;
  --cyan: #78d4ed;
  --cyan-soft: rgba(120, 212, 237, 0.16);
  --vermilion: #b54a3b;
  --line: rgba(212, 191, 137, 0.21);
  --page: min(1420px, calc(100vw - 112px));
  --header-height: 88px;
  --rail-width: 94px;
  --frame-gutter: 14px;
}
.site-header {
  position: fixed;
  z-index: 100;
  top: var(--frame-gutter);
  right: var(--frame-gutter);
  left: var(--frame-gutter);
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: center;
  width: auto;
  height: var(--header-height);
  padding: 0 38px 0 calc(var(--rail-width) + 132px);
  border: 1px solid rgba(212,191,137,.12);
  border-bottom-color: rgba(212,191,137,.24);
  border-radius: 18px 18px 0 0;
  background: rgba(4,8,9,.9);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: inset 350ms ease, height 350ms ease, padding 350ms ease, border-radius 350ms ease, background 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
}
.site-header.is-scrolled {
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  padding-left: 188px;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(6, 9, 10, 0.82);
  backdrop-filter: blur(22px) saturate(1.15);
}
.brand {
  position: absolute;
  top: -5px;
  left: calc(var(--rail-width) + 20px);
  display: flex;
  align-items: center;
  width: 138px;
  height: 112px;
  overflow: visible;
  transition: top 350ms ease, left 350ms ease, width 350ms ease, height 350ms ease;
}
.brand img {
  width: 132px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.6));
  transition: transform 300ms ease;
}
.site-header.is-scrolled .brand {
  top: -4px;
  left: 42px;
  width: 110px;
  height: 78px;
}
.site-header.is-scrolled .brand img {
  width: 104px;
  height: 78px;
}
.brand:hover img {
  transform: scale(1.035);
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 3.2vw, 58px);
}
.site-header nav a, .account-link {
  position: relative;
  padding: 12px 0;
  color: rgba(239, 234, 224, 0.76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 220ms ease;
}
.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 280ms ease;
}
.site-header nav a + a::before {
  position: absolute;
  top: 50%;
  left: clamp(-31px, -1.65vw, -20px);
  width: 5px;
  height: 5px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(192,164,102,.52);
}
.site-header nav a:hover, .account-link:hover {
  color: var(--bone);
}
.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.menu-toggle {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid;
  color: var(--bone);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-small {
  min-height: 44px;
  padding: 0 24px;
  font-size: 10px;
}
.button-gold {
  border-color: rgba(229, 207, 152, 0.78);
  color: #16130d;
  background: linear-gradient(135deg, #e7d5aa, #ae8f4d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), 0 12px 34px rgba(147, 114, 52, 0.19);
}
.button-gold:hover {
  color: #060606;
  background: linear-gradient(135deg, #f0dfb4, #c8a966);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32), 0 15px 44px rgba(195, 159, 84, 0.31);
}
.button-cyan {
  border-color: rgba(120, 212, 237, 0.8);
  background: rgba(5, 21, 26, 0.63);
  box-shadow: inset 0 0 18px rgba(120, 212, 237, 0.07), 0 0 24px rgba(57, 181, 215, 0.14);
}
.button-cyan:hover {
  color: #071114;
  background: var(--cyan);
  box-shadow: 0 0 36px rgba(120, 212, 237, 0.34);
}
.button-cyan span {
  margin-left: 12px;
  font-size: 15px;
}
.button-red {
  border-color: rgba(213, 91, 73, 0.75);
  background: rgba(121, 34, 27, 0.56);
  box-shadow: inset 0 0 20px rgba(230, 83, 61, 0.08), 0 16px 36px rgba(58, 9, 4, 0.25);
}
.button-red:hover {
  background: #9f3a2c;
  box-shadow: 0 0 34px rgba(181, 74, 59, 0.35);
}
.site-footer {
  position: relative;
  padding: 0 0 40px;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(35,57,88,.25), transparent 62%),
    radial-gradient(circle at 8% 80%, rgba(137,86,41,.11), transparent 30%),
    linear-gradient(180deg, #090b11 0%, #090806 58%, #050708 100%);
  box-shadow: inset 0 32px 80px rgba(0,0,0,.55);
}
.footer-filigree {
  position: relative;
  display: flex;
  height: 54px;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid var(--gold-dark);
  box-shadow: 0 -4px 0 #080a0d, 0 -5px 0 rgba(192,164,102,.62);
}
.footer-filigree::before, .footer-filigree::after {
  height: 1px;
  margin-top: 31px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-dark) 18%, var(--gold) 52%, var(--gold-dark) 84%, transparent);
}
.footer-filigree > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: -18px 20px 0;
  flex: none;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #1b3159, #080d18 72%);
  box-shadow: 0 0 0 5px #080a0d, 0 0 30px rgba(192,164,102,.25);
}
.footer-filigree img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer-inner {
  width: min(2200px, calc(100% - 120px));
  margin: 0 auto;
  padding-top: 62px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  margin-bottom: 54px;
  gap: clamp(48px, 6vw, 112px);
}
.footer-emblem {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(72,145,228,.18));
}
.footer-story h2 {
  margin: 0;
  color: var(--gold-pale);
  font-family: "TLC Marcellus", serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
}
.footer-story > span {
  display: inline-block;
  margin-top: 9px;
  color: rgba(238,233,224,.38);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.footer-story p {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgba(238,233,224,.54);
  font-family: "TLC Garamond", serif;
  font-size: 18px;
  line-height: 1.55;
}
.footer-column h3 {
  position: relative;
  margin: 4px 0 24px;
  padding-bottom: 13px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-column h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}
.footer-column a {
  display: block;
  padding: 7px 0;
  color: rgba(238,233,224,.62);
  font-family: "TLC Garamond", serif;
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}
.footer-column a:hover {
  transform: translateX(4px);
  color: var(--gold-pale);
}
.footer-bottom {
  display: flex;
  padding-top: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(192,164,102,.22);
}
.footer-studio {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-studio img {
  width: min(390px, 31vw);
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
}
.footer-studio span {
  color: rgba(238,233,224,.4);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-studio span b {
  color: #5796ad;
  font-weight: 600;
}
.footer-legal {
  color: rgba(238,233,224,.4);
  font-size: 12px;
  text-align: right;
}
.footer-legal p {
  margin: 0 0 5px;
}
.footer-legal div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.footer-legal a { color: var(--gold); }
.footer-legal a:hover { color: var(--gold-pale); }
.footer-legal i { color: rgba(192,164,102,.4); font-style: normal; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
@media (max-width: 1180px) {
:root {
    --page: calc(100vw - 64px);
  }
.site-header {
    grid-template-columns: 1fr 190px;
    padding: 0 28px 0 calc(var(--rail-width) + 112px);
  }
.brand { left: calc(var(--rail-width) + 13px); }
.site-header nav { gap: 22px; }
.site-header nav a { font-size: 9px; }
.account-link { display: none; }
}
@media (max-width: 900px) {
:root {
    --page: calc(100vw - 40px);
    --header-height: 72px;
    --rail-width: 0px;
    --frame-gutter: 0px;
  }
.site-header, .site-header.is-scrolled {
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: 1fr auto;
    height: 72px;
    padding: 0 20px;
    border-radius: 0;
  }
.brand, .site-header.is-scrolled .brand {
    position: static;
    width: 98px;
    height: 64px;
  }
.brand img, .site-header.is-scrolled .brand img {
    width: 90px;
    height: 64px;
  }
.menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(238,233,224,.22);
    background: rgba(5,8,9,.44);
    cursor: pointer;
  }
.menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--bone);
  }
.site-header nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    transform: translateX(100%);
    padding: 60px 34px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(5,8,9,.97);
    backdrop-filter: blur(24px);
    transition: transform 330ms cubic-bezier(.2,.7,.2,1);
  }
.site-header nav.is-open { transform: translateX(0); }
.site-header nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: "TLC Marcellus", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }
.site-header nav a + a::before { display: none; }
.header-actions { display: none; }
.footer-inner {
    width: calc(100% - 56px);
  }
.footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
  }
.footer-story {
    grid-column: 1 / -1;
  }
.footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
.footer-legal {
    text-align: left;
  }
.footer-legal div {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
:root { --page: calc(100vw - 28px); }
.footer-inner {
    width: calc(100% - 32px);
    padding-top: 52px;
  }
.footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
.footer-story {
    grid-column: auto;
  }
.footer-bottom, .footer-studio {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
.footer-studio img {
    width: min(310px, 84vw);
  }
.footer-legal { text-align: center; }
.footer-legal div { justify-content: center; }
}
.site-header nav a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1440px) {
.site-header nav { gap: clamp(22px, 2.2vw, 34px); }
}
.site-header, .site-footer { font: 400 16px/1.6 "TLC Inter",system-ui,sans-serif; color: var(--bone); }
.site-header a, .site-footer a { text-decoration: none; }
.site-header img, .site-footer img { display:block; }
.site-header nav a { white-space: nowrap; }
