/*
  VOICE: zart, warm, persönlich, wie ein Blick auf die eigene Werkbank
  IDEA: ein Musterbuch aus Stoffproben, ruhig gelegt, mit kleinen Bildunterschriften
  PICTURE: die eigenen Stickfotos, groß und weich gerundet, auf der Startseite als ruhiger Slider
  COLOUR and TYPE: Creme, Altrosa, Taubenblau, warmes Garnbraun; Fraunces (weich, verspielt) für Überschriften, Manrope für Text, beide selbst gehostet
  LAYOUT: schwebende Menüleiste, eigene Unterseiten, Projektraster, Fußzeile mit allen Seiten
*/

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#F7F2EE, #1C1613);
  --surface: light-dark(#EFE4E1, #261E1A);
  --surface-2: light-dark(#E7D8D4, #33281F);
  --ink: light-dark(#4A3128, #F3E9E2);
  --muted: light-dark(#765C54, #C2B0A7);
  --accent: light-dark(#8E5E66, #DDB3B9);
  --on-accent: light-dark(#FFFFFF, #1C1613);
  --accent-soft: light-dark(#E9D6D8, #3B2C2C);
  --blue: light-dark(#5F7586, #A9BBC8);
  --line: light-dark(rgba(74, 49, 40, .15), rgba(243, 233, 226, .15));
  --nav-bg: light-dark(rgba(247, 242, 238, .78), rgba(28, 22, 19, .78));
  --panel-bg: light-dark(rgba(247, 242, 238, .96), rgba(28, 22, 19, .96));

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  --band: clamp(56px, 8vw, 104px);

  --r-lg: 24px; --r-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
button { font: inherit; color: inherit; }

/* Text styles: Fraunces for headings, Manrope for everything else */
.display, .display-2, .heading-2, .heading-3, .heading-4, .heading-5, .brand {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
}
.display { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.display em { font-style: italic; font-weight: 400; }
.display-2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; font-weight: 400; }
.heading-2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.heading-3 { font-size: 32px; line-height: 1.15; }
.heading-4 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.heading-5 { font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 620px; }
.title-2 { font-size: 17px; line-height: 1.5; font-weight: 600; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-1 { font-size: 17px; line-height: 1.75; }
.body-3 { font-size: 16px; line-height: 1.65; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 1.55; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; }

.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-300); }
.band { padding-block: var(--band); }
.band-tight { padding-top: var(--s-300); }
.tint { background: var(--surface); }
.section-head { max-width: 680px; display: grid; gap: var(--s-200); margin-bottom: var(--s-600); }
.icon { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); }

/* Skip link */
.skip {
  position: fixed; top: var(--s-200); left: var(--s-200); z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s-75) var(--s-200); border-radius: 9999px; text-decoration: none;
  transform: translateY(-200%);
  transition: transform 500ms var(--ease);
}
.skip:focus-visible { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-300);
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn.button-sm { padding-inline: var(--s-200); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn-soon { background: var(--surface-2); color: var(--muted); cursor: default; }

/* Header and navigation */
.nav {
  position: fixed; top: var(--s-200); left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - var(--s-400));
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 9999px;
}
.brand { display: inline-flex; align-items: center; gap: var(--s-75); text-decoration: none; font-size: 21px; line-height: 1; font-weight: 600; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; gap: var(--s-25); list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: 9999px;
  text-decoration: none; color: var(--muted);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-links a[aria-current=page] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.nav-shop { display: inline-flex; }

.toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 9999px;
  background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.toggle span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 500ms var(--ease);
}
.toggle span:first-child { top: 17px; }
.toggle span:last-child { top: 25px; }
.menu-open .toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.panel {
  position: fixed; inset: 0; z-index: 40;
  background: var(--panel-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--s-900) + var(--s-200)) var(--s-300) var(--s-600);
  display: flex; flex-direction: column; gap: var(--s-400);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.menu-open .panel { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 300ms var(--ease); }
.panel-links { list-style: none; padding: 0; display: grid; gap: var(--s-50); }
.panel-links a { display: block; padding: var(--s-75) 0; text-decoration: none; font-family: var(--serif); font-size: 32px; line-height: 1.25; }
.panel-links a[aria-current=page] { color: var(--accent); font-style: italic; }
.panel .stagger { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.menu-open .panel .stagger { opacity: 1; transform: none; }

/* Page heads */
.page-head { padding-top: calc(var(--s-900) + var(--s-500)); padding-bottom: var(--s-500); }
.page-head .wrap { display: grid; gap: var(--s-200); justify-items: start; }
.page-legal { min-height: 70vh; padding-bottom: var(--s-900); }
.page-legal .actions { margin-top: var(--s-200); }

/* Hero with slider */
.hero { padding-top: calc(var(--s-900) + var(--s-300)); padding-bottom: var(--band); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-700); align-items: center; }
.hero-copy { display: grid; gap: var(--s-300); justify-items: start; }
.hero-copy .actions { margin-top: var(--s-75); }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100); border-radius: 9999px;
  background: var(--accent-soft); color: var(--accent);
}
.badge .dot { width: 8px; height: 8px; border-radius: 9999px; background: currentColor; }
.proof { display: flex; align-items: center; gap: var(--s-75); color: var(--muted); }
.proof .icon { color: var(--accent); }

.slider { display: grid; gap: var(--s-200); max-width: 520px; width: 100%; justify-self: end; }
.slides { display: grid; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; gap: var(--s-200);
  opacity: 0; visibility: hidden;
  transition: opacity 1100ms var(--ease), visibility 0s linear 1100ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1100ms var(--ease); }
.slide-img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 7s var(--ease); -webkit-user-drag: none; }
.slide.is-active .slide-img img { transform: scale(1); }
.slide-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-200); padding-inline: var(--s-50); }
.slide-text { display: grid; gap: var(--s-25); }
.slider-ctrl { display: flex; align-items: center; gap: var(--s-75); padding-inline: var(--s-50); }
.slider-ctrl[hidden] { display: none; }
.sbtn {
  width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.sbtn:hover { background: var(--accent-soft); border-color: transparent; }
.sbtn .icon { width: 18px; height: 18px; }
.sbtn-pause { margin-left: auto; border-color: transparent; color: var(--muted); }
.sbtn-pause .i-play, .slider.is-paused .sbtn-pause .i-pause { display: none; }
.slider.is-paused .sbtn-pause .i-play { display: block; }
.dots { display: flex; align-items: center; }
.dot-btn { width: 24px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.dot-btn span { width: 6px; height: 6px; border-radius: 9999px; background: var(--muted); opacity: .35; transition: width 600ms var(--ease), opacity 600ms var(--ease), background-color 600ms var(--ease); }
.dot-btn[aria-current=true] span { width: 18px; opacity: 1; background: var(--accent); }

/* Etsy links on projects */
.etsy, .etsy-bald { display: inline-flex; align-items: center; gap: var(--s-50); white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; }
.etsy { color: var(--accent); text-decoration: none; min-height: 44px; }
.etsy:hover { text-decoration: underline; text-underline-offset: 4px; }
.etsy .icon { width: 16px; height: 16px; }
.etsy-bald { color: var(--muted); font-weight: 500; padding-block: var(--s-75); }
.etsy-bald::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); opacity: .6; }

