:root {
  --ink: #eee4d2;
  --muted: #b9ad99;
  --gold: #b6965d;
  --gold-bright: #d1b777;
  --bg: #0f0d0a;
  --bg-soft: #17130f;
  --panel: #211b15;
  --panel-2: #2a221a;
  --line: rgba(190, 154, 91, 0.28);
  --line-strong: rgba(209, 183, 119, 0.58);
  --shadow: rgba(0, 0, 0, 0.45);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10rem, rgba(182, 150, 93, 0.10), transparent 36rem),
    linear-gradient(rgba(15,13,10,.97), rgba(15,13,10,.97)),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.section-space { padding-block: clamp(4rem, 8vw, 7rem); }
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: .75rem max(1rem, calc((100vw - var(--shell))/2));
  background: rgba(15, 13, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark-image { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font: 800 .92rem/1 var(--sans); letter-spacing: .28em; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  font: 700 .78rem/1 var(--sans);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  padding: .65rem .85rem;
  font: 700 .78rem/1 var(--sans);
}

.hero {
  position: relative;
  min-height: calc(92vh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: #15110d;
}
.hero-home {
  background-image:
    linear-gradient(to bottom, rgba(8,7,5,.05), rgba(8,7,5,.18) 44%, rgba(8,7,5,.90)),
    url('../images/brand/veyra-home-hero.webp');
  background-size: cover;
  background-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,8,6,.70), rgba(10,8,6,.14) 62%),
    radial-gradient(circle at 62% 30%, transparent 0 15%, rgba(8,7,5,.15) 70%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(5rem, 10vw, 8rem); }
.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 10rem);
  line-height: .80;
  letter-spacing: .035em;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.hero-tagline { margin: 1.35rem 0 0; color: var(--gold-bright); font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-style: italic; }
