/* monacomedia.de — light page, black type, yellow as a surface accent.
   Yellow never carries text on white (it fails contrast); it is used for
   bars, highlights and underlines, with black text on top.
   Static, self-contained: no web fonts, no scripts, no third-party requests,
   so the privacy notice stays short and true. */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --logo-bg: #f3f1ea;
  --text: #141414;
  --muted: #57534c;
  --rule: #e5e1d8;
  --accent: #ffd400;
  --ink: #141414;
  --ink-text: #d6d2ca;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-top: 6px solid var(--accent);
  /* Sticky footer: on a short page (Impressum, a wide window) main takes the
     spare height, so the black band always ends at the bottom of the window. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > main { flex: 1 0 auto; width: 100%; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header.site {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

header.site.hero { padding-bottom: 3.5rem; }

.brand {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .m {
  background: var(--accent);
  padding: .02em .22em;
  margin-right: .06em;
  border-radius: 4px;
}

.brand:hover { color: var(--text); }

h1 {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

/* Highlighter stroke under a word: black text, yellow behind its lower half. */
h1 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  padding: 0 .06em;
}

header.site:not(.hero) h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }

.lede {
  margin: 1.2rem 0 0;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--muted);
}

/* ── Content ────────────────────────────────────────────────────────────── */

main section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}

main section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

main.legal h2 { font-size: 1.1rem; margin-top: 1.6rem; }
main.legal h2:first-child { margin-top: 0; }

p { margin: 0 0 .9rem; }

a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
}

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

/* ── Project cards ──────────────────────────────────────────────────────── */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.project:hover {
  border-color: var(--text);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35);
  transform: translateY(-2px);
}

.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11rem;
  padding: 1.25rem;
  background: var(--logo-bg);
  border-bottom: 4px solid var(--accent);
}

.project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* A one-line lockup (logo beside the wordmark) reads best narrower than the panel. */
.project-logo img.wide { max-width: 85%; }

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.2rem;
}

.project-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.project-tagline { color: var(--muted); font-weight: 600; font-size: .95rem; margin: .1rem 0 .7rem; }
.project-text { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; flex: 1; }

.project-link {
  align-self: flex-start;
  font-size: .9rem;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
}

.project-link span { display: inline-block; transition: transform .15s; }
.project:hover .project-link span { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .project, .project-link span { transition: none; }
  .project:hover, .project:hover .project-link span { transform: none; }
}

.contact-mail { font-size: 1.15rem; font-weight: 700; }

/* ── Footer: the one black band ─────────────────────────────────────────── */

footer.site {
  margin-top: 1rem;
  padding: 2rem 0 3rem;
  background: var(--ink);
  color: var(--ink-text);
  font-size: .95rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

footer.site a { color: var(--accent); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
footer.site a:hover { color: #fff; }
footer.site a:focus-visible { outline-color: var(--accent); }
footer.site nav a { margin-right: 1.25rem; }
footer.site nav a:last-child { margin-right: 0; }
