:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #E9EEEC;
  --surface: #F6F8F7;
  --ink: #14232B;
  --ink-soft: #3E5560;
  --line: #C3CFCB;
  --accent: #2447E8;
  --accent-ink: #FFFFFF;
  --pla-yellow: #F0B90B;
  --pla-teal: #12A594;
  --pla-pink: #E5527A;
  --pla-grey: #8A99A1;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A1F; --surface: #17262D; --ink: #E7EFEC; --ink-soft: #9DB2B9;
    --line: #2B4049; --accent: #7C97FF; --accent-ink: #0F1A1F;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A1F; --surface: #17262D; --ink: #E7EFEC; --ink-soft: #9DB2B9;
  --line: #2B4049; --accent: #7C97FF; --accent-ink: #0F1A1F;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
header.site { padding: 1.25rem 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-family: var(--display); font-weight: 800; text-decoration: none; font-size: 1.1rem; }
nav a { margin-left: 1.5rem; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 5rem); }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  line-height: 0.88; letter-spacing: -0.03em; margin: 0;
}
.hero h1 .printed {
  display: block; width: fit-content;
  background: repeating-linear-gradient(to top, var(--ink) 0 5px, var(--ink-soft) 5px 6px);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: print 2.2s steps(22, end) both;
}
.hero h1 .printed + .printed { margin-top: 0.04em; }
.hero h1 .three-d { color: var(--accent); -webkit-text-fill-color: var(--accent); background: none; }
@keyframes print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero p.lede { max-width: 34rem; margin: 2rem 0 0; font-size: 1.2rem; color: var(--ink-soft); }
.hero .cta {
  display: inline-block; margin-top: 1.75rem; padding: 0.85rem 1.4rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 500;
  text-decoration: none; border-radius: 6px;
}
.hero .cta:hover { filter: brightness(1.1); }

/* Prints */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; line-height: 1.05; }
.section-intro { color: var(--ink-soft); max-width: 36rem; margin: 0 0 2.5rem; }
.prints { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
figure.print { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
figure.print .art { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1rem; border-bottom: 1px solid var(--line); }
figure.print svg { width: 100%; height: 100%; max-height: 100%; }
figure.print img { width: 100%; height: 100%; object-fit: cover; display: block; }
figcaption { padding: 0.9rem 1rem 1.1rem; }
figcaption strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
figcaption span { color: var(--ink-soft); font-size: 0.95rem; }
.print:nth-child(1) { grid-column: span 3; }
.print:nth-child(2) { grid-column: span 3; }
.print:nth-child(3), .print:nth-child(4), .print:nth-child(5) { grid-column: span 2; }
.print:nth-child(6) { grid-column: span 6; }
.print:nth-child(6) .art { aspect-ratio: 16 / 5; }
@media (max-width: 760px) {
  .prints { grid-template-columns: 1fr 1fr; }
  .print:nth-child(n) { grid-column: span 1; }
  .print:nth-child(1), .print:nth-child(6) { grid-column: span 2; }
  .print:nth-child(6) .art { aspect-ratio: 4 / 3; }
  nav a { margin-left: 1rem; }
}
@media (max-width: 460px) {
  .prints { grid-template-columns: 1fr; }
  .print:nth-child(n) { grid-column: span 1; }
}

/* Workshop */
.workshop { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.workshop p { margin: 0 0 1rem; max-width: 36rem; }
dl.spec { margin: 0; border-top: 1px solid var(--line); }
dl.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
dl.spec dt { color: var(--ink-soft); }
dl.spec dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 760px) { .workshop { grid-template-columns: 1fr; gap: 2rem; } }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact a.mail { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--accent); text-underline-offset: 6px; overflow-wrap: anywhere; }
footer.site { padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .printed { animation: none; }
  html { scroll-behavior: auto; }
}
