/* Gartenraum — main tokens + reset + typography + actions + utilities
   PALETTE RULE: all neutrals R<=B (no warm tones, no beige) */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dmsans.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #1F2D2E;
  --mist: #EBEDED;
  --ivy: #2D4538;
  --stone: #5A6770;
  --sky2: #3D5070;
  --chalk: #F5F7F7;
  --line: #D2D5D4;
  --shade: #2C3539;

  --serif: 'Lora', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --reach: 1280px;
  --read: 880px;
  --bend: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--deep);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; color: var(--stone); }

a { color: var(--ivy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(45,69,56,0.4); }
a:hover { color: var(--deep); text-decoration-color: var(--deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.55em;
  letter-spacing: -0.005em;
  color: var(--deep);
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.7vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.4rem); }
h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--stone);
}

p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: 0.25em 0; }
strong { font-weight: 600; }
::selection { background: var(--ivy); color: var(--mist); }

/* Containers */
.hold { width: 100%; max-width: var(--reach); margin: 0 auto; padding: 0 24px; }
.hold--read { max-width: var(--read); margin: 0 auto; padding: 0 24px; }
.hold--tight { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Sections (called "field" in this project) */
.field { padding: 88px 0; }
@media (min-width: 768px) { .field { padding: 128px 0; } }
.field--snug { padding: 56px 0; }
@media (min-width: 768px) { .field--snug { padding: 80px 0; } }
.field--deep { background: var(--deep); color: var(--mist); }
.field--deep h1, .field--deep h2, .field--deep h3 { color: var(--mist); }
.field--deep h4 { color: rgba(235,237,237,0.65); }
.field--deep a { color: var(--mist); text-decoration-color: rgba(235,237,237,0.5); }
.field--ivy { background: var(--ivy); color: var(--mist); }
.field--ivy h1, .field--ivy h2, .field--ivy h3 { color: var(--mist); }
.field--ivy h4 { color: rgba(235,237,237,0.7); }

/* Eyebrow */
.brow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivy);
  margin: 0 0 14px;
}
.field--deep .brow, .field--ivy .brow { color: rgba(235,237,237,0.7); }

/* Intro paragraph */
.intro {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--shade);
  max-width: 58ch;
  font-weight: 400;
}
.field--deep .intro, .field--ivy .intro { color: rgba(235,237,237,0.88); }

/* Action button (.act + variants) */
.act {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  background: var(--deep);
  color: var(--mist);
  border: 1.5px solid var(--deep);
  border-radius: var(--bend);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}
.act:hover { background: var(--ivy); border-color: var(--ivy); color: var(--mist); transform: translateY(-1px); text-decoration: none; }
.act--line { background: transparent; color: var(--deep); }
.act--line:hover { background: var(--deep); color: var(--mist); }
.act--mist { background: var(--mist); color: var(--deep); border-color: var(--mist); }
.act--mist:hover { background: var(--ivy); border-color: var(--ivy); color: var(--mist); }

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--deep);
  color: var(--mist);
  padding: 10px 14px;
  border-radius: var(--bend);
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; color: var(--mist); }

:focus-visible { outline: 2px solid var(--ivy); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reveal animation */
.scroll-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.scroll-in.on { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .scroll-in { opacity: 1; transform: none; }
}