/* Start: paths to the sub pages */
.wege { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
.weg {
  display: flex; align-items: center; gap: var(--s-200); height: 100%;
  padding: var(--s-200); padding-right: var(--s-300); border-radius: var(--r-lg); background: var(--bg);
  text-decoration: none; transition: transform 500ms var(--ease);
}
.weg:hover { transform: translateY(-3px); }
.weg-img { width: 88px; height: 88px; flex: none; border-radius: var(--r-md); overflow: hidden; background: var(--accent-soft); }
.weg-img img { width: 100%; height: 100%; object-fit: cover; }
.weg-ic { display: grid; place-items: center; color: var(--accent); }
.weg-ic svg { width: 36px; height: 36px; }
.weg-text { display: grid; gap: var(--s-25); flex: 1; }
.weg > .icon { color: var(--accent); transition: transform 500ms var(--ease); }
.weg:hover > .icon { transform: translateX(4px); }

/* Tagline */
.tagline { padding-block: var(--band); }
.tagline p { max-width: 760px; }
.tagline .w { opacity: .28; transition: opacity 600ms var(--ease); }
.tagline .w.on { opacity: 1; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
.card { background: var(--bg); border-radius: var(--r-md); padding: var(--s-400) var(--s-300); display: grid; gap: var(--s-100); align-content: start; }
.ic {
  width: 48px; height: 48px; border-radius: 9999px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s-100);
}
.ic .icon { width: 24px; height: 24px; }

/* Projects grid */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-bottom: var(--s-400); }
.filter[hidden] { display: none; }
.chip {
  min-height: 44px; padding: var(--s-75) var(--s-200); border-radius: 9999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.chip:hover { color: var(--ink); background: var(--accent-soft); border-color: transparent; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.raster { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-500) var(--s-300); }
.pcard { display: grid; grid-template-rows: auto 1fr; gap: var(--s-200); }
.pcard[hidden] { display: none; }
.pimg { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.pcard:hover .pimg img { transform: scale(1.025); }
.ptext { display: grid; gap: var(--s-50); align-content: start; justify-items: start; }
.pcat { color: var(--accent); }
.note-card {
  border-radius: var(--r-md); background: var(--surface); min-height: 280px;
  padding: var(--s-400); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-100);
}
.note-card .icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); list-style: none; padding: 0; counter-reset: step; }
.step { display: grid; gap: var(--s-100); padding: var(--s-400) var(--s-300); border: 1px solid var(--line); border-radius: var(--r-md); align-content: start; position: relative; counter-increment: step; }
.step::after { content: counter(step); position: absolute; top: var(--s-300); right: var(--s-300); font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--accent); opacity: .35; }
.step .ic { color: var(--blue); background: var(--surface); }
.info {
  margin-top: var(--s-600); padding: var(--s-400); border-radius: var(--r-lg); background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-300);
}
.info-text { display: grid; gap: var(--s-100); max-width: 640px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-700); align-items: start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
.about-photo figcaption {
  position: absolute; left: var(--s-200); bottom: var(--s-200);
  padding: var(--s-75) var(--s-100); border-radius: 9999px;
  background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.about-text { display: grid; gap: var(--s-300); max-width: 620px; padding-top: var(--s-200); }
.about-lead { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: var(--s-100); max-width: 820px; }
.faq details { background: var(--surface); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-200) var(--s-300); border-radius: var(--r-md); min-height: 56px;
  transition: background-color 300ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary .icon { color: var(--accent); transition: transform 500ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--s-300) var(--s-300); color: var(--muted); max-width: 680px; }

