/* Chris Deichman — portfolio
   Quiet, craft-forward. No glow, no gradient type, no tech gimmicks. */

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #f4f1eb;
  --paper: #fffcf7;
  --ink: #1a1917;
  --muted: #5c5852;
  --soft: #8a857c;
  --line: #ddd6cb;
  --line-soft: #ebe5db;
  --accent: #6b2d24;
  --wash: #ebe6dc;
  --max: 680px;
  --wide: 1120px;
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* —— Banner —— */
.temp-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--soft);
  padding: 0.45rem 1rem;
  background: var(--wash);
  border-bottom: 1px solid var(--line-soft);
}
.temp-note a {
  color: var(--muted);
}

/* —— Header —— */
.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
/* no decorative logo mark */

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a.active,
.site-header nav a:hover {
  color: var(--ink);
}

/* —— Layout —— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) 4.5rem;
}
main.wide {
  max-width: var(--wide);
}

/* —— Hero —— */
.hero {
  padding: 3rem 0 2.5rem;
  max-width: 36rem;
}
.hero .eyebrow,
.project-hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--ink);
  /* solid ink — no gradient text */
}
.hero .lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}
.what-i-do {
  font-size: 1rem;
  margin: 0 0 1.35rem;
  padding: 0 0 0 0.9rem;
  border-left: 2px solid var(--ink);
  line-height: 1.55;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-points li {
  padding-left: 0.9rem;
  position: relative;
}
.hero-points li.primary,
.hero-points li strong {
  color: var(--ink);
}
.hero-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--soft);
}

/* chips — quiet, not tech badges */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
}
.chip-row span {
  font-size: 0.88rem;
  color: var(--muted);
}
.chip-row span::before {
  content: "· ";
  color: var(--soft);
}
.chip-row span:first-child::before {
  content: none;
}

/* —— Bands —— */
.impact-band {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  margin: 0 0 1.75rem;
}
.impact-band h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.impact-band .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.15rem;
  line-height: 1.6;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .impact-grid { grid-template-columns: 1fr; }
}
.impact-cell {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.impact-cell .num {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  /* solid — no gradient clip */
}
.impact-cell .lbl {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.impact-band .fine {
  margin: 1.15rem 0 0;
  font-size: 0.85rem;
  color: var(--soft);
}
.impact-band .fine a {
  color: var(--accent);
}

/* —— Section heads —— */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.75rem 0 1.35rem;
  padding-top: 0.25rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}
.section-head p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

/* —— Work grid —— */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem 1.35rem;
}
.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover { color: inherit; }
.card-img {
  aspect-ratio: 4 / 3;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line-soft);
}
.card:hover .card-img {
  border-color: var(--line);
}
.card-img img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* no scale, no glow, no corner marks */
.card .cat {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 0.25rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.card:hover h3 {
  color: var(--accent);
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.35rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 780px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.featured-grid .card-img {
  aspect-ratio: 16 / 11;
}

/* —— Project pages —— */
.project-hero {
  padding: 2.5rem 0 1.5rem;
  max-width: 38rem;
}
.project-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.project-hero .one-liner {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
  line-height: 1.65;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.meta-row span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.28rem 0.5rem;
  color: var(--muted);
  background: var(--paper);
}

.hero-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.35rem;
  margin: 0 0 2.25rem;
  text-align: center;
}
.hero-visual img {
  margin: 0 auto;
  max-height: 480px;
  object-fit: contain;
}
.hero-visual figcaption {
  text-align: left;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.prose {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}
.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.55rem;
}
.prose p {
  margin: 0 0 1rem;
  color: #333;
}
.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: #333;
}
.prose li { margin-bottom: 0.35rem; }
.prose a {
  color: var(--accent);
}
.prose .fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.prose .fact strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
  font-family: var(--sans);
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 1.35rem 0 2.25rem;
  padding: 0;
  counter-reset: step;
}
.process li {
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 0.85rem;
  font-size: 0.9rem;
  counter-increment: step;
}
.process li::before {
  content: counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.process strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--ink);
}
.process span {
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 0 0 2.25rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 0.8rem;
}
.gallery figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
  margin: 0 auto;
}
.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.closing {
  max-width: 38rem;
  margin-top: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.closing h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
.closing p {
  color: #333;
  margin: 0 0 1rem;
}
.back-link {
  display: inline-block;
  margin: 0.4rem 0 1.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }
.related h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 0.65rem;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}
.related-links a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.related-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

article.closing {
  border-top: 1px solid var(--line);
}
article.closing h2 {
  font-family: var(--serif) !important;
  color: var(--ink) !important;
}

/* —— About —— */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2.75rem;
  padding-top: 2.25rem;
}
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}
.about-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 1.15rem;
  color: var(--ink);
}
.about-copy .lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}
.about-copy p {
  margin: 0 0 1rem;
  color: #333;
}
.about-copy a {
  color: var(--accent);
}
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.9rem;
}
.side-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-card li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.4;
}
.side-card li:last-child { border-bottom: 0; }
.side-card li strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
}

/* —— Utility —— */
code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  background: var(--wash);
  color: var(--ink);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* —— Impact table —— */
.year-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 2.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.year-table th,
.year-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  color: #333;
}
.year-table th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--wash);
}
.year-table tbody tr:last-child td {
  font-weight: 600;
  background: var(--wash);
  border-bottom: 0;
}
.year-table td strong { font-weight: 600; }
@media (max-width: 640px) {
  .year-table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }
}

::selection {
  background: #e4d5c8;
  color: var(--ink);
}
