/* Hollowfield Collective
 *
 * The daylight inversion of the Institute.
 *
 * The Institute is dark, nocturnal, enamel park signage after sundown, because
 * it is a fiction about things seen at night. The collective is the same hands
 * in the daytime: warm paper, open space, ink rather than glow. Same palette
 * family, opposite temperature, so the two read as related without the real
 * one wearing the fictional one's costume.
 *
 * Faint topographic contours under everything. All three apps are reasons to
 * go outside and look at terrain, and it gives the page texture without
 * needing artwork none of these projects has yet.
 */

:root {
  /* Paper, lightest to most shaded */
  --paper: #f4efe3;
  --paper-warm: #ebe3d2;
  --paper-edge: #d8cdb6;

  /* Ink */
  --ink: #1b2a1f;
  --ink-soft: #4a5a4c;
  --ink-faint: #7d8a7c;

  /* The Institute's green and amber, carried over as accents only */
  --green: #2c5238;
  --green-bright: #3a6b49;
  --amber: #9a6f16;

  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }

body {
  background-color: var(--paper);
  color: var(--ink-soft);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Contour lines. Drawn once as an SVG tile and repeated: no image request, and
   it stays crisp at any zoom. Kept very faint, so it reads as paper that has
   something printed on it rather than as a pattern. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cg fill='none' stroke='%232c5238' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M-20 60 C 60 20, 140 90, 220 55 S 380 10, 440 60'/%3E%3Cpath d='M-20 92 C 60 52, 140 122, 220 87 S 380 42, 440 92'/%3E%3Cpath d='M-20 124 C 60 84, 140 154, 220 119 S 380 74, 440 124'/%3E%3Cpath d='M-20 170 C 70 140, 130 205, 215 175 S 370 130, 440 178'/%3E%3Cpath d='M-20 202 C 70 172, 130 237, 215 207 S 370 162, 440 210'/%3E%3Cpath d='M-20 258 C 80 230, 150 290, 230 262 S 375 222, 440 268'/%3E%3Cpath d='M-20 290 C 80 262, 150 322, 230 294 S 375 254, 440 300'/%3E%3C/g%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
}

/* ------------------------------------------------------------- masthead */

/* Typographic only. The shield belongs to the Institute; borrowing it here
   would blur the line this whole design exists to hold. */
.masthead {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.masthead h1 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

.masthead .sub {
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.7rem;
}

/* ------------------------------------------------------------------ type */

h2 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 600;
  font-size: 1.3125rem;
  color: var(--ink);
  line-height: 1.2;
}

p { margin-bottom: 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

.section { margin-top: 3.5rem; }

/* ------------------------------------------------------------------ work */

.work { display: grid; gap: 1rem; }

/* Mounted on slightly warmer paper than the page, with a hairline. Enough
   separation to scan as distinct things, not so much that it becomes a grid of
   product tiles. */
.item {
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.item:hover { border-color: var(--green-bright); transform: translateY(-1px); }

.item__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: rgb(44 82 56 / 0.09);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
}

/* Status, not platform. Amber so it separates at a glance from the iOS/Web
   tag sitting next to it. */
.tag--soon {
  color: var(--amber);
  background: rgb(154 111 22 / 0.11);
}

.item p { margin-bottom: 0; max-width: none; }
.item .links { margin-top: 0.7rem; font-size: 0.9375rem; }

/* ----------------------------------------------------------------- notice */

/* The one block that is asking for something rather than describing. Green
   ground so it carries weight without a button or a headline shouting. */
.notice {
  background: var(--green);
  color: rgb(244 239 227 / 0.92);
  border-radius: 4px;
  padding: 1.75rem 1.75rem 1.6rem;
  margin-top: 3.5rem;
}
.notice .label { color: rgb(244 239 227 / 0.55); margin-bottom: 1rem; }
.notice h2 { color: var(--paper); margin-bottom: 0.7rem; }
.notice p { color: rgb(244 239 227 / 0.88); max-width: none; }
.notice a { color: #f2c94c; }
.notice a:hover { color: var(--paper); }

/* --------------------------------------------------------------- footer */

.footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--paper-edge);
  color: var(--ink-faint);
  font-size: 0.875rem;
}
.footer .mono { margin-top: 0.6rem; color: var(--ink-faint); }
