/* Blackwolffe: plain CSS for the one-page site and the 404 page.
   Built from docs/design/look-d.dc.html (look D). Every font is served from /fonts. */

/* Fonts: only the faces the pages use, latin subsets. Licences sit next to the files. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

:root {
  color-scheme: dark;
  --accent: #C9A45C;
  --deep: #1C3046;
  --ink: #F1F4F7;
  --soft: #D7DFE7;
  --quiet: #B4C2D0;
  --rule: #33506E;
  --link: #E4C887;
  --paper: #F4F6F8;
  --navy: #14243A;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: max(16px, 3vw);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

html {
  background: var(--deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Every band shares one centered column. */
.inner {
  max-width: 1160px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.band { border-top: 1px solid var(--rule); }

/* Header */
.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.brand,
.brand:hover {
  font-family: var(--serif);
  font-size: 34px;
  text-decoration: none;
  color: var(--ink);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding-top: 48px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero-text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  margin: 0;
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 1;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 30em;
  font-size: 20px;
  color: var(--soft);
}
.hero-art {
  flex: 1 1 500px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Gold frames around the grids and the painting */
.frame {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: var(--accent);
  box-shadow: var(--shadow);
  /* Keep the pictures' own colors in Windows high-contrast mode. */
  forced-color-adjust: none;
}
.hero-art .frame { max-width: 600px; }

.paper {
  background: var(--paper);
  color: #111111;
  box-sizing: border-box;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
}
.grid-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grid-figure figcaption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}
.mono-figure { flex: 1 1 240px; max-width: 290px; }
.mono-figure figcaption { padding-left: 50px; }
.color-figure { flex: 1 1 190px; max-width: 238px; }

/* The black-and-white grid with its clues: one clue column, then ten cells. */
.nonogram {
  display: grid;
  grid-template-columns: 48px repeat(10, minmax(0, 1fr));
  gap: 2px;
}
.nonogram .cc {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 60px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}
.nonogram .rc {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
}
.nonogram .cell {
  aspect-ratio: 1;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px #111111;
  background: #FFFFFF;
}
.nonogram .fill { background: #111111; }

/* The same grid in color */
.color-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
}
.color-grid span {
  aspect-ratio: 1;
  max-width: 100%;
  background: #E3EBF2;
}
.color-grid .sun { background: #F2B233; }
.color-grid .mtn { background: #5B6B8C; }
.color-grid .mdw { background: #6FA34A; }
.color-grid .lake { background: #3F7FB5; }

/* Picture Proof */
.proof {
  padding-top: 80px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.painting-figure {
  margin: 0;
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.painting-figure .frame { max-width: 620px; }
.painting {
  aspect-ratio: 3 / 2;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  box-shadow: inset 0 0 0 3px var(--navy);
  background:
    radial-gradient(circle at 78% 17%, #FFE7A3 0 6%, transparent 6.5%),
    linear-gradient(to bottom, #F7C98A 0%, #B8D3E0 27%, #6E7F9B 27%, #6E7F9B 43%, #2F5B45 43%, #2F5B45 58%, #4E88A8 58%, #4E88A8 73%, #9DBE5B 73%, #9DBE5B 89%, #D98BA1 89%);
}
.painting span {
  box-shadow: inset 0 0 0 1px rgba(20, 36, 58, 0.35);
}
.painting .veil {
  background:
    repeating-linear-gradient(0deg, rgba(241, 244, 247, 0.07) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(241, 244, 247, 0.07) 0 1px, transparent 1px 14px),
    #2B4560;
}
.painting-figure figcaption {
  background: var(--paper);
  color: var(--navy);
  padding: 14px 18px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  forced-color-adjust: none;
}
.painting-figure strong { font-weight: 600; }

.proof-text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
.proof-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
}
.badge {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.proof-text p { margin: 0; }
.proof-text .lead { font-size: 20px; }
.proof-text .soft { color: var(--soft); }
.proof-text .quiet { color: var(--quiet); }

/* Contact and privacy */
.info {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.info section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info .contact { flex: 1 1 300px; }
.info .privacy { flex: 2 1 460px; }
.info h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
}
.info p { margin: 0; }
.info .privacy p { color: var(--soft); }

/* Footer */
.foot {
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--quiet);
}

/* 404 page */
.missing {
  padding-top: 48px;
  padding-bottom: 120px;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.missing p { margin: 0; }
.missing .home { font-size: 20px; }

/* Nothing on these pages moves; this keeps it that way if motion is ever added. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
