/* joerg.one – Stylesheet. Keine externen Ressourcen. */

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #62666d;
  --line: #e3e0d8;
  --accent: #e8590c;
  --accent-ink: #b4410a;
  --grey: #8b8f96;

  --display: "Rubik", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --wrap: 68rem;
  --narrow: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #ffd9c2; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--narrow)); }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(246, 244, 239, 0.8); backdrop-filter: blur(10px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-name .dot { color: var(--accent); }
.brand-name.big { font-size: 2.2rem; }
.nav { display: flex; gap: 0.25rem 1.4rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.975rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); }

/* Hero */
.hero {
  display: grid; gap: 3rem; align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.25fr 0.75fr; gap: 5rem; }
}
.lead { font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem); line-height: 1.55; color: #33373d; max-width: 34rem; margin-top: 1.5rem; }
.lead p { margin-bottom: 0.8em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 0.7rem 1.4rem; font-family: var(--body); font-size: 1rem; cursor: pointer; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500;
  border: 1.5px solid var(--ink); transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.portrait { margin: 0; max-width: 24rem; justify-self: center; width: 100%; }
@media (min-width: 52rem) { .portrait { justify-self: end; } }
.portrait img, .portrait-ph {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--line);
}
.portrait-ph { display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.portrait figcaption { margin-top: 1rem; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a {
  display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 0.925rem; font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; max-width: 40rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.more { font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }

.prose { max-width: 36rem; }
.prose.long { max-width: none; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3em; }
.prose blockquote {
  margin: 1.5em 0; padding: 0.2em 0 0.2em 1.25rem; border-left: 3px solid var(--accent);
  font-family: var(--display); font-size: 1.15em; color: #33373d;
}
.prose blockquote p { margin: 0; }
.prose code { font-size: 0.9em; background: #ebe8e0; padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--ink); color: #f6f4ef; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; font-size: 0.9rem; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 10px; margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.35rem 1.6rem; display: grid; gap: 0.1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 0.6em;
  width: 8.5px; height: 8.5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline time { font-family: var(--display); font-size: 1.05rem; font-weight: 500; }
.timeline span { color: var(--muted); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.cards.compact { grid-template-columns: 1fr; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.band .card { background: var(--paper); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(h3 a):hover { border-color: var(--ink); }
.card p { margin: 0; color: #3f434a; font-size: 0.975rem; line-height: 1.55; }
.card.has-img { padding-top: 0; overflow: hidden; }
.proj-img {
  margin: 0 -1.5rem 0.6rem; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.proj-img img { width: 100%; height: 100%; display: block; }
.proj-img.cover img { object-fit: cover; object-position: top center; }
.proj-img.contain { background: #fff; display: grid; place-items: center; }
.proj-img.contain img { object-fit: contain; width: auto; max-width: 70%; max-height: 70%; }
.tag {
  display: inline-block; align-self: flex-start; margin-top: auto; padding: 0.15rem 0.65rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper);
}
.project .tag { margin-top: 0.75rem; }
.tag.update { color: var(--accent-ink); border-color: #f2c7ad; background: #fff4ec; }

/* Routes */
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.routes li { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); color: #3f434a; }
.routes li:last-child { border-bottom: 0; padding-bottom: 0; }
.routes strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

/* Postlist */
.postlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.postlist li { position: relative; border-bottom: 1px solid var(--line); }
.postlist a {
  display: grid; gap: 0.25rem; padding: 1.4rem 5.5rem 1.4rem 0; text-decoration: none; color: var(--ink);
}
.postlist a:hover .pl-title { color: var(--accent-ink); }
.postlist time { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.pl-title { font-family: var(--display); font-size: 1.45rem; line-height: 1.25; transition: color 0.15s; }
.pl-sum { color: var(--muted); font-size: 0.975rem; }
.postlist .tag { position: absolute; right: 0; top: 1.5rem; margin: 0; }

/* Pages */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.post { padding-block: 2.5rem 5rem; }
.post .back { font-size: 0.95rem; margin-bottom: 2.5rem; }
.post h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 2rem; }
.post .prose p, .post .prose li { font-size: 1.125rem; line-height: 1.75; }
.legal h2 { font-size: 1.4rem; }
.notice {
  background: #fff4ec; border: 1px solid #f2c7ad; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem;
}
.fill { background: #fff0a8; padding: 0 0.3em; border-radius: 3px; }
section.narrow.prose { padding-bottom: 5rem; }

/* CI page */
.ci { padding-bottom: 5rem; }
.ci h2 { font-size: 1.7rem; margin: 3rem 0 0.8rem; }
.ci-logos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 1.5rem 0; }
.ci-tile {
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 11rem;
  display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1.5rem; position: relative;
}
.ci-tile.light { background: var(--surface); }
.ci-tile.dark { background: var(--ink); border-color: var(--ink); }
.ci-tile.dark .ci-cap { color: #a9adb3; }
.ci-cap { font-size: 0.8rem; color: var(--muted); }
.swatches { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.swatches li { display: grid; gap: 0.15rem; font-size: 0.925rem; }
.sw { height: 4.5rem; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 0.5rem; }
.sw-f6f4ef { background: #f6f4ef; }
.sw-ffffff { background: #ffffff; }
.sw-17191c { background: #17191c; }
.sw-e8590c { background: #e8590c; }
.sw-b4410a { background: #b4410a; }
.sw-e3e0d8 { background: #e3e0d8; }
.swatches code { font-size: 0.85rem; color: var(--muted); }
.type-specimen { display: grid; gap: 2rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .type-specimen { grid-template-columns: 1fr 1fr; } }
.specimen { font-size: 2.6rem; line-height: 1.1; margin: 0 0 0.4rem; }
.specimen.display { font-family: var(--display); font-weight: 500; }
.specimen.body { font-family: var(--body); font-weight: 700; }
.rules { padding-left: 1.2rem; }
.rules li { margin-bottom: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.925rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.foot-brand p { margin: 0; line-height: 1.5; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--accent-ink); text-decoration: underline; }

@media (max-width: 36rem) {
  .bar { flex-direction: column; align-items: flex-start; padding-block: 0.7rem 0.5rem; gap: 0.4rem; }
  .nav { justify-content: flex-start; }
  .postlist a { padding-right: 0; }
  .postlist .tag { position: static; margin: 0 0 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero-links { display: none; }
  body { background: #fff; }
}

/* Logo */
.logo { display: block; flex: none; }
.logo path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo .lg-ink { stroke: var(--ink); }
.logo .lg-one { stroke: var(--grey); }
.logo .lg-dot { fill: var(--accent); stroke: none; }
.logo.sym .lg-bg { fill: var(--ink); }
.logo.sym .lg-ink { stroke: var(--paper); }
.logo.neg .lg-ink { stroke: var(--paper); }
.logo.neg .lg-one { stroke: #a3a7ae; }
.logo.sym.neg .lg-bg { fill: var(--paper); }
.logo.sym.neg .lg-ink { stroke: var(--ink); }
