/* Oriel site. Orpiment colors: near-black ground, cream text, gold accents.
   Fonts are usesigil.org's, self-hosted (OFL 1.1; see fonts/README.md). */

@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin-full.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0E0E0C;
  --bg-raised: #161614;
  --edge: #2A2925;
  --fg: #E6E2D5;
  --fg-dim: #ABA79A;
  --gold: #EDBB45;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-raised: #F6F5F1;
    --edge: #E2E0DA;
    --fg: #17171A;
    --fg-dim: #55534D;
    --gold: #865B00;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
}

a { color: var(--gold); }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--edge);
}

.brand img { display: block; height: 40px; width: auto; }

.top nav { display: flex; gap: 1.5rem; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.top nav a { color: var(--fg-dim); text-decoration: none; }
.top nav a:hover { color: var(--fg); }

.hero { padding: 3.5rem 0 2rem; }

h1, h2 { font-family: var(--display); font-weight: 700; font-variation-settings: "opsz" 48; }

h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede { max-width: 40rem; margin: 0 0 1.75rem; color: var(--fg-dim); font-size: 1.15rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 3rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
}
.button { font-family: var(--display); font-weight: 600; }
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* The screenshot carousel: slides stacked in one 16:10 frame (sized for
   1600x1000 captures), one shown, crossfading. Without its script only
   the first slide and its caption show, and the dots stay hidden. */
.carousel { margin: 0; }
.carousel .frames {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-raised);
  touch-action: pan-y;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.shown { opacity: 1; }
.slide > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel .caption { margin: 0.7rem 0 0; color: var(--fg-dim); font-size: 0.9rem; text-align: center; }
.carousel .dots { display: none; justify-content: center; gap: 0.2rem; margin-top: 0.3rem; }
.carousel.live .dots { display: flex; }
.carousel .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel .dots button::before {
  content: ""; display: block; width: 8px; height: 8px; margin: auto;
  border-radius: 50%; background: var(--edge);
}
.carousel .dots button[aria-current="true"]::before { background: var(--gold); }
.carousel .dots button:hover::before { background: var(--fg-dim); }
.carousel .dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 50%; }

/* The sketch slides: a page and a status bar with the glyph and a command,
   standing in until the real screenshots arrive. */
.window { display: flex; flex-direction: column; height: 100%; }
.page { position: relative; flex: 1; display: grid; align-content: start; gap: 0.7rem; padding: 2rem 2rem 2.5rem; }
.line, .block { position: relative; display: block; height: 0.6rem; border-radius: 3px; background: var(--edge); }
.block { height: 6rem; margin: 0.5rem 0; }
.w40 { width: 40%; } .w55 { width: 55%; } .w70 { width: 70%; }
.w80 { width: 80%; } .w90 { width: 90%; }

.bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-top: 1px solid var(--edge);
  background: var(--bg);
  font: 14px var(--mono);
}
.bar img { display: block; }
.bar code { font: inherit; }
.bar .dim { color: var(--fg-dim); }
.prompt { color: var(--gold); }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--gold);
}

/* Loading: a thin gold bar across the top and the glyph turning. */
.loading { position: absolute; top: 0; left: 0; width: 38%; height: 3px; background: var(--gold); }
.turning { animation: turn 1.2s linear infinite; }
@keyframes turn { to { transform: rotate(180deg); } }

/* Link hints: small gold labels at the start of each link. */
.hint {
  position: absolute; top: 50%; left: -0.4rem; transform: translateY(-50%);
  padding: 0 0.3rem; border-radius: 3px;
  background: var(--gold); color: var(--bg);
  font: 700 11px/1.4 var(--mono); font-style: normal;
}

/* The tab chooser: a list over the page, the picked tab in gold. */
.chooser {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; min-width: 55%;
  border: 1px solid var(--edge); border-radius: 6px;
  background: var(--bg); font: 14px var(--mono);
}
.chooser b { padding: 0.45rem 0.8rem; font-weight: 400; color: var(--fg-dim); }
.chooser b.picked { color: var(--bg); background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .turning { animation: none; }
}

section { padding: 1.5rem 0; }

h2 { margin: 0 0 0.75rem; font-size: 1.4rem; }

ul { margin: 0; padding-left: 1.2rem; }
li { margin: 0.3rem 0; }
li::marker { color: var(--gold); }

kbd, pre, code { font-family: var(--mono); font-size: 0.9em; }
kbd {
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--bg-raised);
}
pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--bg-raised);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--edge);
  color: var(--fg-dim);
  font-size: 0.9rem;
}
footer p { margin: 0; }
.badge img { display: block; }

.glyph-inline { color: var(--gold); font-family: var(--mono); white-space: nowrap; }

/* 404 page: the mark, one line and a way home, centered. */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  padding: 2rem 0;
  text-align: center;
}
.not-found h1 { margin: 0; max-width: none; font-size: clamp(1.5rem, 4vw, 2.25rem); }
.not-found p { margin: 0; }
