/* Ferrite Studio: minimal, editorial, dark. One accent, used sparingly.
   Font URLs are RELATIVE to this file so the OG/icon templates can reuse it. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0b;
  --ink: #ecebe6;
  --muted: #9a978f;
  --line: rgba(236, 235, 230, 0.12);
  --accent: #c9b8ff; /* pearl lilac: 11:1 on --bg */

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 10;
}
.skip:focus {
  transform: none;
}

/* ---- Header ---- */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.mark img {
  display: block;
  width: 32px;
  height: 32px;
}
.top nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.9375rem;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.top nav a:hover {
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(72px, 15vh, 168px);
  padding-bottom: clamp(40px, 7vh, 88px);
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 9vw, 8.25rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  color: var(--accent);
}
.lede {
  margin: clamp(28px, 4.5vh, 48px) 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---- The orb hero ---- */
.hero-orb {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 16px 48px;
  padding-top: clamp(32px, 8vh, 112px);
  padding-bottom: clamp(48px, 9vh, 120px);
}
.hero-orb h1 {
  font-size: clamp(3.25rem, 7.2vw, 7rem);
}
.orb {
  margin: 0;
  display: grid;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.orb > img,
.orb > canvas {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
}
.orb [hidden] {
  display: none;
}

/* ---- Sections ---- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 48px;
  padding-block: clamp(72px, 13vh, 144px);
}
/* Rules between sections span the content, not the gutters. */
.band + .band,
.foot {
  background: linear-gradient(var(--line), var(--line)) 50% 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.band h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.375rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.big {
  margin: 0 0 clamp(36px, 6vh, 64px);
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.7vw, 2.375rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.tenets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tenets li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tenets h3 {
  margin: 0 0 10px;
  font: 500 1.0625rem/1.3 var(--sans);
  letter-spacing: -0.005em;
}
.tenets p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.project h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--ink);
  font: 400 0.8125rem/1 var(--mono);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.note {
  margin: 20px 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.reach {
  margin: 0;
}
.email {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.6vw, 3.75rem);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: color 0.2s;
}
.email:hover {
  color: var(--accent);
}

/* ---- Footer ---- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 40px;
  color: var(--muted);
  font: 400 0.8125rem/1.5 var(--mono);
}
.foot p {
  margin: 0;
}
.foot a {
  text-decoration: none;
}
.foot-links {
  display: flex;
  gap: 24px;
}
.foot a:hover {
  color: var(--ink);
}

/* ---- Press kit ---- */
.hero-short {
  padding-bottom: clamp(16px, 3vh, 40px);
}
.hero-short h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}
.lede a,
.note a,
.facts a,
.downloads a {
  color: var(--ink);
}
.facts {
  margin: 0;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px 24px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.downloads li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-preview {
  margin: 0 0 4px;
  height: 140px;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.dl-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.dl-dark {
  background: #141413;
}
.dl-light {
  background: #f2efe9;
}
.dl-orb {
  padding: 4px;
}
.dl-field {
  padding: 0;
}
.dl-field img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.downloads span {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.swatches li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swatches li::before {
  content: "";
  height: 72px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
}
.swatches code {
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}
.sw-iron::before {
  background: #0c0c0b;
}
.sw-bone::before {
  background: #ecebe6;
}
.sw-ash::before {
  background: #9a978f;
}
.sw-lilac::before {
  background: #c9b8ff;
}
.sw-rose::before {
  background: #f6cfe1;
}
.sw-sky::before {
  background: #cfe0ff;
}
.sw-mint::before {
  background: #cff3e6;
}
.sw-paper::before {
  background: #f2efe9;
}
@media (max-width: 720px) {
  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ---- 404 ---- */
.lost {
  min-height: 62vh;
}
.lost .lede a {
  color: var(--ink);
}

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenets {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .hero-orb {
    grid-template-columns: minmax(0, 1fr);
  }
  .orb {
    order: -1;
    justify-self: center;
    max-width: 420px;
    margin-bottom: -16px;
  }
}
@media (max-width: 420px) {
  .top nav {
    gap: 14px;
    font-size: 0.875rem;
  }
  .mark {
    font-size: 1.3125rem;
  }
}

/* ---- Motion: one quiet entrance, nothing else ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .lede,
  .orb {
    animation: rise 0.9s var(--ease) both;
  }
  .lede {
    animation-delay: 0.12s;
  }
  .orb {
    animation-delay: 0.2s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
