/* tomtwo.org — Optik eines alten Instrumentenbretts, wie Giretto */
:root {
  --panel: #141819;
  --raise: #1D2326;
  --line: #2A3236;
  --ivory: #EDE6D6;
  --amber: #E8A33D;
  --dim: #7C8A8F;
  --radius: 14px;
  --measure: 38rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--panel);
  color: var(--ivory);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

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

.wrap { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ivory); text-decoration: none; font-weight: 500; letter-spacing: .01em; }
.brand span { color: var(--dim); }
.nav { display: flex; gap: 1.25rem; font-size: .9375rem; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--ivory); }

/* Hero mit Skala */
.hero { position: relative; padding-block: 4.5rem 3rem; overflow: hidden; }
.dial { position: absolute; right: -6rem; top: 1rem; width: 30rem; opacity: .9; pointer-events: none; }
.dial .ts { stroke: var(--ivory); stroke-opacity: .18; stroke-width: 2; stroke-linecap: round; }
.dial .tb { stroke: var(--ivory); stroke-opacity: .5; stroke-width: 4; stroke-linecap: round; }
.dial .needle { fill: var(--amber); transform-origin: 300px 320px; transform: rotate(-80deg);
  animation: sweep 1.6s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes sweep { to { transform: rotate(28deg); } }
@media (prefers-reduced-motion: reduce) { .dial .needle { animation: none; transform: rotate(28deg); } }

.hero h1 {
  position: relative;
  margin: 0;
  font: 200 clamp(3.25rem, 12vw, 6.5rem)/1 var(--display);
  letter-spacing: -.03em;
}
.hero p { position: relative; max-width: 26rem; margin: 1.25rem 0 0; color: var(--dim); font-size: 1.125rem; }

/* Abschnitte */
section { padding-block: 3rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { margin: 0 0 1.75rem; font: 300 1.75rem/1.2 var(--display); letter-spacing: -.01em; }
h3 { margin: 0; font: 500 1.25rem/1.3 var(--display); }

/* Eintrag (App, Podcast …) */
.entry {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; align-items: start;
  padding: 1.5rem; background: var(--raise); border-radius: var(--radius);
}
.entry + .entry { margin-top: 1rem; }
.icon { width: 5.5rem; height: 5.5rem; border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(237,230,214,.08); }
.sub { margin: .15rem 0 .75rem; color: var(--dim); font-size: .9375rem; }
.entry p { margin: 0 0 1.25rem; max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* App-Store-Badge: offizielle Grafik von Apple, Fallback als Knopf */
.store { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.store img { height: 40px; width: auto; }
.store .fallback {
  display: inline-block; padding: .55rem 1rem; border: 1px solid var(--ivory);
  border-radius: 8px; color: var(--ivory); font-size: .9375rem;
}
.store:hover .fallback { background: var(--ivory); color: var(--panel); }

.empty { margin: 0; color: var(--dim); }

/* Über mich */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.contact { margin-top: 2rem; color: var(--dim); font-size: .9375rem; }
.contact h3 { color: var(--ivory); font-size: 1rem; margin-bottom: .35rem; }
.contact p { margin: 0 0 1rem; }

footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .875rem; }

/* Unterseite Giretto */
.app-head { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: center; padding-block: 3.5rem 2.5rem; }
.app-head .icon { width: 7rem; height: 7rem; }
.app-head h1 { margin: 0; font: 200 clamp(2.75rem, 9vw, 4rem)/1 var(--display); letter-spacing: -.02em; }
.app-head .sub { margin: .5rem 0 1rem; font-size: 1.0625rem; }
.lead { font-size: 1.25rem; line-height: 1.5; font-weight: 300; }
.feature { margin-top: 2rem; }
.feature h3 { color: var(--amber); font-size: 1.0625rem; margin-bottom: .35rem; }
.feature p { margin: 0 0 .75rem; }
.legal h3 { font-size: 1.0625rem; margin: 2rem 0 .35rem; }
.legal p { margin: 0 0 .75rem; }
.stand { color: var(--dim); font-size: .9375rem; }
.back { color: var(--dim); text-decoration: none; font-size: .9375rem; }
.back:hover { color: var(--ivory); }

@media (max-width: 560px) {
  .nav { gap: .9rem; font-size: .875rem; }
  .hero { padding-block: 3rem 2rem; }
  .dial { width: 20rem; right: -7rem; top: .5rem; opacity: .6; }
  .entry { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .icon { width: 4.5rem; height: 4.5rem; }
  .app-head { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .app-head .icon { width: 5rem; height: 5rem; }
}
.title-link { color: inherit; text-decoration: none; } .title-link:hover { color: var(--amber); }
