/* --- tokens ---------------------------------------------------------------- */
:root {
  --umber: #6b4a2b;
  --umber-ink: #2a221a;
  --umber-soft: #e4d9bc;
  --paper: #faf6ec;
  --paper-warm: #f2ead7;
  --rule: #c9bfae;
  --mute: #7a6a55;
  --text: #1a1a1a;
  --on-dark: #faf6ec;

  --f-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --f-sans: -apple-system, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-14: 0.875rem;
  --t-17: 1rem;
  --t-21: 1.3125rem;
  --t-26: 1.625rem;
  --t-33: 2.0625rem;
  --t-42: 2.625rem;
  --t-52: 3.25rem;

  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;

  --gutter: 20px;
  --radius: 4px;
}

@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1120px) { :root { --gutter: 48px; } }
@media (min-width: 1440px) { :root { --gutter: 64px; } }
@media (min-width: 1920px) { :root { --gutter: 96px; } }

/* --- base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html { font-size: 18px; } }

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  /* fine paper-grain pattern, inline SVG, under 1 KB */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='%236b4a2b' fill-opacity='0.045'><circle cx='17' cy='23' r='0.7'/><circle cx='83' cy='11' r='0.6'/><circle cx='41' cy='67' r='0.8'/><circle cx='99' cy='55' r='0.5'/><circle cx='29' cy='97' r='0.7'/><circle cx='71' cy='89' r='0.6'/><circle cx='113' cy='101' r='0.5'/><circle cx='55' cy='37' r='0.6'/><circle cx='7' cy='79' r='0.5'/><circle cx='91' cy='73' r='0.6'/></g></svg>");
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.6;
  font-size: var(--t-17);
}

h1, h2, h3 {
  font-family: var(--f-serif);
  color: var(--text);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.005em;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--umber); text-decoration: none; }
a:focus { outline: none; }

/* --- layout ---------------------------------------------------------------- */
.shell {
  width: 100%;
  padding-inline: var(--gutter);
}

/* --- zollstock rule: tick-mark divider at top of each main section ---------- */
.rule-top {
  position: relative;
  padding-top: 18px;
}
.rule-top::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 10px;
  /* long tick every 40 px, short tick every 8 px */
  background-image:
    linear-gradient(to right, var(--umber) 0 1px, transparent 1px 100%),
    linear-gradient(to right, var(--umber) 0 1px, transparent 1px 100%);
  background-size: 40px 10px, 8px 6px;
  background-position: 0 0, 0 0;
  background-repeat: repeat-x;
  opacity: 0.55;
}

/* --- header band ----------------------------------------------------------- */
.band {
  background: var(--umber-ink);
  color: var(--on-dark);
}

.band__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding-block: var(--sp-16);
  min-height: 56px;
}

