/* ExaCortex v1. Plain CSS, no build step. */

:root {
  --bone: #eeebe4;
  --paper: #f7f5f0;
  --ink: #1d1b18;
  --muted: #5d574e;
  --rule: #d6d0c4;
  --brass: #8a6726;
  --brass-ink: #6f521c;
  --focus: #8a6726;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --measure: 38rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bone: #1a1815;
    --paper: #221f1b;
    --ink: #ece7dd;
    --muted: #a69e91;
    --rule: #3a352e;
    --brass: #c9a35a;
    --brass-ink: #d8b670;
    --focus: #d8b670;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brass-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: var(--gutter); }

/* Header */

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.975rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 0.2rem 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--brass); }

/* Hero (home) */

.hero {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  align-items: center;
}

.hero-mark {
  width: 7.5rem;
  color: var(--brass);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 3.9rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.hero .short {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

/* The one moment of motion: the ring draws itself, then the dot lands. */
.hero-mark .ring {
  stroke-dasharray: 566;
  stroke-dashoffset: 566;
  animation: draw 1.4s cubic-bezier(.6, .05, .25, 1) 0.15s forwards;
  transform-origin: 100px 100px;
  transform: rotate(-90deg);
}
.hero-mark .dot {
  opacity: 0;
  transform-origin: 100px 100px;
  transform: scale(0.4);
  animation: land 0.5s ease-out 1.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes land { to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-mark .ring { animation: none; stroke-dashoffset: 0; }
  .hero-mark .dot { animation: none; opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
  }
  .hero-mark { width: 19rem; order: 2; }
  .hero .short { font-size: 1.25rem; }
}

/* Sections */

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  /* A rule that lines up with the text, not the gutter edge. */
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.section-head { margin: 0 0 1.5rem; font-size: 1.5rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.lede { font-size: 1.1875rem; }

@media (min-width: 760px) {
  .split { display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; }
  .split .section-head { margin-bottom: 0; }
}

/* Shows list */

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

.show {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.show:first-child { padding-top: 0; }

.show h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }
.show p { margin: 0; color: var(--muted); max-width: 34rem; }
.show .watch { justify-self: start; color: var(--brass-ink); font-weight: 500; }

@media (min-width: 760px) {
  .show { grid-template-columns: 1fr 1.4fr auto; align-items: baseline; gap: 2rem; padding: 1.5rem 0; }
}

.more { margin-top: 2.25rem; }
.more h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 500; color: var(--muted); }
.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.more a {
  display: inline-block;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.more a:hover { border-color: var(--brass); color: var(--ink); }
.more .kind { color: var(--muted); }

.studio-channel { margin: 2.25rem 0 0; color: var(--muted); }
.studio-channel a { color: var(--ink); }

/* How page */

.page-head { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.page-head p { margin: 1rem 0 0; max-width: var(--measure); font-size: 1.1875rem; color: var(--muted); }

.roles { display: grid; gap: 1rem; }
@media (min-width: 640px) { .roles { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.role {
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.role h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font-size: 1.1875rem; font-weight: 500; }
.role h3 svg { width: 1.35rem; height: 1.35rem; color: var(--brass); flex: none; }
.role ul { margin: 0; padding-left: 1.1rem; }
.role li { margin: 0.2rem 0; }

/* Contact */

.email-big {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 7vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brass-ink);
  text-decoration-thickness: 2px;
}

/* 404 */

.lost { padding-top: 4rem; padding-bottom: 5rem; }
.lost svg { width: 6rem; color: var(--brass); margin-bottom: 1.5rem; }

/* Footer */

.site-foot { border-top: 1px solid var(--rule); margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 2.5rem; }
.foot-shows { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.site-foot a { color: var(--ink); }
.site-foot p { margin: 0; }
@media (min-width: 760px) {
  .site-foot .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .foot-meta { text-align: right; }
}
