/* JN Haus & Gartenservice — base styles. Palette is set via Tweaks (CSS vars). */

:root {
  --bg:           #f6f3ec;        /* warm paper */
  --bg-soft:      #ecebe2;
  --bg-card:      #fdfbf6;
  --ink:          #1f2a24;        /* deep forest */
  --ink-soft:     #3a4a40;
  --ink-muted:    #6c776e;
  --rule:         #d8d4c5;
  --accent:       #2f5b3a;        /* forest green */
  --accent-deep:  #1f3f28;
  --accent-soft:  #d6e0c8;
  --gold:         #b08a4a;        /* warm sandstone accent */
  --shadow-card:  0 1px 0 rgba(255,255,255,.6) inset, 0 8px 30px rgba(31, 42, 36, .07);

  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter Tight", "Inter", ui-sans-serif, -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

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

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section spacing */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container, .container-narrow { padding: 0 22px; }
}

/* Type system */
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.h-display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h-display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.h-section {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 18px 0;
  color: var(--ink);
  text-wrap: balance;
}
.h-section em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.h-card {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -.003em;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0 0 1em 0; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 22%, transparent);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-arrow::after {
  content: "→";
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--rule));
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Hairline rule */
.hr {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* Page hero (used on subpages) */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 80% 0%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 55%),
    var(--bg);
}

/* Forms */
.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.field-input,
.field-textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field-textarea { min-height: 140px; resize: vertical; }

/* Subtle texture overlay (optional) */
.paper {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.012), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.012), transparent 50%);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
