/*
 * Holzmarkt Signature — design tokens, reset, typography, buttons, forms.
 * Palette: charcoal, ivory, linen and brass. The two brand colours come from
 * the dashboard setting « Apparence » (injected as --hm-green / --hm-wood),
 * so the owner can still change them; the defaults below are the theme's.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); }

:root {
  /* Brand (overridden by the dashboard « Apparence » colours). */
  --hm-green: #1E1B17;
  --hm-green-dark: #100E0C;
  --hm-green-700: #2E2A24;
  --hm-green-50: #F3EFE8;
  --hm-wood: #8C6A34;
  --hm-wood-dark: #735628;

  /* Signature palette. */
  --sg-ink: var(--hm-green);
  --sg-ink-2: var(--hm-green-700);
  --sg-accent: var(--hm-wood);
  --sg-accent-dark: var(--hm-wood-dark);
  --sg-head: #1E1B17;
  --sg-text: #4A443C;
  --sg-muted: #7A7268;
  --sg-ivory: #F8F5EF;
  --sg-paper: #FFFFFF;
  --sg-linen: #EFE8DC;
  --sg-sand: #E2D8C7;
  --sg-line: #E3DBCD;
  --sg-line-2: #ECE5D9;
  --sg-on-dark: #E9E2D6;
  --sg-on-dark-muted: #A79E90;
  --hm-success: #3D6A47;
  --hm-warning: #946412;
  --hm-danger: #A23B2A;

  /* Aliases used by shared components. */
  --hm-ink: var(--sg-head);
  --hm-text: var(--sg-text);
  --hm-muted: var(--sg-muted);
  --hm-line: var(--sg-line);
  --hm-line-2: var(--sg-line-2);
  --hm-beige: var(--sg-sand);
  --hm-beige-light: var(--sg-linen);
  --hm-anthracite: var(--sg-ink);

  --hm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sg-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --hm-font-head: var(--sg-serif);

  --hm-radius-sm: 2px;
  --hm-radius: 3px;
  --hm-radius-lg: 4px;
  --sg-shadow: 0 18px 40px -18px rgba(30, 27, 23, .28);
  --sg-shadow-lg: 0 30px 60px -20px rgba(30, 27, 23, .35);
  --hm-shadow-sm: none;
  --hm-shadow: var(--sg-shadow);
  --hm-shadow-lg: var(--sg-shadow-lg);
  --hm-container: 1360px;
  --hm-gutter: clamp(16px, 3.4vw, 44px);
  --sg-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; background: var(--sg-ivory); color: var(--sg-text); font: 400 16px/1.7 var(--hm-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--sg-head); text-decoration-color: color-mix(in srgb, var(--sg-accent) 60%, transparent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--sg-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sg-sand); color: var(--sg-head); }
:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4, h5 { font-family: var(--sg-serif); font-optical-sizing: auto; color: var(--sg-head); line-height: 1.12; margin: 0 0 .55em; font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
h4 { font-size: 1.15rem; }
h1 em, h2 em { font-style: italic; color: var(--sg-accent); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--sg-line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--sg-ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.hm-container { width: 100%; max-width: var(--hm-container); margin-inline: auto; padding-inline: var(--hm-gutter); }
.hm-container--narrow { max-width: 900px; }
.hm-section { padding-block: clamp(56px, 8vw, 120px); }
.sg-section--linen, .hm-section--beige { background: var(--sg-linen); }
.sg-section--paper { background: var(--sg-paper); }
.hm-section--dark { background: var(--sg-ink); color: var(--sg-on-dark-muted); }
.hm-section--dark h2, .hm-section--dark h3 { color: #fff; }

/* Small capitals with a brass rule: section kickers. */
.hm-kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .72rem/1.5 var(--hm-font); letter-spacing: .22em; text-transform: uppercase; color: var(--sg-accent); margin-bottom: 18px; }
.hm-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hm-section--dark .hm-kicker { color: color-mix(in srgb, var(--sg-accent) 55%, #fff); }
.hm-section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.hm-section-head--center { margin-inline: auto; text-align: center; }
.hm-section-head--center .hm-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hm-section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.hm-lead { font-size: 1.1rem; line-height: 1.7; color: var(--sg-muted); max-width: 62ch; }
.hm-section--dark .hm-lead { color: var(--sg-on-dark-muted); }
.hm-section-head--center .hm-lead { margin-inline: auto; }
.hm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* Section head: title left, link right. */
.sg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.sg-head__text { max-width: 720px; }
.sg-head h2 { margin-bottom: .3em; }
.sg-head .hm-lead { margin: 0; }
.sg-link { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1.2 var(--hm-font); letter-spacing: .16em; text-transform: uppercase; color: var(--sg-head); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--sg-accent); white-space: nowrap; }
.sg-link svg { width: 16px; height: 16px; transition: transform .25s var(--sg-ease); }
.sg-link:hover { color: var(--sg-accent); }
.sg-link:hover svg { transform: translateX(4px); }
.sg-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.sg-split__aside { position: sticky; top: 140px; }
.sg-split__aside .sg-link { margin-top: 8px; }

/* Buttons: square, small capitals. */
.hm-btn {
  --b: var(--sg-ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: var(--hm-radius-sm); border: 1px solid var(--b);
  background: var(--b); color: var(--c); font: 600 .78rem/1.2 var(--hm-font); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s var(--sg-ease), border-color .25s var(--sg-ease), color .25s var(--sg-ease);
}
.hm-btn:hover { background: var(--sg-accent); border-color: var(--sg-accent); color: #fff; }
.hm-btn svg { width: 18px; height: 18px; flex: none; }
.hm-btn--buy { --b: var(--sg-accent); }
.hm-btn--buy:hover { background: var(--sg-ink); border-color: var(--sg-ink); }
.hm-btn--outline { background: transparent; color: var(--sg-head); border-color: var(--sg-head); }
.hm-btn--outline:hover { background: var(--sg-ink); border-color: var(--sg-ink); color: #fff; }
.hm-btn--light { --b: var(--sg-ivory); --c: var(--sg-head); }
.hm-btn--light:hover { background: #fff; border-color: #fff; color: var(--sg-head); }
.hm-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hm-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--sg-head); }
.hm-btn--lg { min-height: 58px; padding: 16px 34px; }
.hm-btn--sm { min-height: 40px; padding: 9px 16px; font-size: .72rem; }
.hm-btn--block { width: 100%; }

/* Badges: thin outlined labels. */
.hm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--sg-line); border-radius: 999px; font: 500 .74rem/1.2 var(--hm-font); letter-spacing: .04em; background: var(--sg-paper); color: var(--sg-head); }
.hm-badge svg { width: 14px; height: 14px; color: var(--sg-accent); }
.hm-badge--wood { border-color: color-mix(in srgb, var(--sg-accent) 40%, transparent); color: var(--sg-accent-dark); background: color-mix(in srgb, var(--sg-accent) 7%, #fff); }
.hm-badge--stock { color: var(--hm-success); }
.hm-badge--stock svg { color: var(--hm-success); }
.hm-badge--warn { color: var(--hm-warning); }
.hm-badge--dark { background: var(--sg-ink); border-color: var(--sg-ink); color: #fff; }

/* Forms: underlined fields on paper. */
.hm-field { display: grid; gap: 6px; margin-bottom: 18px; }
.hm-field label, .hm-field__label { font: 600 .74rem/1.3 var(--hm-font); letter-spacing: .12em; text-transform: uppercase; color: var(--sg-head); }
.hm-input, .hm-field input:not([type=checkbox]):not([type=radio]), .hm-field select, .hm-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--sg-sand); border-radius: var(--hm-radius-sm); background: var(--sg-paper); color: var(--sg-head);
  transition: border-color .2s, box-shadow .2s;
}
.hm-field textarea { min-height: 150px; resize: vertical; }
.hm-input:focus, .hm-field input:focus, .hm-field select:focus, .hm-field textarea:focus { outline: none; border-color: var(--sg-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-accent) 18%, transparent); }

.hm-icon { width: 22px; height: 22px; flex: none; }
