/* ============================================================
   Uli Weigel – Holzskulpturen
   Design system + shared styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colours */
  --cream:        #f1ece2;
  --cream-light:  #f6f2ea;
  --paper:        #eae3d6;   /* slightly darker panels / cards */
  --forest:       #333b2b;   /* dark green */
  --forest-deep:  #2b3222;
  --ink:          #201c17;   /* headings */
  --ink-soft:     #514b40;   /* body copy */
  --tan:          #93826a;   /* muted labels */
  --gold:         #a98b5d;   /* eyebrow accent */
  --line:         #d9d1c2;   /* hairlines */
  --on-dark:      #ece7db;   /* text on green */
  --on-dark-soft: #b9bca6;
  --on-dark-gold: #c9a875;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.08; }

/* ---------- Reusable atoms ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 1.4rem;
}
.eyebrow.gold { color: var(--gold); }

.serif-display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .005em;
}
.italic { font-style: italic; }

/* link with underline + arrow */
.link-arrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s ease, opacity .25s ease;
}
.link-arrow:hover { gap: 1.3em; opacity: .7; }
.link-arrow { align-self: flex-start; }   /* never stretch inside flex columns */
.link-arrow svg { width: 34px; height: 8px; }

/* solid button (outline) */
.btn-outline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 1.05em 1.6em;
  display: inline-block;
  transition: background .25s ease, color .25s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* photo placeholder — swap the --img url later, or drop a file in /images */
.photo {
  position: relative;
  background: linear-gradient(135deg, #cdbfa8, #a58a6b 55%, #7d654a);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  background: rgba(60,48,34,.12);
  pointer-events: none;
}
/* hide the label overlay once a real image is set */
.photo.has-img::after { content: none; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--gut);
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.logo { height: 42px; width: auto; display: block; }
.footer-in .logo { height: 30px; }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 46px);
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav-links a { color: var(--ink); padding-bottom: 4px; transition: color .2s; }
.nav-links a:hover { color: var(--tan); }
.nav-links a.active { border-bottom: 1px solid var(--gold); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--tan); }
.lang b { color: var(--ink); font-weight: 500; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 64px 1fr 46%;
  align-items: stretch;
  background: linear-gradient(90deg, var(--cream-light) 0%, var(--cream) 40%);
}
.hero-rail {
  border-right: 1px solid var(--line);
  padding: 150px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--tan);
}
.hero-rail .n { opacity: .5; }
.hero-rail .n.on { color: var(--ink); opacity: 1; position: relative; }
.hero-rail .n.on::before {
  content: ""; position: absolute; left: 50%; top: 26px; transform: translateX(-50%);
  width: 1px; height: 120px; background: var(--ink);
}
.hero-scroll {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .3em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.hero-copy {
  align-self: center;
  padding: 120px clamp(24px, 4vw, 56px) 60px;
  max-width: 640px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0;
  letter-spacing: .005em;
}
.hero-rule { width: 54px; height: 1px; background: var(--tan); margin: 34px 0 30px; }
.hero-lead { max-width: 380px; font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 40px; }
.hero-media {
  position: relative;
  background: linear-gradient(160deg, #b9a888, #8a7256 60%, #5f4c38);
  min-height: 100vh;
}
.hero-media .photo { position: absolute; inset: 0; }
/* light scrim at top so the ink nav stays legible over darker photos */
.hero-media::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to bottom, rgba(241,236,226,.92), rgba(241,236,226,0));
  z-index: 2; pointer-events: none;
}

/* ============================================================
   Section: Process teaser (split)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split .photo { min-height: 440px; }
.split-copy {
  background: var(--cream-light);
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.split-copy h2 {
  font-size: clamp(34px, 3.4vw, 46px);
  margin-bottom: 26px;
  max-width: 12ch;
}
.split-copy p { max-width: 40ch; margin: 0 0 12px; }
.split-copy .link-arrow { margin-top: 28px; }
.fern {
  position: absolute; right: clamp(24px,4vw,70px); top: 50%; transform: translateY(-50%);
  width: 150px; opacity: .5; pointer-events: none;
}

/* ============================================================
   Section: Latest work
   ============================================================ */
.work {
  background: var(--paper);
  padding: clamp(64px, 7vw, 110px) 0;
}
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 46px; flex-wrap: wrap;
}
.work-head h2 { font-size: clamp(30px, 3.2vw, 44px); }
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.card .photo { aspect-ratio: 3/4; margin-bottom: 16px; }
.card h3 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 6px;
}
.card .meta {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan);
}

/* ============================================================
   Section: Quote + contact band
   ============================================================ */
.band { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
.band-quote {
  background: var(--cream-light);
  padding: clamp(48px,5vw,84px) clamp(32px,4vw,64px);
  display: flex; flex-direction: column; justify-content: center;
}
.band-quote .qmark { font-family: var(--serif); font-size: 70px; color: var(--tan); line-height: .4; margin-bottom: 20px; }
.band-quote blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35; color: var(--ink);
}
.band-quote cite {
  font-family: var(--sans); font-style: normal; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--tan); margin-top: 30px;
}
.band-photo { min-height: 380px; }
.band-contact {
  background: var(--forest);
  color: var(--on-dark);
  padding: clamp(48px,5vw,84px) clamp(32px,4vw,60px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.band-contact .eyebrow { color: var(--on-dark-gold); }
.band-contact h2 { color: #fff; font-size: clamp(30px,3vw,42px); margin-bottom: 30px; font-weight: 400; }
.contact-list { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 14px; letter-spacing: .04em; color: var(--on-dark); }
.contact-list svg { width: 17px; height: 17px; stroke: var(--on-dark-gold); flex: none; }
.band-contact .link-arrow { color: #fff; border-color: rgba(255,255,255,.5); align-self: flex-start; }
.band-contact .link-arrow:hover { opacity: .8; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.footer-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan);
}
.footer-in .brand { font-size: 24px; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 18px; }
.footer-social svg { width: 17px; height: 17px; stroke: var(--tan); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-right .lang { display: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-rail { display: none; }
  .hero-copy { padding: 130px var(--gut) 40px; max-width: none; }
  .hero-media { min-height: 78vh; }
  .split { grid-template-columns: 1fr; }
  .split .photo { min-height: 300px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .band { grid-template-columns: 1fr; }
  .band-photo { min-height: 300px; order: -1; }
  .fern { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-in { flex-direction: column; gap: 18px; text-align: center; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; background: var(--cream); z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: 15px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--ink); }
.mobile-menu .close { position: absolute; top: 26px; right: 26px; font-size: 30px; background: none; border: 0; cursor: pointer; }
