/* =========================================================
   WorryCharm / ROOTED — design system v2
   Quiet, editorial, minimal. No shadows, no pill buttons,
   no ornament that doesn't carry meaning.
   ========================================================= */

:root {
  --cream:        #F2F0EF;
  --cream-alt:    #EFE7DC;
  --surface:      #FBF8F4;
  --ink:          #2A241E;
  --ink-strong:   #17130F;
  --ink-soft:     #726859;
  --gold:         #A9825A;
  --hairline:     rgba(23, 19, 16, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --container: 1140px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--ink-strong);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 20px; top: 20px; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  color: var(--ink-strong);
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
}

.section-heading {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.9em;
}
.section-heading.centered { text-align: center; }

.section-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: -0.4em;
  margin-bottom: 3em;
}
.section-lead.centered { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 20px;
}

section { position: relative; }
section[id] { scroll-margin-top: 90px; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Buttons — flat, bordered, uppercase, no ornament
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}

.btn-dark { color: var(--ink-strong); }
.btn-dark:hover { background: var(--ink-strong); color: var(--cream); }
.btn-dark.btn-fill { background: var(--ink-strong); color: var(--cream); }
.btn-dark.btn-fill:hover { background: transparent; color: var(--ink-strong); }

.btn-sm { padding: 10px 22px; font-size: 0.68rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: opacity .3s var(--ease);
}
.text-link:hover { opacity: 0.6; }

.section-cta { margin-top: 48px; text-align: center; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(242, 240, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-logo { display: flex; align-items: center; gap: 14px; }
.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.header-wordmark {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--ink-strong);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity .25s var(--ease);
}
.nav-links a:hover { opacity: 1; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* =========================================================
   CSS sprite crops, precisely mapped regions of
   assets/Vorlage_WorryCharm.png (source 1536x1024)
   ========================================================= */
.crop {
  display: block;
  width: 100%;
  height: auto;
  background-image: url("../assets/Vorlage_WorryCharm.png");
  background-repeat: no-repeat;
  background-size: var(--bg-w) var(--bg-h);
  background-position: var(--bg-x) var(--bg-y);
}

.hero-crop     { aspect-ratio: 307 / 472; --bg-w: 500.33%; --bg-h: 216.95%; --bg-x: 28.89%; --bg-y: 10.51%; }
.back-crop     { aspect-ratio: 300 / 475; --bg-w: 512.00%; --bg-h: 215.58%; --bg-x: 63.11%; --bg-y: 9.11%; }
.keychain-crop { aspect-ratio: 270 / 498; --bg-w: 568.89%; --bg-h: 205.62%; --bg-x: 87.28%; --bg-y: 6.08%; }

.detail-crop-1 { aspect-ratio: 250 / 285; --bg-w: 614.40%; --bg-h: 359.30%; --bg-x: 29.94%; --bg-y: 14.62%; }
.detail-crop-2 { aspect-ratio: 270 / 220; --bg-w: 568.89%; --bg-h: 465.46%; --bg-x: 29.62%; --bg-y: 37.07%; }
.detail-crop-3 { aspect-ratio: 220 / 160; --bg-w: 698.18%; --bg-h: 640.00%; --bg-x: 30.40%; --bg-y: 6.71%; }
.detail-crop-5 { aspect-ratio: 260 / 210; --bg-w: 590.77%; --bg-h: 487.62%; --bg-x: 62.70%; --bg-y: 36.24%; }

/* =========================================================
   Hero — quiet, static, restrained type
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 28px 70px;
  background: var(--cream);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-title {
  font-size: clamp(3.4rem, 2.4rem + 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hero-subtitle {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.hero-claim {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.05rem + .3vw, 1.4rem);
  font-style: italic;
  color: var(--ink-strong);
  margin: 0 0 22px;
}
.hero-copy {
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 38px;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-visual { display: flex; justify-content: center; }
.hero-image-frame { width: min(320px, 72vw); }

/* =========================================================
   Intro
   ========================================================= */
.intro { padding: clamp(90px, 11vw, 150px) 28px; }
.intro-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}
.intro-text p { color: var(--ink-soft); font-size: 1.05rem; max-width: 50ch; }
.intro-text p + p { margin-top: 1.3em; }
.intro-cta { margin-top: 1.8em; }
.intro-visual { display: flex; justify-content: center; }
.intro-image-frame { width: min(260px, 58vw); }

/* =========================================================
   Features
   ========================================================= */
.features { padding: clamp(90px, 11vw, 150px) 28px; background: var(--cream-alt); }
.features-inner { max-width: var(--container); margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 4vw, 56px);
}
.feature-card { text-align: left; }
.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* =========================================================
   Details gallery
   ========================================================= */
