/* oni1 · Sage & Copper. Shared by the website and its visual style guide. */
:root {
  color-scheme: light;
  --color-sage: #e3e8dd;
  --color-sage-shade: #d5dfcf;
  --color-forest: #293b32;
  --color-copper: #8b4b32;
  --color-copper-hover: #733b26;
  --color-muted: #566653;
  --color-rule: #acb6a5;
  --color-control-border: #687965;
  --color-white: #ffffff;
  --bg: var(--color-sage);
  --paper: var(--color-sage-shade);
  --ink: var(--color-forest);
  --muted: var(--color-muted);
  --faint: #5b6d57;
  --line: var(--color-rule);
  --accent: var(--color-copper);
  --orange: var(--color-copper);
  --button-ink: var(--color-white);
  --drawing-ink-rgb: 41, 59, 50;
  --drawing-accent-rgb: 139, 75, 50;
  --hatch: url(brand/textures/crosshatch.svg);
  --texture-paper: url(brand/textures/paper-fibers.svg);
  --texture-margins: url(brand/textures/margin-etching.svg);
}
/* Surface marks sit underneath the content, never over the lettering. */
body {
  position: relative;
  background-image: var(--texture-paper);
  background-size: 400px 400px;
}
body::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  mix-blend-mode: normal;
  background-image: var(--texture-margins);
  background-size: 120px 480px;
  mask-image: linear-gradient(
    to right,
    #000,
    transparent clamp(14px, 4vw, 72px),
    transparent calc(100% - clamp(14px, 4vw, 72px)),
    #000
  );
}
::selection {
  color: var(--button-ink);
  background: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
/* Lining figures give the numeral 1 a full-height flag and baseline. */
.brand-wordmark,
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.055em;
  white-space: nowrap;
}
.brand-wordmark .wordmark-number,
.footer-wordmark .wordmark-number {
  color: var(--accent);
  margin-left: 0.03em;
}
.footer-wordmark {
  display: inline-block;
  font-size: clamp(100px, 17.2vw, 240px);
  line-height: 1.1;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
}
.footer-wordmark > .wordmark-number {
  -webkit-text-fill-color: currentColor;
}
.site-footer .footer-wordmark:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}
.button-primary,
.skip-link {
  color: var(--button-ink);
  background: var(--accent);
}
.button-primary {
  border-color: var(--accent);
  box-shadow:
    3px 3px 0 var(--bg),
    4px 4px 0 var(--accent);
}
.button-primary::before {
  background-image: var(--hatch);
  opacity: 0.12;
}
.button-primary:hover {
  background: var(--color-copper-hover);
  border-color: var(--color-copper-hover);
  transform: translate(-2px, -2px);
  box-shadow:
    5px 5px 0 var(--bg),
    6px 6px 0 var(--accent);
}
.button-secondary {
  border-color: var(--color-control-border);
  color: var(--ink);
}
.hero-illustration {
  color: var(--ink);
  padding-block: 20px 24px;
  border: 1px solid var(--line);
  background: var(--bg) var(--texture-paper);
}
.hero-illustration .corner-a {
  top: 46px;
}
.hero-illustration .corner-b {
  bottom: 53px;
}
.wanderers-art,
.brand-illustration,
.subpage-art {
  mix-blend-mode: multiply;
}
.hero-illustration figcaption {
  flex-wrap: wrap;
}
.visual-topline,
.visual-corner,
.about-section .section-label,
.about-signature .mono,
.about-right > p:not(.about-lead),
.principle > span:last-child {
  color: var(--muted);
}
.project-status,
.project-status.upcoming {
  color: var(--accent);
}
.project-card::before,
.about-section::before,
.about-section::after {
  background-image: var(--hatch);
}
.project-visual.illustrated-visual {
  background: var(--bg) var(--texture-paper);
  height: 330px;
}
.illustrated-visual::after {
  display: none;
}
.illustrated-visual .brand-illustration {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 58px);
  transform: translate(-50%, -50%);
  object-fit: contain;
  mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.visual-topline,
.visual-corner {
  z-index: 1;
}
.principle {
  border-color: var(--line);
}
/* Keep extended reading and required controls on predictable surfaces. */
.project-info,
.project-card::after {
  background: var(--bg);
}
.about-section {
  background: var(--paper) var(--texture-paper);
}
.about-right {
  background: var(--paper);
  box-shadow: 0 0 18px 16px var(--paper);
}
.experiment-stage {
  background-image: radial-gradient(var(--line) 0.65px, transparent 0.65px);
}
.experiment-fallback g {
  stroke: var(--accent);
}
.formation.active {
  background: var(--ink);
  color: var(--bg);
}
.brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}
.principle .brand-icon {
  width: 28px;
  height: 28px;
}
.open-source-strip > .brand-icon {
  width: 42px;
  height: 42px;
}
.subpage-hero .subpage-art {
  width: 52%;
  right: -10px;
  top: 35px;
  max-height: 470px;
  object-fit: contain;
  mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.video-placeholder::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px), var(--hatch);
}
.video-placeholder > .brand-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
}
.footer-bottom nav {
  flex-wrap: wrap;
}
.footer-bottom .brand-guide-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  body::before {
    mask-image: linear-gradient(
      to right,
      #000,
      transparent 14px,
      transparent calc(100% - 14px),
      #000
    );
  }
  .hero-illustration {
    width: 100%;
    margin: 0;
    padding-block: 18px 22px;
  }
  .hero-illustration .plate-label {
    font-size: 5px;
    padding-inline: 12px;
  }
  .hero-illustration figcaption {
    padding-inline: 12px;
  }
  .home-page .hero-illustration .hand-note {
    font-size: 17px;
  }
  .project-visual.illustrated-visual {
    height: 275px;
  }
  .principle {
    gap: 16px;
  }
  .subpage-hero .subpage-art {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    margin: 20px auto 0;
    opacity: 1;
  }
  .subpage-hero {
    padding-bottom: 30px;
  }
}
