/* ==========================================================
   satzer.at – Stylesheet
   Concept: warm dark "lab meets flow" for the professional part
   (amber/copper accents, CFD-like streamlines, bento grid) and a
   separate "after hours" space-themed band for private projects.
   Colours, fonts and spacing: change the variables in :root.
   No external fonts/CDNs on purpose (GDPR-friendly).
   ========================================================== */

:root {
  /* Professional – warm dark */
  --bg: #15110e;
  --card: rgba(33, 26, 21, 0.78);
  --card-hover: rgba(42, 33, 26, 0.9);
  --text: #f4ece3;
  --muted: #b3a597;
  --faint: #7a6c60;
  --border: rgba(214, 190, 165, 0.14);
  --border-strong: rgba(242, 166, 90, 0.5);

  --accent: #f2a65a;      /* amber */
  --accent-2: #e9c46a;    /* warm gold */
  --accent-3: #e07a5f;    /* terracotta */

  /* Private – night sky */
  --night: #0f1024;
  --night-card: rgba(28, 30, 64, 0.6);
  --night-text: #e6e6ff;
  --night-muted: #a3a6d6;
  --night-border: rgba(165, 170, 255, 0.22);
  --night-accent: #a5b4fc;
  --night-accent-2: #f0abfc;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --max-width: 1120px;
  --gap: 16px;
  --radius: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(242, 166, 90, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 35%, rgba(224, 122, 95, 0.09), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 0.75em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Streamlines background (professional part) ---------- */
.pro { position: relative; isolation: isolate; }
.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.flow path {
  fill: none;
  stroke: url(#flowGradient);
  stroke-width: 1.1;
  stroke-dasharray: 6 14;
  animation: flow 18s linear infinite;
}
.flow path:nth-child(even) { animation-duration: 26s; opacity: 0.6; }
.flow path:nth-child(3n)   { animation-duration: 34s; stroke-width: 0.8; }
@keyframes flow { to { stroke-dashoffset: -400; } }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 28px 0 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.topbar .logo { color: var(--text); text-decoration: none; font-weight: 600; }
.topbar .logo span { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.18);
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  padding: 24px 0 72px;
}

.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  overflow: hidden;
}
.tile:hover { border-color: var(--border-strong); background: var(--card-hover); }
a.tile { color: inherit; text-decoration: none; display: block; }
a.tile:hover { transform: translateY(-2px); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-2  { grid-row: span 2; }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* Hero tile */
.hero-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(242, 166, 90, 0.12), transparent 45%),
    var(--card);
}
.hero-tile h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}
.hero-tile h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { border-color: var(--accent); color: var(--text); }
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #2a1606;
}
.button.primary:hover { background: #f7c28c; color: #2a1606; }

/* Monogram / photo tile */
.mono-tile {
  display: grid;
  place-items: center;
  min-height: 200px;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 166, 90, 0.2), transparent 60%),
    var(--card);
}
.monogram {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-style: italic;
  line-height: 1;
  color: var(--text);
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: -28px -36px;
  border: 1px dashed rgba(242, 166, 90, 0.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Focus chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(21, 17, 14, 0.5);
}

/* Role tiles */
.role-tile h2 { font-size: 1.5rem; margin-bottom: 0.15em; }
.role { color: var(--accent-2); font-weight: 500; margin-bottom: 0.9em; }
.role-tile p:last-child { color: var(--muted); margin-bottom: 0; }
.arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--faint);
  font-size: 1.25rem;
  transition: color 0.2s, transform 0.2s;
}
a.tile:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ==========================================================
   AFTER HOURS – private projects, deliberately different style
   ========================================================== */
.after-hours {
  position: relative;
  color: var(--night-text);
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(165, 180, 252, 0.16), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(240, 171, 252, 0.10), transparent 60%),
    var(--night);
  padding: 88px 0 96px;
  overflow: hidden;
  /* soft wavy transition from the warm part */
  border-top: 1px solid var(--night-border);
}
/* starfield */
.after-hours::before,
.after-hours::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 330px 210px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 60px 240px, rgba(255,255,255,0.5), transparent);
  background-size: 360px 280px;
  opacity: 0.55;
}
.after-hours::after {
  background-size: 520px 400px;
  background-position: 140px 90px;
  opacity: 0.35;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.45; } }

.after-hours .container { position: relative; z-index: 1; }

.ah-head { max-width: 640px; margin-bottom: 40px; }
.ah-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--night-accent);
  letter-spacing: 0.04em;
}
.ah-kicker::before { content: "~/ "; color: var(--night-accent-2); }
.ah-head h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.4em;
}
.ah-head p { color: var(--night-muted); }

.ah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.ah-card {
  display: block;
  position: relative;
  padding: 24px;
  border-radius: 14px;
  border: 1px dashed var(--night-border);
  background: var(--night-card);
  color: var(--night-text);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ah-card:hover {
  color: var(--night-text);
  border-style: solid;
  border-color: var(--night-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(165, 180, 252, 0.35);
}
.ah-card .ah-domain {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--night-accent);
}
.ah-card h3 { font-size: 1.2rem; margin: 0.5em 0 0.3em; }
.ah-card p { color: var(--night-muted); margin: 0; font-size: 0.95rem; }
.ah-card .badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(240, 171, 252, 0.5);
  color: var(--night-accent-2);
}
.ah-card.placeholder {
  border-style: dashed;
  background: transparent;
  color: var(--night-muted);
  display: grid;
  place-items: center;
  min-height: 140px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ---------- Simple pages (imprint, 404) ---------- */
.page { padding: 24px 0 64px; }
.page .tile { max-width: 720px; padding: 40px; }
.page h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 6vw, 3.25rem); }
.page p { color: var(--muted); }
.page strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 0 40px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.after-hours + .site-footer { background: var(--night); color: var(--night-muted); }
.after-hours + .site-footer a { color: var(--night-muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow path, .monogram::after, .after-hours::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
  .row-2 { grid-row: auto; }
  .hero-tile { min-height: 360px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .tile, .hero-tile, .page .tile { padding: 24px; }
  .hero-tile { min-height: 0; padding-top: 48px; }
  .mono-tile { display: none; }
  .after-hours { padding: 64px 0 72px; }
}