/* Final call to action */
.final-inner { text-align: center; display: grid; justify-items: center; gap: var(--s-200); }
.final .final-inner { width: calc(100% - 2 * var(--s-200)); max-width: calc(1200px - 2 * var(--s-300)); background: var(--accent-soft); border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px) var(--s-300); }
.final .btn-soon { background: var(--bg); }
.final-inner p { max-width: 560px; }
.final-inner .actions { justify-content: center; margin-top: var(--s-100); }

/* Footer */
.footer { padding-block: var(--s-700) var(--s-500); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: var(--s-300) var(--s-600); align-items: start; }
.footer-brand { display: grid; gap: var(--s-100); justify-items: start; }
.footer-nav { display: grid; gap: var(--s-25); justify-items: start; }
.footer-nav a { padding: var(--s-50) 0; text-decoration: none; color: var(--muted); transition: color 300ms var(--ease); }
.footer-nav a:hover, .footer-nav a[aria-current=page] { color: var(--ink); }
.footer-copy { grid-column: 1 / -1; padding-top: var(--s-300); border-top: 1px solid var(--line); }

/* Narrow screens */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .nav-shop { display: none; }
  .toggle { display: block; }
  .nav { gap: var(--s-200); left: var(--s-200); right: var(--s-200); width: auto; max-width: none; transform: none; justify-content: space-between; }
}
@media (max-width: 960px) {
  .hero-grid, .about { grid-template-columns: minmax(0, 1fr); gap: var(--s-600); }
  .slider { justify-self: stretch; max-width: 560px; }
  .cards, .steps, .wege { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 480px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: var(--s-200); }
  .hero { padding-top: calc(var(--s-900) + var(--s-75)); }
  .page-head { padding-top: calc(var(--s-900) + var(--s-200)); padding-bottom: var(--s-300); }
  .section-head { margin-bottom: var(--s-400); }
  .slide-cap { flex-direction: column; gap: var(--s-50); }
  .raster { grid-template-columns: minmax(0, 1fr); }
  .weg-img { width: 72px; height: 72px; }
  .info { padding: var(--s-300); }
  .card, .step { padding: var(--s-300); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active { transition: opacity 200ms linear, visibility 0s linear 200ms; }
  .slide.is-active { transition: opacity 200ms linear; }
  .slide-img img, .slide.is-active .slide-img img { transform: none; transition: none; }
  .panel .stagger { transform: none; }
  .btn:hover, .btn:active, .weg:hover, .weg:hover > .icon, .pcard:hover .pimg img { transform: none; }
  .tagline .w { opacity: 1; transition: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
