/* ===================================================
   Stille Hof -- atelier site
   Palette: stone gray, oak green, acorn brown, cream
   =================================================== */

/* ---------- reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede5d4;
  --stone:      #6e6b63;
  --stone-dark: #3d3b37;
  --green:      #3d5c35;
  --green-light:#4a6741;
  --brown:      #7a4f2e;
  --brown-light:#a0693e;
  --text:       #2a2824;
  --text-muted: #5a5650;

  --font-display: 'UnifrakturMaguntia', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-heading: 'EB Garamond', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, 'Times New Roman',
                  ui-serif, system-ui, serif;
  --font-mono:    ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;

  --max-w: 720px;
  --section-pad: clamp(3rem, 7vw, 5.5rem);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;

  /* subtle paper grain via inline SVG noise filter */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--stone-dark);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin-bottom: 1.4rem;
  color: var(--stone-dark);
}

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brown);
}

blockquote {
  border-left: 3px solid var(--brown-light);
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(122,79,46,0.06);
  border-radius: 0 4px 4px 0;
}

blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone-dark);
  margin: 0;
}

.citation {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(110,107,99,0.2);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-logo {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  border-radius: 4px;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant: small-caps;
  margin-bottom: 1rem;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--stone-dark);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.hero-nav a {
  color: var(--stone);
  text-decoration: none;
  text-transform: uppercase;
  font-variant: small-caps;
  font-size: 0.9rem;
}

.hero-nav a:hover {
  color: var(--green);
}

.hero-nav span {
  color: var(--brown-light);
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- divider ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  background-color: var(--cream);
}

.section-alt + .divider {
  background-color: var(--cream-dark);
}

.oak-divider {
  width: 100%;
  max-width: var(--max-w);
  height: 40px;
}

/* ---------- sections ---------- */
.section {
  padding: var(--section-pad) 1.5rem;
  background-color: var(--cream);
}

.section-alt {
  background-color: var(--cream-dark);
}

/* alternate divider backgrounds to match sections */
.section + .divider {
  background-color: var(--cream);
}

.section-alt + .divider {
  background-color: var(--cream-dark);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* h2 accent line */
.section-inner h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brown-light), transparent);
  margin-top: 0.65rem;
  margin-bottom: 1.4rem;
}

/* ---------- craft list ---------- */
.craft-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.craft-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--brown-light);
  line-height: 1.6;
}

.craft-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--stone-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  font-variant: small-caps;
}

.inline-link {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0;
  color: var(--green);
}

/* ---------- footer ---------- */
.footer {
  background-color: var(--stone-dark);
  color: rgba(245,240,232,0.85);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.footer-loc {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: rgba(245,240,232,0.6);
}

.footer-cite {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(245,240,232,0.5);
  max-width: 540px;
  margin: 0.5rem auto 0;
}

.footer-built {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .hero-nav {
    gap: 0.3rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- print ---------- */
@media print {
  .divider { display: none; }
  .hero-nav { display: none; }
  .footer { background: none; color: var(--text); }
}
