:root {
  --bg: #f2efe8;
  --surface: #fffdf8;
  --ink: #111;
  --muted: #4a4a4a;
  --accent: #ff5b2e;
  --line: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 91, 46, 0.08) 0%, rgba(255, 91, 46, 0) 45%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(17, 17, 17, 0.08) 32px),
    var(--bg);
  line-height: 1.5;
}

.site-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero,
.section-grid,
.section-domain,
.section-projects,
.section-workflow,
.section-principles,
.site-footer {
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--line);
  margin-bottom: 1rem;
}

.hero,
.section-grid,
.section-domain,
.section-projects,
.section-workflow,
.section-principles {
  padding: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4%;
}

.hero-content {
  min-width: 0;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 7vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  margin-top: 0.85rem;
  font-weight: 500;
  max-width: 50ch;
}

.hero-summary {
  margin-top: 0.75rem;
  max-width: 72ch;
  color: var(--muted);
}

.hero-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-links a,
.site-footer a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.hero-links a:hover,
.site-footer a:hover,
.hero-links a:focus-visible,
.site-footer a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-grid h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.panel {
  border: 2px solid var(--line);
  padding: 0.9rem;
  background: #fff;
}

.panel ul,
.section-principles ul {
  margin: 0;
  padding-left: 1.1rem;
}

.panel li,
.section-principles li {
  margin-bottom: 0.4rem;
}

.panel li:last-child,
.section-principles li:last-child {
  margin-bottom: 0;
}

.section-domain p {
  max-width: 78ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.card {
  border: 2px solid var(--line);
  background: #fff;
  padding: 0.9rem;
  min-height: 100%;
}

.card .meta {
  margin-top: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-featured {
  grid-column: 1 / -1;
}

.card .kicker {
  margin-bottom: 0.65rem;
}

.card p + p,
.section-domain p + p,
.section-workflow p + p {
  margin-top: 0.8rem;
}

.card .outcome {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.section-workflow > p {
  max-width: 80ch;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.workflow-steps li::marker {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}

.tool-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.site-footer {
  padding: 1rem 1.2rem;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 220px;
  }

  .site-shell {
    padding: 0.75rem;
  }

  .section-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-grid,
  .section-domain,
  .section-projects,
  .section-workflow,
  .section-principles,
  .site-footer {
    box-shadow: 5px 5px 0 var(--line);
  }
}
