/*
Theme Name: edb guru
Theme URI: https://edb.guru/
Author: edb guru
Description: Small block theme for edb.guru. Front page = a normal page of core blocks; header and footer are template parts. Source: ~/work/edb.guru/wordpress/theme on the Claude host.
Version: 2.3.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: edbguru
*/

/* ======================================================================================
   edb guru 2.0 — "EDB-udskrift". EDB is the old Danish word for computing; its most
   recognisable artefact is the fanfold printout with pale green bands and tractor holes.
   That printout (the services list) is the one bold element. Everything else is quiet:
   one sans family, left aligned, white space instead of rules, green only on the printout,
   brand orange (the logo square) for logo, buttons and links. Monospace appears only on the printout.
   ====================================================================================== */

@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Dark only (Jes, 25 Nov 2026: "always the dark theme"). The printout keeps its own light paper and ink. */
  --desk: #141c25;         /* what the paper lies on */
  --paper: #e8ece5;
  --band: #cfe0ca;         /* green-bar band */
  --accent: #ff6d2e;       /* brand orange (the logo square): logo, buttons, links, focus */
  --accent-hover: #ff8a55;
  --on-accent: #1a0f08;
  --accent-text: #ff8a55;  /* orange for text links on the dark desk (contrast > 7:1) */
  --accent-text-hover: #ffb08a;
  --ink: #e5eaee;
  --muted: #9eabb8;
  --rule: #2b3643;
  --print-ink: #1f2b38;
  --print-muted: #4b5662;
  --sans: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.6;
  font-kerning: normal;
}
p { margin: 0 0 1rem; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-text-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }
.wp-site-blocks { padding: 0; }
.wp-block-heading { margin-top: 0; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); text-wrap: balance; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--print-ink); padding: .5rem 1rem; z-index: 10; }

/* ---------------------------------------------------------------- header */
header.top { padding: 1.4rem 0; }
.headerbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.headerbar .wp-block-html { display: contents; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.3125rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: .78em; height: .78em; background: var(--accent); flex: none; }
.headerbar .nav { margin: 0; font-size: 1rem; }
.headerbar .nav a { color: var(--muted); text-decoration: none; margin-left: 1.75rem; }
.headerbar .nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 32rem) { .headerbar .nav a:not(:last-child) { display: none; } }

/* ---------------------------------------------------------------- hero: type only */
.hero { padding-top: 3.5rem; padding-bottom: 4.5rem; }
@media (min-width: 48rem) { .hero { padding-top: 5rem; padding-bottom: 3rem; } }
.hero .eyebrow { display: flex; align-items: center; gap: .55rem; font-size: 1rem; color: var(--muted); margin: 0 0 1.25rem; }
.hero .eyebrow::before { content: ""; width: .55rem; height: .55rem; background: var(--accent); flex: none; }
.hero h1.wp-block-heading {
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);   /* 36 -> 72px */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 15ch;
  margin: 0 0 1.75rem;
}
.hero .lead { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 33em; margin: 0 0 2.25rem; }

/* ---------------------------------------------------------------- buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.wp-block-buttons .wp-block-button__link {
  display: inline-block; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; border: 0; border-radius: 8px; padding: .85rem 1.4rem;
}
.wp-block-buttons .primary .wp-block-button__link { background: var(--accent); color: var(--on-accent); }
.wp-block-buttons .primary .wp-block-button__link:hover { background: var(--accent-hover); color: var(--on-accent); }
.wp-block-buttons .secondary .wp-block-button__link {
  background: none; color: var(--ink); padding-left: 0; padding-right: 0; border-radius: 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.wp-block-buttons .secondary .wp-block-button__link:hover { color: var(--accent-text); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- sections: heading left, content right */
