/* Ars Technis GmbH — single stylesheet.
   No imports, no third-party fonts: everything here is self-contained.

   Palette is a forge: warm iron and ember rather than corporate blue. Body is
   a serif for reading; labels are monospace, which is the register a workshop
   actually writes in. */

:root {
  --ink:        #1a1613;
  --ink-soft:   #4a423a;
  --ink-faint:  #665d53;
  --bg:         #faf8f5;
  --bg-alt:     #f1ede6;
  --line:       #e3ddd3;
  --accent:     #9a4715;
  --accent-ink: #75350f;
  --focus:      #9a4715;

  --measure: 40rem;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype",
           "Times New Roman", serif;
  --mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
           "Liberation Mono", "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e9e4dc;
    --ink-soft:   #b8afa4;
    --ink-faint:  #978d81;
    --bg:         #14120f;
    --bg-alt:     #1c1814;
    --line:       #2e2820;
    --accent:     #e08b3f;
    --accent-ink: #eda660;
    --focus:      #e08b3f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.99rem + 0.2vw, 1.12rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6rem) 0 3rem;
}

/* ---------- language switch ---------- */

/* Sits above the masthead, quiet: a reader who wants it finds it, a reader who
   does not is not interrupted by it. Plain links — no JavaScript, so it works
   with scripting disabled and each language has a real, linkable URL. */
.lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 0 0 2.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

/* Separator belongs to the CONTAINER, not to the link. Putting it on the
   link's ::before makes it part of that element's box, so it renders inside
   the DE hyperlink — underlined on hover and inside the click target. Drawn
   on .lang instead, it sits between the two items and belongs to neither. */
.lang::before {
  content: "|";
  order: 1;
  color: var(--ink-faint);
  opacity: 0.55;
}

.lang > :first-child { order: 0; }
.lang > :last-child  { order: 2; }

.lang a { color: var(--ink-faint); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang [aria-current] { color: var(--ink); }

/* ---------- header ---------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 3rem;
}

/* ---------- body ---------- */

p { margin: 0 0 1.05rem; }

.lead {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.42rem);
  line-height: 1.4;
  margin-bottom: 2.25rem;
}

/* Bullets sit on the monospace register: this is a spec sheet, not prose. */
.work {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.87rem;
  line-height: 1.55;
}

.work li {
  color: var(--ink-soft);
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.work li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* Section labels are monospace and sit on a hairline: the join between two
   pieces of work, not a decorative divider. */
h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
  margin: 3.25rem 0 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.item { margin: 0 0 1.35rem; color: var(--ink-soft); }
.item:last-child { margin-bottom: 0; }

.item b {
  display: block;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

section p:not(.item) { color: var(--ink-soft); }
.muted { color: var(--ink-faint); font-size: 0.94rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.mail {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}

/* ---------- footer ---------- */

footer {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--ink-faint);
}

footer h2 { margin-bottom: 1.35rem; }

.imprint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
}
.imprint p { margin: 0; }

footer a { color: var(--ink-faint); }
footer a:hover { color: var(--ink); }

.colophon {
  margin: 2.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
