/* argbos.com
   ArgBos design tokens v1.0.0, layers 1 and 2, copied from docs/tokens.md in this
   repository. If this block and that page disagree, this block is wrong.
   This page is a ceremonial surface, so it is dark first; a light mode exists for
   readers who ask for one. */

@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/cinzel-latin.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}

:root {
  --argbos-midnight:   #0D132A;
  --argbos-drina-blue: #1B3F5B;
  --argbos-drina-lift: #26567A;
  --argbos-forest:     #264A3B;
  --argbos-ivory:      #F2EFE6;
  --argbos-sand:       #E6D7B8;
  --argbos-slate:      #333A42;
  --argbos-light-gray: #A2A6AD;
  --argbos-gold:       #C8A15A;
  --argbos-amber:      #E09F3E;
  --argbos-copper:     #B87333;

  /* Semantic roles, DARK is the default here */
  --bg:           var(--argbos-midnight);
  --bg-raised:    #141C37;
  --text:         #DFDDD5;
  --text-muted:   var(--argbos-light-gray);
  --text-heading: var(--argbos-gold);
  --accent-line:  var(--argbos-gold);
  --link:         var(--argbos-amber);
  --link-hover:   var(--argbos-gold);
  --scrim:        rgba(13, 19, 42, 0.55);

  --font-display: Cinzel, "Trajan Pro", "Times New Roman", serif;
  --font-body:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-display: 0.12em;
  --tracking-heading: 0.04em;

  --wrap: 42rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:           var(--argbos-ivory);
    --bg-raised:    #FBFAF6;
    --text:         var(--argbos-slate);
    --text-muted:   #5F666E;
    --text-heading: var(--argbos-drina-blue);
    --accent-line:  var(--argbos-gold);
    --link:         var(--argbos-drina-blue);
    --link-hover:   var(--argbos-drina-lift);
    --scrim:        rgba(13, 19, 42, 0.50);
  }
}

/* ---- Base ------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--bg-raised); color: var(--text); padding: 0.5rem 0.75rem; border-radius: 4px;
}
.skip:focus { left: 0.5rem; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.wordmark {
  font-family: var(--font-display);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
h2 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}
h3 {
  font-family: var(--font-body);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.9rem 0 0.25rem;
}
h3 span[lang] {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}
.lead { font-size: 1.2rem; }
.rule {
  width: 4rem;
  border: 0;
  border-top: 1px solid var(--accent-line);
  margin: 1.25rem auto;
  opacity: 0.85;
}

/* ---- Art slots -------------------------------------------------------- */
/* A figure carries the image. If the file is missing, the figure still has a ground
   and the page still reads; main.js marks it so the gap is visible in development. */

.art {
  margin: 0;
  background: var(--bg-raised);
  overflow: hidden;
  position: relative;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.is-missing::after {
  content: attr(data-missing);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--argbos-light-gray);
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--argbos-ivory);
  background: var(--argbos-midnight);
}
.hero-art { position: absolute; inset: 0; z-index: -3; }
.hero-art.is-missing::after { display: none; } /* the scrim gradient is the hero's fallback */
.hero-art img {
  animation: drift 40s var(--ease) both;
  transform-origin: 50% 60%;
}
.scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to bottom, rgba(13,19,42,0.15), rgba(13,19,42,0.35) 50%, var(--argbos-midnight) 100%),
    var(--scrim);
}
.ornament {
  position: absolute;
  z-index: -1;
  width: min(72vmin, 34rem);
  color: var(--argbos-gold);
  opacity: 0.16;
  animation: turn 180s linear infinite;
}
.hero-inner { padding: 6rem 1.25rem; }
.hero .wordmark {
  font-size: clamp(2.6rem, 9vw, 5rem);
  color: var(--argbos-gold);
  animation: rise 1.4s var(--ease) both;
  animation-delay: 0.2s;
}
.hero .rule {
  width: 0;
  border-top-color: var(--argbos-gold);
  animation: draw 1.2s var(--ease) both;
  animation-delay: 1s;
}
.hero .line {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--argbos-ivory);
  margin: 0;
  animation: rise 1.4s var(--ease) both;
  animation-delay: 1.4s;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 1.5rem; height: 2.5rem;
  border: 1px solid var(--argbos-gold);
  border-radius: 1rem;
  opacity: 0.7;
  animation: rise 1.4s var(--ease) both;
  animation-delay: 2.4s;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 0.5rem;
  width: 2px; height: 0.5rem; margin-left: -1px;
  background: var(--argbos-gold);
  border-radius: 1px;
  animation: nudge 2.2s ease-in-out infinite;
}

/* ---- Sections ---------------------------------------------------------- */

section { padding: 6rem 0; }
.name { text-align: center; }
.name .lead { color: var(--text); }
.name p:last-child { color: var(--text-muted); }

.worlds { padding-bottom: 4rem; }
.worlds .wrap { text-align: center; margin-bottom: 3rem; }
.cards {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: 72rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 1.5rem;
}
.card .art { aspect-ratio: 16 / 10; border-radius: 6px; }
.card .art img { transition: transform 1.2s var(--ease); }
.card:hover .art img { transform: scale(1.04); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.creed {
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(200,161,90,0.08), transparent 70%);
}
.creed-line {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: var(--tracking-heading);
  margin: 0.5rem 0;
}

.contact { text-align: center; }
.mail { font-size: 1.35rem; margin: 0 0 0.5rem; }
.mail a { text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.place { color: var(--text-muted); margin: 0; }

.foot {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(200,161,90,0.35);
}
.wordmark.small { font-size: 1.1rem; }
.line.small { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-muted); margin: 0.4rem 0 1rem; }
.fine { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* ---- Reveal on scroll ---------------------------------------------------- */
/* Hidden only when JS is present; without it everything simply shows. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .cards .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .cards .reveal:nth-child(4) { transition-delay: 0.3s; }
.js .cards .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ---- Keyframes ------------------------------------------------------------ */

@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes turn  { to { transform: rotate(360deg); } }
@keyframes rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw  { from { width: 0; } to { width: 4rem; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(0.7rem); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .ornament, .hero .wordmark, .hero .rule, .hero .line, .scroll-hint, .scroll-hint span {
    animation: none;
  }
  .hero .rule { width: 4rem; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card .art img { transition: none; }
}
