:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #18222a;
  --muted: #53606a;
  --line: #d7ddd8;
  --soft-line: #edf0ed;
  --blueprint: #155f8f;
  --deep-blueprint: #08385d;
  --launch: #e4571b;
  --leaf: #3f7a45;
  --hope: #d99a18;
  --shadow: 0 18px 42px rgb(24 34 42 / 0.12);
  --radius: 10px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgb(21 95 143 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 95 143 / 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgb(215 221 216 / 0.84);
  background: rgb(255 253 248 / 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  color: var(--ink);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand::after {
  position: absolute;
  right: -0.2rem;
  bottom: -0.28rem;
  left: 0.2rem;
  height: 3px;
  content: "";
  background: var(--launch);
  transform: rotate(-2deg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: var(--launch);
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(4.25rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.overview {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.identity {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 740;
  line-height: 1.16;
}

.lede,
.wide-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
}

.maker-wall {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.8rem;
  align-items: stretch;
}

.blueprint-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blueprint-link:focus,
.story-row:focus {
  outline: 3px solid rgb(228 87 27 / 0.68);
  outline-offset: 6px;
}

.feature-image {
  grid-column: 1 / -1;
}

.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgb(21 95 143 / 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.patch,
.draft-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 8px 24px rgb(24 34 42 / 0.08);
}

.patch {
  display: grid;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 0.18), transparent 48%),
    var(--deep-blueprint);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-2deg);
}

.draft-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.loop-card {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  background:
    linear-gradient(rgb(21 95 143 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 95 143 / 0.09) 1px, transparent 1px),
    #f9fbfa;
  background-size: 18px 18px;
  color: var(--deep-blueprint);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.15;
  transform: rotate(1.4deg);
}

.loop-card span {
  position: relative;
  padding-left: 1.65rem;
}

.loop-card span::before {
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 0.92rem;
  height: 0.92rem;
  border: 2px solid var(--launch);
  border-radius: 4px;
  content: "";
  transform: rotate(-4deg);
}

.loop-card span::after {
  position: absolute;
  left: 0.22rem;
  top: -0.02rem;
  color: var(--leaf);
  content: "/";
  font-size: 1.18rem;
  font-weight: 900;
  transform: rotate(22deg);
}

.sticky-note {
  display: flex;
  align-items: center;
  color: #4f4739;
  background: #fff2b7;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.05rem;
  transform: rotate(-1.5deg);
}

.aphorism-card {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
}

.section-board {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: rgb(255 255 255 / 0.55);
  box-shadow: var(--shadow);
}

.story-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(210px, 0.7fr) minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  min-height: 136px;
  padding: clamp(1rem, 2.6vw, 1.55rem);
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.story-row:first-child {
  border-top: 0;
}

.story-row:hover {
  z-index: 1;
  background: #fff;
  transform: translateX(4px);
}

.dark-row {
  background: var(--deep-blueprint);
  color: #f8fbfd;
}

.dark-row p,
.dark-row .section-kicker {
  color: #cce2ec;
}

.image-row {
  background:
    linear-gradient(90deg, rgb(255 253 248 / 0.94), rgb(255 253 248 / 0.72)),
    linear-gradient(rgb(21 95 143 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 95 143 / 0.12) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.contact-row {
  cursor: default;
}

.story-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-row.dark-row p,
.story-row.dark-row .section-kicker {
  color: #cce2ec;
}

.section-kicker {
  margin-bottom: 0.32rem;
  color: var(--launch);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.row-arrow {
  position: relative;
  align-self: end;
  margin-bottom: 0.2rem;
  color: var(--leaf);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1rem;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.row-arrow::before {
  position: absolute;
  right: calc(100% + 0.45rem);
  bottom: -0.1rem;
  content: "->";
}

.row-icon {
  position: relative;
  width: 70px;
  height: 70px;
  color: var(--blueprint);
}

.heart-icon::before {
  position: absolute;
  inset: 12px;
  color: var(--launch);
  content: "♡";
  font-size: 4.8rem;
  line-height: 0.65;
}

.cloud-icon {
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 24px 24px;
}

.cloud-icon::before,
.cloud-icon::after {
  position: absolute;
  border: 3px solid currentColor;
  border-bottom: 0;
  content: "";
}

.cloud-icon::before {
  left: 5px;
  top: 18px;
  width: 32px;
  height: 28px;
  border-radius: 999px 999px 0 0;
}

.cloud-icon::after {
  right: 5px;
  top: 6px;
  width: 40px;
  height: 40px;
  border-radius: 999px 999px 0 0;
}

.pulse-icon::before {
  position: absolute;
  inset: 22px 0;
  border-top: 4px solid var(--leaf);
  content: "";
}

.pulse-icon::after {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 46px;
  height: 42px;
  border-left: 4px solid var(--leaf);
  border-bottom: 4px solid var(--leaf);
  content: "";
  transform: skewX(-32deg) rotate(-8deg);
}

.rocket-icon::before {
  position: absolute;
  inset: 8px 22px;
  border: 3px solid var(--launch);
  border-radius: 999px 999px 14px 14px;
  content: "";
  transform: rotate(32deg);
}

.rocket-icon::after {
  position: absolute;
  left: 15px;
  bottom: 5px;
  color: var(--launch);
  content: "///";
  font-weight: 900;
  transform: rotate(32deg);
}

.book-icon::before {
  position: absolute;
  inset: 13px 6px;
  border: 3px solid var(--blueprint);
  border-radius: 8px;
  content: "";
}

.book-icon::after {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 50%;
  border-left: 3px solid var(--blueprint);
  content: "";
}

.plane-icon::before {
  position: absolute;
  inset: 15px 2px;
  border-top: 4px solid var(--leaf);
  border-right: 4px solid var(--leaf);
  content: "";
  transform: skewX(-32deg) rotate(-15deg);
}

.say-hi {
  position: relative;
  color: var(--leaf);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.7rem;
  transform: rotate(-4deg);
}

.say-hi::before {
  position: absolute;
  right: calc(100% + 0.2rem);
  bottom: 0.15rem;
  color: var(--leaf);
  content: "->";
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.8rem;
}

.detail-page,
.blueprint-detail {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.detail-panel,
.blueprint-intro {
  max-width: 1040px;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.detail-panel h1,
.blueprint-intro h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.detail-graphic {
  margin: 0;
}

.detail-graphic img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.values-graphic {
  justify-self: end;
  padding-top: clamp(2rem, 5vw, 3.4rem);
  transform: rotate(2deg);
}

.work-graphic {
  justify-self: end;
  padding-top: clamp(1rem, 3vw, 2rem);
  transform: rotate(-2deg);
}

.work-graphic img {
  width: min(100%, 260px);
}

.now-section {
  margin-top: 1.5rem;
}

.now-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.project-grid {
  margin-top: 1rem;
}

.project-grid a,
.text-link {
  color: var(--deep-blueprint);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration-line: underline;
}

.text-link:hover,
.text-link:focus {
  color: var(--launch);
}

.standalone-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 850;
}

.image-modal {
  width: min(94vw, 1120px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
}

.image-modal::backdrop {
  background: rgb(24 34 42 / 0.68);
}

.modal-frame {
  position: relative;
  max-height: 92vh;
  overflow: auto;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  border: 2px solid rgb(21 95 143 / 0.34);
  border-radius: var(--radius);
  background: var(--paper);
}

.modal-frame h2 {
  max-width: none;
  margin: 0 3.2rem 0.8rem 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.modal-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  border-color: var(--launch);
  color: var(--launch);
}

.excerpt {
  max-width: 840px;
  margin: 1rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border-left: 5px solid var(--launch);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgb(255 255 255 / 0.78);
  color: var(--ink);
  font-style: italic;
  box-shadow: 0 8px 24px rgb(24 34 42 / 0.08);
  font-size: 1.04rem;
}

.excerpt p {
  margin-bottom: 0.9rem;
}

.excerpt p:last-child {
  margin-bottom: 0;
  color: var(--deep-blueprint);
  font-weight: 850;
}

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

.value-grid p {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.78);
  color: var(--muted);
  font-size: 0.98rem;
}

.value-grid strong {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
}

.blueprint-full {
  margin: 0;
}

.blueprint-full img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgb(21 95 143 / 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bench-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 0.98rem;
  text-align: center;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-board,
  .story-row {
    grid-template-columns: 1fr;
  }

  .maker-wall {
    grid-template-columns: 1fr 1fr;
  }

  .row-arrow {
    justify-self: start;
    margin-left: 2rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .values-graphic {
    justify-self: start;
    max-width: 320px;
  }

  .work-graphic {
    justify-self: start;
  }
}

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .maker-wall {
    grid-template-columns: 1fr;
  }

  .story-row {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-row {
    transition: none;
  }
}
