/* Mila Malt – milamalt.de
   Ein Stylesheet für alle Seiten. Farben, Schriften und Abstände stehen oben als Variablen. */

@font-face { font-family: "Caveat"; src: url(fonts/caveat-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #eef1ed;
  --ink: #1f2b26;
  --soft: #5a6860;
  --line: #d3dbd5;
  --accent: #c4423b;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --page: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }

/* Das Schneckenhaus: eine schematische Schale, fest im Hintergrund */
body::before {
  content: ""; position: fixed; inset: auto -24vmin -28vmin auto; width: 122vmin; aspect-ratio: 1; z-index: -1; pointer-events: none;
  background: url(spiral.svg) center / contain no-repeat; opacity: .7;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--hand); font-weight: 500; line-height: 1.1; text-wrap: balance; }
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--gap); top: .5rem; background: var(--bg); padding: .25rem .5rem; z-index: 10; }

/* Kopf und Fuß */
.site-header, main, .site-footer { width: min(100% - 2 * var(--gap), var(--page)); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2.5rem; padding-block: 2.5rem 0; }
.brand { font: 600 clamp(2.6rem, 6vw, 3.6rem)/1 var(--hand); text-decoration: none; color: var(--ink); }
.brand::after { content: "."; color: var(--accent); }
.site-header ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-block; padding-block: .25rem; font-size: .92rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--accent) 0 0) 0 100% / 0 1.5px no-repeat; transition: background-size .25s; }
.site-header nav a:is(:hover, [aria-current]) { background-size: 100% 1.5px; color: var(--ink); }
main { flex: 1; padding-block: clamp(3rem, 8vw, 5rem) 6rem; }
.site-footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--soft); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Startseite */
.hero { max-width: 48rem; }
.hero blockquote { margin: 0 0 1.25rem; font: 500 clamp(2.4rem, 5.6vw, 4rem)/1.1 var(--hand); text-wrap: balance; }
.hero p { margin: 0; max-width: 52ch; color: var(--soft); }

/* Runde Vorschaubilder: alle auf einer Linie, die letzte Reihe mittig */
.orbs { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 3.5rem var(--gap); margin: 4rem 0 0; padding: 0; list-style: none; }
.orbs.start { justify-content: flex-start; }
.orb { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.orb a { display: block; text-decoration: none; }
.orb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #dfe6e0; color: transparent; filter: grayscale(1); transition: filter .4s, transform .6s, outline-offset .3s; outline: 1.5px solid transparent; outline-offset: 0; }
.orb a:is(:hover, :focus-visible) img { filter: none; outline-color: var(--accent); outline-offset: 7px; }
.orb figcaption { margin-top: 1.1rem; text-align: center; font: 500 1.6rem/1.15 var(--hand); }
.orb figure { margin: 0; }
@media (hover: none) { .orb img { filter: none; } }
@media (max-width: 52rem) { .orbs { --cols: 2; } }

/* Texte */
.prose { max-width: 66ch; }
.prose h1, .page-title { margin: 0 0 .5rem; font-size: clamp(2.5rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.prose h2 { margin: 2.5rem 0 .5rem; font-size: 2.2rem; }
.prose h3 { margin: 2rem 0 .4rem; font-size: 1.7rem; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--accent); }
.prose img { display: block; margin-block: 1.5rem; border-radius: 6px; }
.prose img.missing { display: none; }
.prose address { font-style: normal; }
.prose dl { display: grid; grid-template-columns: 5rem 1fr; gap: .25rem 1.5rem; }
.prose dt { font: 500 1.9rem/1.2 var(--hand); color: var(--soft); }
.prose dd { margin: 0 0 .75rem; }
.prose dd + dd { grid-column: 2; }
.prose dt:not(:first-child), .prose dt:not(:first-child) + dd { margin-top: 1.5rem; }
.eyebrow, .date { margin: 0 0 .75rem; font-family: var(--sans); font-weight: 400; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.date { margin: 0 0 2rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1.25rem; margin-block: 2rem; }
.gallery img { margin: 0; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pager { display: flex; justify-content: space-between; gap: 1rem; max-width: 66ch; margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; }
.pager a { text-decoration: none; } .pager a:hover { color: var(--accent); }

@media (max-width: 40rem) { .site-header ul { gap: .25rem 1rem; } .site-header nav a { font-size: .85rem; } .prose dl { grid-template-columns: 1fr; } .prose dd + dd { grid-column: 1; } .pager { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