main section { padding: 4rem 0; }
@media (min-width: 48rem) { main section { padding: 5rem 0; } }
main section h2.wp-block-heading { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; }
main section .intro { color: var(--muted); max-width: 26em; margin: 0 0 2rem; }
@media (min-width: 60rem) {
  main section > .wrap:not(.split) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 4.5rem; align-items: start; }
  main section > .wrap:not(.split) > h2,
  main section > .wrap:not(.split) > .intro { grid-column: 1; }
  main section > .wrap:not(.split) > .wp-block-group { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------------------------------------------------------------- the printout (services) */
.services {
  position: relative;
  margin: 0;
  padding: 1.75rem 3rem 2rem;
  background: var(--paper);
  color: var(--print-ink);
  font-family: var(--mono);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(20, 28, 37, .08), 0 22px 44px -28px rgba(20, 28, 37, .45);
}
/* tractor strips: a row of punched holes every half inch, behind a perforation */
.services::before, .services::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2.1rem;
  background-image: radial-gradient(circle, var(--desk) 0 .3rem, transparent .33rem);
  background-size: 2.1rem 1.5rem; background-position: center .4rem; background-repeat: repeat-y;
}
.services::before { left: 0; border-right: 1px dashed rgba(31, 43, 56, .22); }
.services::after { right: 0; border-left: 1px dashed rgba(31, 43, 56, .22); }
.services > .wp-block-group { margin: 0; padding: 1.1rem 1.25rem 1.15rem; }
.services > .wp-block-group:nth-child(odd) { background: var(--band); }
.services h3.wp-block-heading { font-family: var(--mono); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; color: var(--print-ink); margin: 0 0 .35rem; }
.services p { font-size: .9375rem; line-height: 1.6; color: var(--print-muted); margin: 0; }
@media (max-width: 36rem) {
  .services { padding: 1.25rem 1.9rem 1.5rem; }
  .services::before, .services::after { width: 1.4rem; background-size: 1.4rem 1.25rem; background-image: radial-gradient(circle, var(--desk) 0 .22rem, transparent .25rem); }
  .services > .wp-block-group { padding: 1rem .9rem; }
}

/* ---------------------------------------------------------------- how I work */
.principles { display: grid; gap: 2rem; margin: 0; }
.principles > .wp-block-group { margin: 0; }
.principles h3.wp-block-heading { font-size: 1.3125rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .35rem; }
.principles p { color: var(--muted); margin: 0; max-width: 32em; }

/* ---------------------------------------------------------------- own projects: a plain list */
.cards { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.card > * { grid-column: 1; }
.card .tag { display: none; }
.card h3.wp-block-heading { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .3rem; }
.card p { color: var(--muted); margin: 0; max-width: 32em; }
.card .go { grid-column: 2; grid-row: 1; margin: 0; font-size: 1rem; }
.card .go a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 { color: var(--accent-text); }
@media (max-width: 36rem) { .card { grid-template-columns: 1fr; } .card .go { grid-column: 1; grid-row: auto; margin-top: .6rem; } }

/* ---------------------------------------------------------------- contact */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; } }
.split p { max-width: 33em; }
.split .wp-block-buttons { margin: 1.75rem 0 1.5rem; }
.split .primary .wp-block-button__link { font-size: 1.3125rem; padding: 1rem 1.6rem; }
.split .note { color: var(--muted); font-size: 1rem; }
.facts { align-self: start; margin: 0; padding-top: .35rem; }
.facts > .wp-block-group { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts > .wp-block-group:first-child { border-top: 1px solid var(--rule); }
.facts p { margin: 0; overflow-wrap: anywhere; }
.facts .k { color: var(--muted); font-size: 1rem; }

/* ---------------------------------------------------------------- footer, plain pages */
footer.bottom { padding: 2rem 0 3rem; color: var(--muted); font-size: 1rem; }
footer.bottom .wrap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; }
footer.bottom .wrap::before { content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { footer.bottom .wrap::before { left: 2rem; right: 2rem; } }
footer.bottom p { margin: 0; }
.plain { padding-top: 3.5rem; padding-bottom: 4.5rem; }
.plain h2.wp-block-heading { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 2.25rem 0 .5rem; }
.plain p { max-width: 36em; }
.plain .updated { color: var(--muted); font-size: 1rem; margin-top: 2.5rem; }
.plain h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1.5rem; }
@media (prefers-reduced-motion: no-preference) { a, .wp-block-button__link { transition: color .12s, background-color .12s; } }