.band__name {
  color: var(--on-dark);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--f-serif);
  text-decoration: none;
}
.band__name-main {
  font-size: clamp(1rem, 2.4vw + 0.55rem, 1.3125rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.band__name-sub {
  font-family: var(--f-sans);
  font-size: var(--t-14);
  color: #d8c9a9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- call buttons ---------------------------------------------------------- */
.call {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.1;
}

.call--band {
  background: var(--paper);
  color: var(--umber-ink);
}
.call--band:hover,
.call--band:focus-visible {
  background: #ffffff;
  color: var(--umber-ink);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.call--primary {
  background: var(--umber);
  color: var(--on-dark);
  padding: 14px 20px;
  gap: var(--sp-12);
  align-items: center;
}
.call--primary:hover,
.call--primary:focus-visible {
  background: var(--umber-ink);
  color: var(--on-dark);
  outline: 2px solid var(--umber);
  outline-offset: 2px;
}

.call__num { font-variant-numeric: tabular-nums; }
.call__short { font-weight: 600; }

/* header call: short label up to 520 px, number from 520 px up */
.call--header .call__num--header { display: none; }
@media (min-width: 520px) {
  .call--header .call__short { display: none; }
  .call--header .call__num--header { display: inline; }
}
.call__num--big {
  display: block;
  font-size: var(--t-21);
  line-height: 1.15;
}
.call__label {
  display: block;
  font-size: var(--t-14);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8c9a9;
  font-weight: 600;
}
.call--xl .call__num {
  font-size: var(--t-21);
}

.call__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* call buttons never move (owner standard 11) */

/* --- hero ------------------------------------------------------------------ */
.hero { padding-block: var(--sp-48) var(--sp-32); }
@media (min-width: 768px) { .hero { padding-block: var(--sp-96) var(--sp-64); } }

.hero__row {
  display: grid;
  gap: var(--sp-48);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero__row {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    gap: var(--sp-64);
    align-items: center;
  }
}
@media (min-width: 1280px) {
  .hero__row { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); }
}

.hero__text { max-width: 60ch; }

.eyebrow {
  font-family: var(--f-sans);
  color: var(--mute);
  font-size: var(--t-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.hero__title {
  font-size: clamp(2rem, 6vw + 0.5rem, 3.25rem);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-24);
  font-weight: 600;
}
.hero__title .ink { color: var(--umber); }

.hero__lead {
  font-family: var(--f-serif);
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.35;
  color: #2a2420;
  margin-bottom: var(--sp-16);
  max-width: 34ch;
}

.hero__meta {
  color: #2a2420;
  margin-bottom: var(--sp-32);
  max-width: 48ch;
}

.hero__cta { margin-bottom: var(--sp-16); }

.hero__fallback {
  font-size: var(--t-14);
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* --- hero photo (v3b, Solomon restored stock images per Request 21) ------- */
.hero__photo {
  margin: 0;
  position: relative;
  padding: 10px 10px 0;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  max-width: 560px;
  width: 100%;
}
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Service card photo (v3b) */
.svc__photo {
  margin: 0 0 var(--sp-16) 0;
  padding: 10px 10px 0;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.svc__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 640px) {
  .svc__photo img { aspect-ratio: 3 / 4; }
}

/* Caption below stock placeholder images */
.photo-caption {
  font-family: var(--f-sans);
  font-size: var(--t-14);
  color: var(--umber-ink);
  letter-spacing: 0.02em;
  padding: 8px 10px 10px;
  margin: 0 -10px;
  background: var(--paper-warm);
  line-height: 1.4;
  font-style: italic;
}

.link--inline {
  color: var(--umber);
  text-decoration: underline;
  text-decoration-color: var(--umber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link--inline:hover,
.link--inline:focus-visible {
  color: var(--umber-ink);
  text-decoration-color: var(--umber-ink);
  text-decoration-thickness: 2px;
  outline: none;
}

/* --- services -------------------------------------------------------------- */
.services { padding-block: var(--sp-48); }
@media (min-width: 768px) { .services { padding-block: var(--sp-96); } }

.section-title {
  font-size: var(--t-26);
  margin-bottom: var(--sp-16);
  display: inline-block;
  background-image:
    linear-gradient(var(--umber), var(--umber)),
    linear-gradient(var(--umber), var(--umber));
  background-size: 100% 1px, 100% 1px;
  background-position: 0 calc(100% - 3px), 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 8px;
  padding-right: var(--sp-24);
}

.section-lead {
  color: var(--mute);
  margin-bottom: var(--sp-48);
  max-width: 54ch;
}

.svcgrid {
  display: grid;
  gap: var(--sp-24);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .svcgrid { grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
}
@media (min-width: 1120px) {
  .svcgrid { gap: var(--sp-48); }
}

.svc {
  position: relative;
  overflow: hidden;
  padding: var(--sp-32) var(--sp-24) var(--sp-24);
  border-top: 1px solid var(--umber);
  background: transparent;
  isolation: isolate;
}
/* On hover, a thin umber-soft bar rises from the bottom (only ~24% of the card).
   Subtler than v2 (which filled the whole card); keeps the card readable. */
.svc::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: var(--umber-soft);
  transform: translateY(76%);
  transform-origin: bottom;
  opacity: 0.55;
  z-index: -1;
}

.svc__title {
  font-size: var(--t-26);
  margin-bottom: var(--sp-12);
  font-weight: 600;
  color: var(--umber-ink);
}
.svc__body {
  color: var(--text);
  max-width: 44ch;
  margin-bottom: var(--sp-16);
}
.svc__src {
  font-size: var(--t-14);
  color: var(--mute);
  font-style: italic;
  font-family: var(--f-serif);
}

/* --- Musterbrett (Holzarten): wood swatches, restored v3 ------------------- */
.woods { padding-block: var(--sp-48); }
@media (min-width: 768px) { .woods { padding-block: var(--sp-96); } }

.woods__lead {
  max-width: 60ch;
  color: #2a1e14;
  margin-bottom: var(--sp-32);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  line-height: 1.55;
}

.wood-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-24);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-24);
}
@media (min-width: 640px) { .wood-strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wood-strip { grid-template-columns: repeat(4, 1fr); gap: var(--sp-32); } }

.wood { display: flex; flex-direction: column; gap: var(--sp-12); }

.wood__swatch {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

/* Four CSS-painted wood-grain swatches */
.wood--eiche .wood__swatch {
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0 6px,
      rgba(60,35,15,0.18) 6px 8px,
      rgba(0,0,0,0) 8px 20px,
      rgba(60,35,15,0.10) 20px 22px,
      rgba(0,0,0,0) 22px 32px),
    linear-gradient(180deg, #d9b47a 0%, #c69a60 100%);
}
.wood--buche .wood__swatch {
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0 4px,
      rgba(120,80,50,0.10) 4px 5px,
      rgba(0,0,0,0) 5px 14px),
    linear-gradient(180deg, #e9d2a8 0%, #d8bc8a 100%);
}
.wood--nuss .wood__swatch {
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0 8px,
      rgba(30,15,5,0.30) 8px 10px,
      rgba(0,0,0,0) 10px 22px),
    linear-gradient(180deg, #6e4a2a 0%, #553820 100%);
}
.wood--esche .wood__swatch {
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0 10px,
      rgba(90,55,30,0.14) 10px 11px,
      rgba(0,0,0,0) 11px 28px),
    linear-gradient(180deg, #e2c796 0%, #d1b075 100%);
}

.wood__name {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
}
.wood__note {
  margin: 0;
  color: #4a3b2a;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 32ch;
}

/* v3 hover is subtler than v2 (owner said v2 was too aggressive): a smaller
   filter shift, 200 ms, keyboard focus twin via :focus-within. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wood__swatch { transition: filter 200ms ease-out; }
  .wood:hover .wood__swatch,
  .wood:focus-within .wood__swatch {
    filter: saturate(1.06) brightness(1.02);
  }
}

/* --- contact section ------------------------------------------------------- */
.contact { padding-block: var(--sp-48); }
@media (min-width: 768px) { .contact { padding-block: var(--sp-96); } }

.grid {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
  margin: 0;
  margin-top: var(--sp-32);
}
@media (min-width: 640px)  { .grid { grid-template-columns: 1fr 1fr; gap: var(--sp-48); } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-48); } }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--rule);
  margin: 0;
}

.card__label {
  font-family: var(--f-sans);
  font-size: var(--t-14);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

.card__value {
  margin: 0;
  font-family: var(--f-serif);
  font-size: var(--t-21);
  line-height: 1.3;
  color: var(--text);
}
.card__value .link { color: var(--text); }

.card__note {
  margin: 0;
  color: var(--mute);
  font-size: var(--t-14);
}

.hours {
  display: grid;
  gap: 4px;
  font-family: var(--f-sans);
  font-size: var(--t-17);
  color: var(--text);
  max-width: 24rem;
}
.hours li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--sp-12);
  font-variant-numeric: tabular-nums;
}
.hours__closed { color: var(--mute); }

