/* Dimenzen home (index.html): white paper, the emblem alone in the middle, the name and one line bottom left, the e-mail
   bottom right. Light only, on purpose. The emblem is a box in iso view whose inner edges slid out into the traces of a
   circuit board: home.js draws the box, slides the edges out, runs a green trace to three plated through-holes, lays the
   copper and lets it set to ink. A mouse near it (or a finger on it) brings the box back. */
:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --accent: #1a7f37;
  --ease-out: cubic-bezier(.23, 1, .32, 1);        /* entering; home.js evaluates the same two curves */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);    /* moving on screen */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 2.8vw, 44px);
  --m: clamp(132px, 25vmin, 232px);     /* the emblem */
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  padding-block: var(--gut);
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- the emblem: as drawn by default (no JS, reduced motion); home.js runs the intro and the box behind it */
.stage {
  display: grid; place-items: center;
  min-height: calc(var(--m) * 1.8);   /* air round it */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.mark { display: block; width: var(--m); height: calc(var(--m) * .985); overflow: visible; color: var(--ink); }
.part { fill: none; stroke: currentColor; stroke-linejoin: round; }
.hx, .sp { stroke-width: 7.34; }
.c { stroke-width: 6.3; }
.part.a { fill: currentColor; stroke: none; }
.build { opacity: 0; fill: none; stroke: var(--ink-3); stroke-width: 1px; stroke-linecap: round; }   /* the box, in 1 px construction lines */
.build line { vector-effect: non-scaling-stroke; }
.mk { fill: none; stroke: #fff; stroke-width: 14; }   /* the copper's reveal masks: white shows */
.js .mark { opacity: 0; animation: show 0s 2.5s forwards; }   /* home.js shows it once the first pose is set; this is the fallback */
.js .mark.is-on { opacity: 1; animation: none; }

/* ---- the name and the line, bottom left; the e-mail bottom right */
.foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 22px 48px;
}
.js .foot { opacity: 0; animation: show 0s 2.5s forwards; }   /* the text waits for the emblem; this is the fallback */
.is-drawing .foot { animation: none; }                         /* home.js holds it while the emblem draws itself */
.is-drawn .foot { opacity: 1; animation: rise .5s var(--ease-out); }   /* and brings it in as the box lines vanish */
.id { display: grid; gap: 10px; min-width: 0; }
h1 {
  margin: 0;
  font-size: clamp(38px, 2.4vw + 22px, 60px); font-weight: 600; letter-spacing: -.036em; line-height: .95;
}
.tag {
  margin: 0;
  font-size: clamp(17px, .45vw + 14px, 21px); line-height: 1.3; letter-spacing: -.012em;
  color: var(--ink-2); text-wrap: balance;
}
.meta {
  margin: 0;
  display: flex; align-items: center;
  font-size: 14px; line-height: 1; color: var(--ink-2);
}
.meta a {
  min-height: 44px;
  display: inline-flex; align-items: center;
  color: inherit; text-decoration: none; white-space: nowrap;
  transition: text-decoration-color .2s ease;
}
.meta .mail {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.meta a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---- phones upright: everything bottom left, the e-mail on its own row */
@media (max-width: 599px) {
  .foot { flex-direction: column; align-items: stretch; gap: 18px; }
}

@keyframes show { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .is-drawn .foot { animation-name: fade; }   /* the same entrance without the rise */
}
