/* Home page. Dark, single accent palette. The design panel (npm run design)
   swaps the @section regions below, so edit options in design/templates/home.css. */
:root {
  --bg: #111213;
  --surface: #1b1c1e;
  --fg: #ecedee;
  --muted: #8d9095;
  --accent: #ecedee;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --side: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; font-weight: inherit; }
h1, h2, h3 { text-wrap: balance; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(var(--side), env(safe-area-inset-left, 0px)); padding-right: max(var(--side), env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.ln { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--muted); transition: color .2s, text-decoration-color .2s; }
.ln:hover { color: var(--accent); text-decoration-color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sec-h { font-size: 22px; font-weight: 600; margin-bottom: 32px; }
main > [data-section]:not(footer) { padding-bottom: 120px; }

/* Project pictures */
.pic { background: var(--surface); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.pic.contain { display: flex; align-items: center; justify-content: center; }
.pic.contain img { width: auto; height: 86%; object-fit: contain; }
.pic.fit { background: #fff; }
.pic.fit img { object-fit: contain; }
.pic.top-left img { object-position: left top; }
.pic .stat { display: grid; place-items: center; width: 100%; height: 100%; background: #1f4d47; color: #ecedee; font-size: clamp(40px, 6vw, 88px); font-weight: 600; }
a:hover .pic img { transform: scale(1.03); }

/* @section hero: Quiet (option 5) */
.hero-5 { padding-top: 120px; max-width: 620px; }
.hero-5 .who { display: flex; gap: 16px; align-items: center; }
.hero-5 .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hero-5 h1 { font-size: 18px; font-weight: 600; }
.hero-5 .who p { color: var(--muted); }
.hero-5 .body { margin-top: 40px; display: grid; gap: 18px; font-size: 18px; }
.hero-5 .body p:last-child { color: var(--muted); }
.hero-5 .links { margin-top: 40px; }
@media (max-width: 720px) { .hero-5 { padding-top: 72px; } }
/* @end hero */

/* @section work: Image grid (option 2) */
.work-2 .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
.work-2 .pic { aspect-ratio: 4 / 3; }
.work-2 h3 { font-size: 20px; font-weight: 500; margin-top: 16px; transition: color .2s; }
.work-2 a:hover h3 { color: var(--accent); }
.work-2 p { color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) { .work-2 .grid { grid-template-columns: 1fr; } }
/* @end work */

/* @section xp: Logos (option 3) */
.xp-3 .logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.xp-3 img, .xp-3 .nologo { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.xp-3 .nologo { background: var(--surface); }
.xp-3 h3 { font-size: 18px; font-weight: 500; margin-top: 16px; }
.xp-3 p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .xp-3 .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* @end xp */

/* @section contact: Columns (option 3) */
.contact-3 { padding-bottom: 48px; }
.contact-3 .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 24px; }
.contact-3 h2 { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.contact-3 p { color: var(--muted); margin-top: 16px; max-width: 32ch; }
.contact-3 ul { display: grid; gap: 10px; align-content: start; }
.contact-3 .small { color: var(--muted); font-size: 14px; margin-top: 64px; }
@media (max-width: 720px) { .contact-3 .cols { grid-template-columns: 1fr; } }
/* @end contact */

@media (max-width: 720px) {
  main > [data-section]:not(footer) { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
