/* Labyrinth Works. Dark ink, an orange route through the maze. */

:root {
  --paper: #14120f;
  --paper-2: #1c1915;
  --ink: #ece4d6;
  --ink-2: #b3a996;
  --rule: #3a342c;
  --route: #ec8a5c;
  --route-ink: #f09a70;
  --card: #1a1814;
  --band: #201c17;
  --band-ink: #ece4d6;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 68rem;
  color-scheme: dark;
}

/* Dark is the brand. Light is only for visitors who pick it with the toggle. */
:root[data-theme='light'] {
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --ink: #1d1a16;
  --ink-2: #4f4840;
  --rule: #cfc5b3;
  --route: #c2552b;
  --route-ink: #a3441f;
  --card: #faf7f1;
  --band: #1d1a16;
  --band-ink: #f3eee4;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  /* faint drafting grid */
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}
a { color: var(--route-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: var(--gutter); }

/* maze svgs */
.walls { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.route { fill: none; stroke: var(--route); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }

/* header */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand.small { font-size: 1.1rem; }
.site-head nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-head nav a {
  color: var(--ink-2); text-decoration: none; font-family: var(--mono); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-radius: 3px;
}
.site-head nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-head nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--route); border-radius: 0; }
.theme {
  width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; background: transparent;
  cursor: pointer; display: grid; place-items: center; margin-left: 4px; color: var(--ink);
}
.theme span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.theme:hover { border-color: var(--ink-2); }

main { display: block; }

/* shared section frame */
.hero, .section, .page-head, .cta, .band > .cols, .site-foot > * {
  max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.section { padding-top: 40px; padding-bottom: 40px; }
.narrow > * { max-width: 46rem; }

.kicker, .plate, .status, dt {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.kicker { margin-bottom: 0.9em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--route); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; }

/* hero */
.hero { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 48px; align-items: center; }
.hero-art { color: var(--ink); max-width: 280px; width: 100%; justify-self: start; }
.hero-art .maze { width: 100%; height: auto; display: block; }
.hero-art.small { max-width: 180px; justify-self: start; margin-bottom: 20px; }
.hero .route { stroke-width: 3.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 3.2s 0.3s ease-in-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .route { animation: none; stroke-dashoffset: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }

.btn {
  display: inline-block; padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 3px;
}
.btn:hover { background: var(--route); border-color: var(--route); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--paper); }

/* full-width band */
.band { background: var(--band); color: var(--band-ink); padding: 48px 0; border-block: 1.5px solid var(--ink); }
.band .cols { display: grid; gap: 12px; }
.band h2 { color: var(--band-ink); }
.band .prose p, .band .steps { color: color-mix(in srgb, var(--band-ink) 82%, transparent); }
.band a { color: var(--route); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1.5px solid var(--ink); margin-bottom: 24px; }
.section-head a { font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* product cards */
.cards { display: grid; gap: 18px; }
.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 22px; position: relative; box-shadow: 5px 5px 0 var(--rule); }
.card.next { background: transparent; border-style: dashed; box-shadow: none; color: var(--ink-2); }
.card.next h3 { color: var(--ink-2); }
.card-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.status { color: var(--route-ink); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--route-ink); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; }
.card dt { padding-top: 0.2em; }
.card dd { margin: 0; }
.note { font-size: 0.9rem; color: var(--ink-2); border-left: 2px solid var(--rule); padding-left: 10px; }
.go { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* services */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.section-head + .services { border-top: 0; }
.services li { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.services h3 { margin: 0.2em 0 0.2em; }
.services p { margin: 0; color: var(--ink-2); }
.services.compact p { font-size: 0.98rem; }

.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: 0.9em; }
.steps li::marker { font-family: var(--mono); color: var(--route); }
.band .steps strong { color: var(--band-ink); }

/* IT page */
.offers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 36px; }
.offers li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.offers h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.offers p { margin: 0; color: var(--ink-2); }
.rate dl { grid-template-columns: 1fr; gap: 2px; }
.rate dd { margin-bottom: 10px; display: grid; }
.rate dd strong { font-family: var(--serif); font-size: 1.3rem; }
.rate dd span { font-size: 0.9rem; color: var(--ink-2); }
.rate-notes { margin: 24px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.rate-notes li { margin-bottom: 0.4em; }
.narrow-text { max-width: 46rem; }

/* cta */
.cta { padding-top: 56px; padding-bottom: 64px; text-align: left; }
.cta h2 { max-width: 30rem; }

/* page heads */
.page-head { padding-top: 32px; padding-bottom: 8px; }
.page-head .lede { margin-bottom: 0; }

/* contact */
.mailcard {
  display: grid; gap: 6px; padding: 26px 22px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card);
  text-decoration: none; color: var(--ink); box-shadow: 5px 5px 0 var(--route);
}
.mailcard .addr { font-family: var(--serif); font-size: clamp(1.25rem, 5.4vw, 2rem); overflow-wrap: anywhere; }
.mailcard .sub { color: var(--ink-2); font-size: 0.95rem; }
.mailcard:hover .addr { color: var(--route-ink); }
.postal { margin-top: 18px; }

/* prose / legal */
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; padding-top: 0.8em; border-top: 1px solid var(--rule); }
.legal h2:first-of-type { margin-top: 0.6em; }

.legal-address { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--rule); color: var(--ink-2); }
.lost { padding-bottom: 80px; }

/* footer */
.site-foot { border-top: 1.5px solid var(--ink); margin-top: 24px; padding: 36px 0 28px; background: var(--paper); }
.foot-grid { display: grid; gap: 24px; }
.foot-grid h2 { font-family: var(--mono); font-size: 0.76rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 8px; }
.foot-grid nav { display: grid; gap: 4px; align-content: start; }
.foot-grid nav a { color: var(--ink); text-decoration: none; }
.foot-grid nav a:hover { color: var(--route-ink); text-decoration: underline; }
.foot-grid p { color: var(--ink-2); margin: 8px 0 0; }
.fine { font-size: 0.85rem; color: var(--ink-2); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero-art { max-width: 420px; justify-self: center; }
  .hero { grid-template-columns: 1.15fr 1fr; padding-top: 56px; padding-bottom: 80px; gap: 48px; }
  .band .cols { grid-template-columns: 14rem 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  .services:not(.compact) li { grid-template-columns: 6rem 1fr; column-gap: 24px; }
  .services:not(.compact) li .plate { grid-row: span 2; padding-top: 0.5em; }
  .services.compact { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .offers { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .page-head { padding-top: 56px; }
}
