@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Rajdhani:wght@300;400;500&display=swap");

:root {
  --ink: #050505;
  --space: #0a0a0b;
  --paper: #eeeee9;
  --silver: #a8adb5;
  --line: rgba(238, 238, 233, 0.24);
  --theme-bg: #050505;
  --theme-fg: #eeeee9;
  --theme-muted: #a8adb5;
  --theme-bg-rgb: 5, 5, 5;
  --theme-fg-rgb: 238, 238, 233;
  --media-ink: #11120f;
  --media-paper: #ded8ca;
  --display: Eurostile, "Eurostile Extended", "Square 721", Rajdhani, sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="paper"] {
  color-scheme: light;
  --theme-bg: #ded8ca;
  --theme-fg: #1c1e1a;
  --theme-muted: #62645d;
  --theme-bg-rgb: 222, 216, 202;
  --theme-fg-rgb: 28, 30, 26;
  --ink: var(--theme-bg);
  --space: #d3ccbd;
  --paper: var(--theme-fg);
  --silver: var(--theme-muted);
  --line: rgba(var(--theme-fg-rgb), 0.25);
}

html[data-page-theme="manual"] {
  --paper: var(--theme-bg);
  --ink: var(--theme-fg);
  --silver: var(--theme-muted);
  --line: rgba(var(--theme-fg-rgb), 0.25);
  --line-dark: rgba(var(--theme-fg-rgb), 0.3);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="paper"] body {
  background: var(--theme-bg);
  color: var(--theme-fg);
}

html[data-theme="paper"] body video {
  filter: grayscale(1) contrast(1.24) sepia(0.22) saturate(0.55) brightness(0.9);
}

img,
video {
  display: block;
}

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

button {
  color: inherit;
  font: inherit;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.theme-toggle__glyph {
  width: 12px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
  transform: rotate(-24deg);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--theme-fg);
  outline: none;
}

.theme-toggle--compact {
  min-width: 48px;
  min-height: 48px;
}

.theme-toggle--compact .theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.045em;
}

.eyebrow {
  color: var(--silver);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hairline-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  gap: 30px;
  padding: 13px 15px;
  border: 1px solid currentColor;
  background: transparent;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.hairline-button::after {
  content: "\2192";
  font-size: 16px;
}

.hairline-button:hover,
.hairline-button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

@media (pointer: coarse) {
  .hairline-button {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .hairline-button {
    min-width: 168px;
    padding-inline: 13px;
  }

  .grain {
    opacity: 0.055;
  }

  .theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.micro-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-transform: uppercase;
}

.micro-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
}

.micro-nav a {
  color: var(--silver);
  letter-spacing: 0.12em;
}

.micro-nav a:hover,
.micro-nav a:focus-visible {
  color: var(--paper);
}

.dog-crop {
  position: relative;
  overflow: hidden;
  background: #000;
}

.dog-crop img {
  position: absolute;
  inset: 0 auto 0 0;
  width: auto;
  height: 100%;
  max-width: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

html[data-theme="paper"] .grain {
  opacity: 0.045;
  mix-blend-mode: multiply;
}

html[data-page-theme="manual"][data-theme="dark"] .grain {
  opacity: 0.08;
  mix-blend-mode: screen;
}

.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: currentColor;
  opacity: 0.75;
}

.frame-corners::before {
  inset: 12px auto auto 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.frame-corners::after {
  inset: auto 12px 12px auto;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