/* --- links: scribe-mark underline ------------------------------------------ */
/* on hover and :focus-visible, a 1 px umber line scribes in from the left */
.link,
.foot__link {
  position: relative;
  color: inherit;
  text-decoration: none;
}
.link::after,
.foot__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
.link:hover,
.link:focus-visible,
.foot__link:hover,
.foot__link:focus-visible {
  color: var(--umber);
  outline: none;
}
.foot__link:hover,
.foot__link:focus-visible {
  color: #ffffff;
}
.link:hover::after,
.link:focus-visible::after,
.foot__link:hover::after,
.foot__link:focus-visible::after {
  transform: scaleX(1);
}

/* --- call strip ------------------------------------------------------------ */
.callstrip {
  background: var(--umber);
  color: var(--on-dark);
}
.callstrip__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-16);
  padding-block: var(--sp-32);
}
@media (min-width: 640px) {
  .callstrip__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.callstrip__text {
  font-family: var(--f-serif);
  font-size: var(--t-21);
  color: var(--on-dark);
  max-width: 28ch;
  margin: 0;
}
.callstrip .call--band {
  background: var(--paper);
  color: var(--umber-ink);
}

/* --- footer ---------------------------------------------------------------- */
.band--foot { padding-block: var(--sp-48) var(--sp-32); }

.foot {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .foot { grid-template-columns: 1fr 1fr; gap: var(--sp-32) var(--sp-48); } }
@media (min-width: 1024px) { .foot { grid-template-columns: repeat(4, 1fr); } }

.foot__col { }
.foot__label {
  font-family: var(--f-sans);
  font-size: var(--t-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a79470;
  margin-bottom: var(--sp-8);
}
.foot__body {
  font-family: var(--f-sans);
  font-size: var(--t-17);
  color: var(--on-dark);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.foot__link {
  color: var(--on-dark);
}

.foot__legal {
  margin-top: var(--sp-32);
  padding-top: var(--sp-24);
  border-top: 1px solid #3a3025;
  font-family: var(--f-sans);
  font-size: var(--t-14);
  color: #c9bfae;
  letter-spacing: 0.01em;
}

/* --- focus rings (keyboard) ------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--umber);
  outline-offset: 3px;
}

/* --- motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .call--primary,
  .call--band {
    transition: color 150ms ease-out, background-color 150ms ease-out, outline-color 150ms ease-out;
  }
  .link::after,
  .foot__link::after {
    transition: transform 200ms ease-out;
  }
  .svc::before {
    transition: transform 200ms ease-out, opacity 200ms ease-out;
  }
  @media (hover: hover) {
    .svc:hover::before,
    .svc:focus-within::before {
      transform: translateY(58%);
      opacity: 0.7;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  /* keyboard focus still scribes the line but without the slide */
  .link:focus-visible::after,
  .foot__link:focus-visible::after,
  .link:hover::after,
  .foot__link:hover::after {
    transform: scaleX(1);
  }
}
