/* koden.dev — layout on top of the Modernist tokens and components (copied unchanged from the
   design system, v1.3.0). Values come from tokens; nothing here adds a color, radius or font. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2"); }

:where(h1, h2, h3, p, ul) { margin: 0; }

.wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
@media (min-width: 768px) { .wrap { padding-left: var(--space-8); padding-right: var(--space-8); } }
@media (min-width: 1024px) { .wrap { padding-left: var(--space-12); padding-right: var(--space-12); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-2); z-index: 10; }

.nav-links a, .nav-actions a { min-height: 44px; }
.nav-actions a { display: flex; align-items: center; }

/* Hero: flush-left, big type, one line of copy, two actions. */
.hero { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-16); padding-bottom: var(--space-12); border-bottom: var(--rule); }
.hero .lead { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.section-header { margin-bottom: var(--space-6); }
.section-intro { max-width: 60ch; margin-bottom: var(--space-6); color: var(--color-muted); }

/* Services: ruled cells with a title and two lines. */
.service { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.service h3 { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.service p { color: var(--color-muted); }

/* Work: the last odd card spans the row so no empty ink cell shows. */
.work > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .work.cols-3 > .card:last-child:nth-child(odd) { grid-column: auto; }
  .work.cols-3 > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .work.cols-3 > .card:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
.card-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.card-meta a { color: var(--color-accent-text); font-weight: 800; }

/* Stack: plain ruled list of what we build with. */
.stack { display: grid; gap: 2px; background: var(--color-ink); border: var(--rule); grid-template-columns: 1fr; }
@media (min-width: 768px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack > div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-6); background: var(--color-ground); }
.stack .label-xs { color: var(--color-muted); }

/* Contact poster: the one accent field on the page. */
.poster { min-height: 0; }
.poster a { color: inherit; }
.poster .display { overflow-wrap: anywhere; }

.footer { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.footer a { color: var(--color-ink); }
.poster-page { min-height: 60vh; }
/* Browsers give <hr> its own grey color; the poster rule must follow the field text. */
.poster-rule { color: inherit; }
