:root {
  --ground: #0c0c0b;
  --ink: #e9e4d8;
  --dim: #8a877f;
  --accent: #ff5a1f;
  --gutter: clamp(16px, 4vw, 48px);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* shade the field where text sits */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 12, 11, 0.85), rgba(12, 12, 11, 0) 120px),
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(12, 12, 11, 0.92), rgba(12, 12, 11, 0) 70%);
}

html[data-page="manifesto"] body::after,
html[data-page="team"] body::after {
  background:
    linear-gradient(180deg, rgba(12, 12, 11, 0.85), rgba(12, 12, 11, 0) 120px),
    linear-gradient(90deg, rgba(12, 12, 11, 0.92) 0, rgba(12, 12, 11, 0.75) 760px, rgba(12, 12, 11, 0) 1000px);
}

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

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

/* header */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.logo {
  width: 44px;
  height: auto;
  filter: invert(1);
}

nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }

nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* views */

main {
  position: relative;
  z-index: 1;
  pointer-events: none; /* let the pointer reach the field */
}

.view {
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  max-width: 760px;
}

.view a, .view [data-slot="email"] { pointer-events: auto; }

.view[hidden] { display: none; }

h1 {
  font-weight: 400;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.intro { max-width: 46ch; margin: 0; }

/* manifesto */

.manifesto { justify-content: flex-start; }

.manifesto ol { list-style: none; margin: 0; padding: 0; }

.statement {
  display: grid;
  grid-template-columns: 3ch 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(233, 228, 216, 0.14);
  background: linear-gradient(90deg, rgba(12, 12, 11, 0.8), rgba(12, 12, 11, 0));
}

.statement-index { color: var(--accent); font-size: 12px; padding-top: 3px; }

.epigraph { margin: 24px 0 0; padding: 0 0 0 calc(3ch + 16px); }
.epigraph p { margin: 0; }
.epigraph-latin { font-style: italic; }
.epigraph-english { color: var(--dim); }
.epigraph-source { color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px !important; }

/* team */

.team ul { list-style: none; margin: 0; padding: 0; }

.member {
  display: grid;
  grid-template-columns: 18ch 1fr;
  column-gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(233, 228, 216, 0.14);
  background: linear-gradient(90deg, rgba(12, 12, 11, 0.8), rgba(12, 12, 11, 0));
}

.member-role { grid-row: span 2; color: var(--accent); font-size: 12px; padding-top: 3px; }
.member-name { font-weight: 500; }
.member-bio { color: var(--dim); }

.contact { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.contact a { font-size: clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--accent); align-self: flex-start; }

.hint {
  position: fixed;
  right: var(--gutter);
  bottom: 16px;
  z-index: 2;
}

html:not([data-page="home"]) .hint { display: none; }

@media (max-width: 600px) {
  .bar { flex-direction: column; align-items: flex-start; }
  .member { grid-template-columns: 1fr; }
  .member-role { grid-row: auto; }
  .hint { display: none; }
}