.hero-lede { max-width: 720px; margin: .8rem 0 0; color: #ddd1bd; font-size: clamp(1.08rem, 2.2vw, 1.38rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 800 .78rem/1 var(--sans);
  text-decoration: none;
  letter-spacing: .04em;
  background: rgba(20,16,12,.76);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { border-color: var(--gold-bright); background: var(--panel); transform: translateY(-1px); }
.button-primary { background: var(--gold); color: #17120d; border-color: var(--gold); }
.button-primary:hover { background: var(--gold-bright); color: #17120d; }

.divider-wrap { padding-block: clamp(1.4rem, 3vw, 2.5rem); }
.section-divider { width: min(100%, 1040px); max-height: 150px; object-fit: contain; margin-inline: auto; opacity: .88; }
.section-divider-signature { width: min(100%, 1120px); }

.intro { max-width: 870px; }
.intro h2, .map-copy h2, .section-heading h2, .pathways h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.03; }
.intro p:not(.eyebrow), .map-copy p, .section-heading p:not(.eyebrow), .callout p { color: var(--muted); font-size: 1.06rem; }

.map-feature {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.map-copy .button { margin-top: 1rem; }
.map-frame {
  position: relative;
  display: block;
  padding: clamp(.7rem, 1.7vw, 1.25rem);
  background: #0b0907;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.48);
  text-decoration: none;
  isolation: isolate;
}
.map-frame::before { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(209,183,119,.22); pointer-events: none; }
.map-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.map-corner { position: absolute; z-index: 2; width: clamp(62px, 12vw, 130px); pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.map-corner.nw { left: -18px; top: -18px; }
.map-corner.ne { right: -18px; top: -18px; }
.map-corner.sw { left: -18px; bottom: -18px; }
.map-corner.se { right: -18px; bottom: -18px; }
.map-frame:hover { border-color: var(--line-strong); }

.regions-section { background: linear-gradient(180deg, transparent, rgba(182,150,93,.035), transparent); }
.section-heading { max-width: 850px; margin-bottom: 2.2rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  position: relative;
  min-height: clamp(330px, 42vw, 500px);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.97) 2%, rgba(10,8,6,.62) 38%, rgba(10,8,6,.10) 74%); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(209,183,119,.72); }
.feature-aldara { background-image: url('../images/regions/aldara.webp'); }
.feature-caelora { background-image: url('../images/regions/caelora.webp'); }
.feature-tsukara { background-image: url('../images/regions/tsukara.webp'); }
.feature-shattered { background-image: linear-gradient(to top, rgba(10,8,6,.60), rgba(10,8,6,.04)), url('../images/maps/veyra-current-world-map.webp'); background-position: center 58%; }
.feature-kicker { color: var(--gold-bright); font: 800 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.feature-card h3 { margin: .7rem 0 .4rem; font-size: clamp(2rem, 4vw, 3rem); }
.feature-card p { margin: 0; color: #d1c5b2; max-width: 46ch; }

.callout {
  position: relative;
  text-align: center;
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.callout-emblem { width: 108px; margin: 0 auto 1.4rem; opacity: .9; }
blockquote { margin: 1rem auto 1.7rem; max-width: 820px; }
blockquote p { font-size: clamp(1.7rem, 4vw, 3.2rem) !important; line-height: 1.22; color: var(--ink) !important; }
.text-link { color: var(--gold-bright); font: 800 .82rem/1.4 var(--sans); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pathways { display: grid; gap: 2rem; }
.pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.pathway {
  display: grid;
  grid-template-columns: 54px auto 1fr;
  align-items: center;
  column-gap: .85rem;
  row-gap: .25rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--bg-soft);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.pathway-icon { width: 48px; height: 48px; object-fit: contain; grid-row: 1 / span 2; }
.pathway span { grid-row: 1 / span 2; color: var(--gold); font: 800 .8rem/1.2 var(--sans); }
.pathway strong { font-size: 1.25rem; }
.pathway small { color: var(--muted); font-size: .92rem; }
.pathway:hover { background: var(--panel); border-color: rgba(209,183,119,.55); transform: translateY(-2px); }
.footer-divider { padding-top: 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font: .78rem/1.5 var(--sans); }
.footer-inner { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--ink); letter-spacing: .16em; }
.footer-brand span { color: var(--muted); }

.page-hero { padding: 6rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .95; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.topic-card { padding: 1.25rem; border: 1px solid var(--line); background: var(--bg-soft); text-decoration: none; }
.topic-card:hover { background: var(--panel); border-color: rgba(209,183,119,.55); }
.topic-card h2 { margin: .25rem 0 .5rem; font-size: 1.5rem; }
.topic-card p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .map-feature { grid-template-columns: 1fr; }
  .map-copy { max-width: 780px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { min-height: calc(78vh - 68px); }
  .hero-home { background-position: 58% center; }
  .feature-grid, .pathway-grid, .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 370px; }
  .pathway { grid-template-columns: 48px auto 1fr; }
  .map-corner { width: 78px; }
  .map-corner.nw, .map-corner.sw { left: -10px; }
  .map-corner.ne, .map-corner.se { right: -10px; }
  .map-corner.nw, .map-corner.ne { top: -10px; }
  .map-corner.sw, .map-corner.se { bottom: -10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


.studio-credit-wrap {
  padding: 0 0 1.35rem;
  text-align: center;
}
.studio-credit {
  margin: 0;
  color: var(--muted);
  font: .78rem/1.5 var(--sans);
}
.studio-credit a {
  color: var(--gold-bright);
  font-weight: 800;
  text-decoration: none;
}
.studio-credit a:hover,
.studio-credit a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.studio-only-footer {
  margin-top: 2rem;
  padding-top: 1.35rem;
}


/* Fang & Forge parent-studio header used across Veyra. */
.studio-brand .brand-mark-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: .3rem;
  background: #f4efe7;
}
.studio-brand .brand-name {
  font: 800 .82rem/1.05 var(--sans);
  letter-spacing: .09em;
  white-space: nowrap;
}
.studio-brand .brand-name b { color: var(--gold-bright); }
.studio-brand .brand-name small {
  display: block;
  margin-top: .33rem;
  color: var(--muted);
  font: 700 .56rem/1.05 var(--sans);
  letter-spacing: .2em;
}
.site-nav { gap: clamp(.65rem, 1.15vw, 1.4rem); }

/* Additional Veyra Home link makes collapsed navigation appropriate on tablets. */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
}