.details { padding: clamp(90px, 11vw, 150px) 28px; }
.details-inner { max-width: var(--container); margin: 0 auto; }
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 28px;
}
.gallery-item { height: auto; width: auto; margin: 0; }
.gallery-item .crop { height: 260px; width: auto; }
.gallery-item figcaption { width: 100%; padding: 20px 2px 0; }
.gallery-item h3 { font-size: 0.98rem; margin-bottom: 6px; }
.gallery-item p { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }

@media (max-width: 620px) {
  .gallery-item .crop { height: 220px; }
}

/* =========================================================
   Specifications
   ========================================================= */
.specs { padding: clamp(90px, 11vw, 150px) 28px; background: var(--cream-alt); }
.specs-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}
.specs-list { margin: 0 0 40px; border-top: 1px solid var(--hairline); }
.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.specs-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.specs-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.specs-row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-strong);
}
.specs-visual { display: flex; justify-content: center; }
.specs-image-frame {
  width: min(230px, 52vw);
  margin: 0;
  padding: 26px;
  background: var(--cream);
  text-align: center;
}
.specs-image-frame figcaption {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(90px, 11vw, 150px) 28px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-strong);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-item summary .plus::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-item summary .plus::after  { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item[open] summary .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 0.96rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--cream-alt);
  text-align: center;
  padding: 70px 28px 50px;
  border-top: 1px solid var(--hairline);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 18px;
}
.footer-logo { width: auto; height: 52px; opacity: 0.85; }
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink-strong);
}
.footer-claim {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-strong);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.footer-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  margin-bottom: 30px;
  transition: opacity .3s var(--ease);
}
.footer-link:hover { opacity: 0.6; }
.footer-copy { color: var(--ink-soft); font-size: 0.78rem; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: 520px; margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-copy { max-width: 46ch; margin: 0 auto 38px; }

  .intro-inner { grid-template-columns: 1fr; text-align: center; }
  .intro-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .intro-visual { order: -1; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { text-align: center; }
  .feature-icon { margin-left: auto; margin-right: auto; }

  .specs-inner { grid-template-columns: 1fr; }
  .specs-visual { order: -1; }
  .specs-text { text-align: center; }
  .specs-row dt { justify-content: center; }
  .specs-list { text-align: left; }
}

@media (max-width: 680px) {
  .header-inner { padding: 8px 20px; }
  .header-logo { gap: 10px; }
  .header-logo img { height: 42px; width: auto; }
  .header-wordmark { font-size: 1.08rem; }
  .btn-sm { padding: 9px 16px; font-size: 0.62rem; }

  .hero { padding: 128px 20px 60px; }
  section { padding-left: 4px; padding-right: 4px; }

  .btn { padding: 14px 24px; font-size: 0.72rem; }

  .feature-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .gallery { gap: 30px 20px; }
  .gallery-item { width: 44%; min-width: 145px; height: auto; }
  .gallery-item .crop { height: 210px; width: auto; }

  .faq-item summary { font-size: 0.94rem; padding: 20px 0; }
}

@media (max-width: 420px) {
  .gallery-item { width: 100%; max-width: 240px; height: auto; }
  .gallery-item .crop { height: auto; width: 100%; }

  .hero-title { font-size: 3rem; }
  .btn { white-space: normal; text-align: center; }
}
