/* ============================================================
   HolTyc — site chrome (nav, footer, project-page primitives)
   Layered on top of colors_and_type.css. Strict workshop look.
   ============================================================ */

* { box-sizing: border-box; }
body { padding: 0; margin: 0; }

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ht-paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--fg-1);
}
.nav-mark-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  padding: var(--s-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--ht-coral); }
.nav-links a.active { color: var(--fg-1); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ht-coral);
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ht-shop);
  color: var(--fg-on-dark);
  padding: var(--s-8) var(--s-7);
  margin-top: var(--s-9);
}
.site-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.foot-mark { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--fg-on-dark); }
.foot-right { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; }
.foot-right a {
  color: var(--fg-on-dark);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.foot-right a:hover { opacity: 1; color: var(--ht-coral); }
.foot-right .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

/* ---------- Page container ---------- */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-7);
}

/* ---------- Project detail: header ---------- */
.proj-head {
  padding: var(--s-9) 0 var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-9);
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .proj-head { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-7); }
}
.proj-head .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s-5);
}
.proj-head .crumb a { color: var(--fg-3); text-decoration: none; }
.proj-head .crumb a:hover { color: var(--ht-coral); }
.proj-head .crumb .num { color: var(--ht-coral); }
.proj-head h1 {
  font-size: 96px;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 var(--s-5);
  max-width: 12ch;
}
.proj-head h1 .ext { color: var(--ht-coral); }
.proj-head .lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg-1);
  max-width: 50ch;
  margin: 0;
}
.proj-head .meta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.proj-head .stamps {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.proj-head .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.proj-head .meta-grid .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.proj-head .meta-grid .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.proj-head .meta-grid .v.coral { color: var(--ht-coral); }

/* ---------- Hero photo ---------- */
.proj-hero {
  margin: var(--s-7) 0 0;
  position: relative;
}
.proj-hero img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  border-radius: var(--r-2);
  box-shadow: var(--sh-photo);
}
.proj-hero .caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: var(--s-3);
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.proj-section {
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--rule);
}
.proj-section:last-of-type { border-bottom: 0; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s-9);
}
@media (max-width: 880px) {
  .section-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .proj-section { padding: var(--s-7) 0; }
}
.section-grid h2 {
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  font-weight: 500;
}
.section-grid .body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0 0 var(--s-4);
  max-width: 60ch;
}
.section-grid .body p:last-child { margin-bottom: 0; }
.section-grid .body p .mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- Photo strip / grid ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.photo-strip figure { margin: 0; grid-column: span 6; }
.photo-strip figure.wide { grid-column: span 8; }
.photo-strip figure.narrow { grid-column: span 4; }
.photo-strip figure.full { grid-column: span 12; }
@media (max-width: 880px) {
  .photo-strip figure,
  .photo-strip figure.wide,
  .photo-strip figure.narrow,
  .photo-strip figure.full { grid-column: span 12; }
}
.photo-strip img {
  width: 100%;
  display: block;
  border-radius: var(--r-2);
  background: var(--ht-paper-deep);
  aspect-ratio: 3/2;
  object-fit: cover;
}
.photo-strip figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-top: var(--s-2);
  line-height: 1.4;
}

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.spec-table tr { border-bottom: 1px solid var(--rule); }
.spec-table tr:first-child { border-top: 1px solid var(--rule); }
.spec-table th, .spec-table td { padding: var(--s-3) 0; text-align: left; vertical-align: top; }
.spec-table th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  width: 40%;
  padding-right: var(--s-5);
}
.spec-table td { color: var(--fg-1); }
.spec-table td .accent { color: var(--ht-coral); }

/* ---------- Build log ---------- */
.log-list { display: flex; flex-direction: column; gap: 0; }
.log-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule);
}
.log-entry:first-child { border-top: 1px solid var(--rule); }
@media (max-width: 880px) {
  .log-entry { grid-template-columns: 1fr; gap: var(--s-3); }
}
.log-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 4px;
}
.log-date .v { color: var(--ht-coral); display: block; font-size: 13px; margin-top: 2px; }
.log-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
  line-height: 1.15;
}
.log-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 var(--s-3);
  max-width: 62ch;
}
.log-body .stamps { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }

/* ---------- Downloads ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--ht-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  text-decoration: none;
  color: var(--fg-1);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.dl-card:hover { border-color: var(--ht-coral); color: var(--fg-1); }
.dl-card .left { display: flex; flex-direction: column; gap: 4px; }
.dl-card .name { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.dl-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.dl-card .icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  color: var(--ht-coral);
  flex-shrink: 0;
}
.dl-card .icon svg { width: 18px; height: 18px; }

/* ---------- Team strip ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card { display: flex; flex-direction: column; gap: var(--s-3); }
.team-card .ph {
  aspect-ratio: 1/1;
  background: var(--ht-paper-deep);
  border-radius: var(--r-2);
  overflow: hidden;
}
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.team-card .one-liner {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  margin: 0;
}

/* ---------- Next-project footer block ---------- */
.next-proj {
  padding: var(--s-8) 0 var(--s-9);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-6);
  border-top: 1px solid var(--rule);
}
.next-proj .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.next-proj a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.next-proj a:hover { color: var(--ht-coral); }
.next-proj a svg { width: 36px; height: 36px; }

/* ---------- Section eyebrow helper ---------- */
.section-eyebrow {
  margin-bottom: var(--s-4);
}
