/* Direction: architecture monograph — sand plaster page, burnt-clay accent, thin wide-spaced uppercase */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #e9e1d4;
  --surface: #f3ece2;
  --surface-2: #ded3c2;
  --border: #cdc0ad;
  --border-strong: #aaa196;
  --ink: #221d18;
  --muted: #5d5548;
  --accent: #a84526;
  --accent-hover: #8f3b20;
  --accent-ink: #ffffff;
  --accent-text: #8d3a1e;
  --accent-strong: #76301a;
  --accent-soft: #ecdacd;
  --accent-border: #cc9b86;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d0d5c2;
  --success-strong: #106430;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #e3d0bc;
  --warning-strong: #8d4006;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #e3c9be;
  --danger-strong: #aa1a1a;
  --chart-1: #a84526;
  --chart-2: #907c10;
  --chart-3: #0b623c;
  --chart-4: #1c8aa3;
  --chart-5: #404298;
  --chart-6: #b25c9c;

  --font-display: "Jost", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 300;
  --display-tracking: 0.14em;
  --radius-card: 0px;
  --radius-btn: 999px;
  --radius-input: 0px;
  --card-pad: 1.75rem;
  --shadow-card: none;
  --x-on-photo: #ffffff;
  --x-night: #1f1a15;
  --gradient-scrim: linear-gradient(to top, rgba(18, 14, 10, 0.72) 0%, rgba(18, 14, 10, 0.22) 45%, rgba(18, 14, 10, 0.06) 100%);
  --gradient-grain: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.016) 0 2px, rgba(255, 255, 255, 0.022) 2px 4px);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #110803;
  --surface: #29211c;
  --surface-2: #1d1410;
  --border: #322b26;
  --border-strong: #58524f;
  --ink: #e9e1d4;
  --muted: #938a80;
  --accent: #a84526;
  --accent-hover: #b56147;
  --accent-ink: #ffffff;
  --accent-text: #c07b64;
  --accent-strong: #c07b64;
  --accent-soft: #32150b;
  --accent-border: #552313;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #122210;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #351904;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #360c09;
  --danger-strong: #d16969;
  --chart-1: #b55132;
  --chart-2: #a38e19;
  --chart-3: #0f985f;
  --chart-4: #1a97b3;
  --chart-5: #6e75d1;
  --chart-6: #bf67a8;
}

html {
  scroll-behavior: smooth;
}

.plaster {
  background-image: var(--gradient-grain);
  background-attachment: fixed;
}

.scrim {
  background-image: var(--gradient-scrim);
}

.page-in {
  animation: page-in 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes page-in {
  from {
    opacity: 0.4;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zoom img {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.zoom:hover img,
.zoom:focus-visible img {
  transform: scale(1.055);
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.6875rem;
  line-height: 1.7;
  font-family: var(--font-display);
}

.monoline {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.12em;
}

html.reduced-motion {
  scroll-behavior: auto;
}

html.reduced-motion .zoom img,
html.reduced-motion .page-in {
  transition: none;
  animation: none;
  transform: none;
}
