/* ===========================================================================
   007575.xyz — Hermes / Nous Research duotone aesthetic
   STRICTLY TWO COLORS: deep teal #007575 + paper cream #F4F1EA.
   Didone serif for display ONLY. Monospace for ALL functional/UI/body text.
   No third color. No gradients (tonal). No glows. No rounded corners.
   =========================================================================== */

:root {
  --blue: #007575;
  --cream: #F4F1EA;
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --mono: "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1240px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;            /* sharp corners everywhere */
}

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

body {
  margin: 0;
  background: var(--blue);     /* Mode A: blue field */
  color: var(--cream);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--cream); color: var(--blue); }

/* global CRT scanline wash — hard 1px blue lines over cream-tinted field */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 117, 117, 0.05) 0px,
    rgba(0, 117, 117, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---- shared display / labels ------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

/* thin rules */
.rule { height: 0; border-top: 1px solid var(--cream); }
.rule-heavy { border-top-width: 3px; }

/* ---- masthead ----------------------------------------------------------- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.mast-left, .mast-right {
  display: flex;
  gap: 26px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.mast-right { justify-content: flex-end; }
.mast-left a:hover, .mast-right a:hover { text-decoration: underline; text-underline-offset: 4px; }

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}
.wm-tld { opacity: 1; }
.wordmark:hover { text-decoration: underline; text-underline-offset: 4px; }

.cta-link { font-weight: 700; }

/* ---- hero (Mode A) ------------------------------------------------------ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  overflow: hidden;
}
/* Hermes engraving — recolored into the duotone:
   grayscale flattens the periwinkle figure, `screen` blend drops the black
   field into the teal so the figure glows cream over the page. */
.hero-art {
  position: absolute;
  top: 50%; right: -150px;
  transform: translateY(-50%);
  width: 660px; height: auto;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.08) brightness(1.06);
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(120% 120% at 62% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(120% 120% at 62% 50%, #000 58%, transparent 100%);
}
.hero > *:not(.hero-art) { position: relative; z-index: 1; }
.hero .kicker { margin-bottom: 26px; }

.hero .display {
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  max-width: 12ch;
}

.hero-foot {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-body {
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-transform: uppercase;
  max-width: 42ch;
  margin: 0;
}

/* ---- terminal block (Mode B: cream card on blue) ------------------------ */
.terminal {
  background: var(--cream);
  color: var(--blue);
  border: 3px solid var(--cream);
  outline: 1px solid var(--blue);
  outline-offset: -4px;        /* inner blue keyline = window matte */
  position: relative;
  z-index: 1;
}
.terminal-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--blue);
}
.tab {
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border-right: 1px solid var(--blue);
}
.tab-active { background: var(--blue); color: var(--cream); }
.copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: transparent;
  border: none;
  border-left: 1px solid var(--blue);
  padding: 8px 14px;
  cursor: pointer;
}
.copy:hover, .copy.done { background: var(--blue); color: var(--cream); }
.terminal-body {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.t-prompt { font-weight: 700; }

/* ---- section head ------------------------------------------------------- */
.index {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sh-left .kicker { margin-bottom: 12px; }
.section-title { font-size: clamp(2.4rem, 7vw, 5rem); }

.sh-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.count-box {
  border: 1px solid var(--cream);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
#search {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  padding: 8px 12px;
  width: 180px;
  outline: none;
}
#search::placeholder { color: var(--cream); opacity: 0.6; }
#search:focus { background: var(--cream); color: var(--blue); }
#search:focus::placeholder { color: var(--blue); opacity: 0.5; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  padding: 6px 11px;
  cursor: pointer;
}
.chip-active { background: var(--cream); color: var(--blue); }   /* filled invert */

/* ---- project grid (3-up, Mode B cards) ---------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--blue);
  border: 4px solid var(--cream);
  outline: 1px solid var(--blue);
  outline-offset: -5px;          /* blue window-matte keyline */
  text-decoration: none;
  animation: rise 0.4s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card-index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--blue);
}
.tag-box {
  border: 1px solid var(--blue);
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.tag-box.is-live { background: var(--blue); color: var(--cream); }

/* duotone engraving emblem */
.emblem {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--blue);
  overflow: hidden;
}
.emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.emblem::after {              /* halftone / scanline print texture */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    var(--blue) 0px,
    var(--blue) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.16;
}

.card-name {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  padding: 16px 14px 8px;
  margin: 0;
}
.card-tagline {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
  padding: 0 14px 16px;
  margin: 0;
  flex: 1;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--blue);
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.card-host { text-transform: lowercase; }
.card-go { font-weight: 700; letter-spacing: 0.16em; }
.card:hover { background: var(--blue); color: var(--cream); border-color: var(--blue); outline-color: var(--cream); }
.card:hover .card-index,
.card:hover .emblem,
.card:hover .card-foot { border-color: var(--cream); }
.card:hover .tag-box { border-color: var(--cream); }
.card:hover .tag-box.is-live { background: var(--cream); color: var(--blue); }
.card:hover .emblem svg { color: var(--cream); }
.card:hover .emblem::after { background: repeating-linear-gradient(to bottom, var(--cream) 0, var(--cream) 1px, transparent 1px, transparent 4px); }

/* ---- empty + footer ----------------------------------------------------- */
.empty {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 56px 0;
}

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---- doc / about pages --------------------------------------------------- */
.doc-table { width: 100%; border-collapse: collapse; font-size: 12px; letter-spacing: 0.06em; }
.doc-table th, .doc-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--cream); vertical-align: top; }
.doc-table th { width: 20%; white-space: nowrap; letter-spacing: 0.14em; }
.doc-table a:hover { text-decoration: underline; text-underline-offset: 4px; }
.doc-comment { opacity: 0.55; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-art { width: 460px; right: -140px; opacity: 0.4; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .masthead { grid-template-columns: 1fr auto; }
  .mast-left { display: none; }
  .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
  .sh-right { align-items: stretch; }
  .controls, .filters { justify-content: flex-start; }
  #search { flex: 1; }
  .hero-art { width: 360px; right: -120px; top: 22%; opacity: 0.28; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
