/* DeFactory — the company page above the shops, in the Werkbank style (the owner's choice, 2026-11-06).
   Structure only: every colour is a token from colors.css, the chosen colour scheme, which also carries the
   dark mode (the system's setting, nothing stored). System fonts only: nothing is loaded from elsewhere. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Header: the wordmark, the way to the contact, the language pill. */
header.site { padding-block: 1.4rem; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; max-width: 100%; color: var(--text); text-decoration: none; }
.logo-art { display: block; width: 260px; max-width: 100%; height: auto; }
/* The logo: the Refined DF mark with "DeFactory" in Oxanium 625 as outlines (the owner's choice, 2026-11-06; its
   masters are in the logo studio). D and wordmark in the text colour, the F in the logo's blue; at night all of it
   in the text colour. */
.logo-art--oxanium .logo-accent { fill: #2d5079; }
@media (prefers-color-scheme: dark) {
  html:not(.light) .logo-art--oxanium .logo-accent { fill: currentColor; }
}
html.dark .logo-art--oxanium .logo-accent { fill: currentColor; }
.tools { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.contact-link { color: var(--muted); text-decoration: none; }
.contact-link:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; }
.lang > * { padding: 0.2rem 0.6rem; border-radius: 999px; line-height: 1.4; }
.lang-current { background: var(--text); color: var(--bg); }
.lang-link { color: var(--muted); text-decoration: none; }
.lang-link:hover { color: var(--text); }

main { padding-block: 3.5rem 4.5rem; }
h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.2;
  margin: 0 0 2.25rem; text-wrap: balance;
}
p { margin: 0 0 1rem; }
address { font-style: normal; }

/* The start page: one tile per brand, the whole tile its link, its top edge in the brand's own colour. */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.25rem; }
.brands li { display: flex; min-width: 0; }
.brand {
  --edge: var(--accent);
  flex: 1;
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--edge);
  border-radius: 0.5rem 0.5rem 0.875rem 0.875rem;
  padding: 1.5rem 1.5rem 1.35rem;
  color: var(--text); text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.brand--yourcandles { --edge: var(--edge-yourcandles); }
.brand--yourparts { --edge: var(--edge-yourparts); }
.brand--nextstitch { --edge: var(--edge-nextstitch); }
.brand:hover { transform: translateY(-3px); border-left-color: var(--edge); border-right-color: var(--edge); border-bottom-color: var(--edge); }
.brand:focus-visible { outline: 2px solid var(--edge); outline-offset: 3px; border-radius: 0.5rem 0.5rem 0.875rem 0.875rem; }
.brand-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.35rem; }
.brand-mark { width: 56px; height: 56px; flex: none; display: block; }
.brand-name { font-weight: 700; font-size: 1.4rem; letter-spacing: 0.01em; }
.kind { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.brand-text { color: var(--muted); flex: 1; }
.go { color: var(--accent); font-weight: 600; display: inline-flex; gap: 0.35rem; }
.arrow { display: inline-block; transition: transform 0.18s ease; }
.brand:hover .arrow { transform: translateX(4px); }
/* YourCandles' Rosette in the live shop's colours (tokens: the shop has its own for the night). */
.yc-p1 { fill: var(--yc-p1); } .yc-p2 { fill: var(--yc-p2); } .yc-p3 { fill: var(--yc-p3); } .yc-flame { fill: var(--yc-flame); }

.contact { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.contact h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.75rem; }

/* The legal pages and the 404: running text at a reading width, its left edge on the logo's (the column stays
   as wide as the header; only what is in it is narrower). */
.prose > * { max-width: 44rem; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.15rem; font-weight: 600; margin: 2.25rem 0 0.6rem; text-wrap: balance; }
.prose ul { padding-left: 1.25rem; }
.optout { background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem 1.25rem; margin: 0 0 1rem; }
.optout p:last-child { margin-bottom: 0; }
.optout button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 0.5rem; padding: 0.5rem 0.9rem;
}
.optout button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

footer.site { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; justify-content: space-between; }
footer.site .legal { display: flex; gap: 1.25rem; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .brand, .arrow { transition: none; }
  .brand:hover, .brand:hover .arrow { transform: none; }
}
