/* ==========================================================================
   Marke Atilla Okcan – gemeinsames Grundsystem
   --------------------------------------------------------------------------
   Diese Datei enthält nur, was jede Website der Marke teilt: Farben,
   Schriften, Abstände, Wortmarke und wiederkehrende Details. Sie kennt keine
   Inhalte von okcan.at. Eine weitere Website bindet ein:

     css/fonts.css  →  css/marke.css  →  eigenes Layout (z. B. css/site.css)

   Aufbau der Variablen: Primitive → Semantik → Komponenten.
   Beschreibung des Systems: docs/markensystem.md
   ========================================================================== */

:root {
  /* --- Primitive: die Stoffe ------------------------------------------- */
  --night-950: #0B1426;      /* Nachtblau, Grundton */
  --night-900: #101B31;
  --night-800: #18253F;
  --anthracite-950: #111216; /* beinahe schwarzes Anthrazit */
  --anthracite-900: #16171C;
  --anthracite-800: #1D1E24;
  --ivory-100: #F2ECE0;      /* warmes Elfenbein */
  --ivory-200: #E6DFD1;
  --ivory-400: #B5AEA1;
  --brass-400: #B39B70;      /* gedämpftes Messing, nur Linien und Details */
  --brass-700: #7A6440;
  --violet-300: #A897CF;     /* Violett, hell: nur kleine Zeichen auf Dunkel */
  --violet-600: #4A3A68;     /* Violett, dunkel: Akzent auf Hell, Flächen */
  --violet-950: #16121F;
  --stone-600: #55565E;

  /* --- Semantik: dunkle Grundfläche ------------------------------------- */
  --color-bg: var(--night-950);
  --color-bg-raised: var(--night-900);
  --color-bg-deep: var(--anthracite-950);
  --color-bg-alt: var(--anthracite-900);
  --color-bg-personal: var(--violet-950);
  --color-stage: var(--anthracite-800);
  --color-text: var(--ivory-100);
  --color-text-muted: var(--ivory-400);
  --color-detail: var(--brass-400);            /* Linien, Ziffern, Häkchen */
  --color-personal: var(--violet-300);         /* i-Punkt, Unterstreichungen */
  --color-line: rgb(242 236 224 / 0.12);
  --color-line-strong: rgb(242 236 224 / 0.3);
  --color-line-detail: rgb(179 155 112 / 0.55);
  --color-focus: var(--ivory-100);
  --color-error: #F0A595;

  /* --- Semantik: helle Fläche (Elfenbein) -------------------------------- */
  --color-light-bg: var(--ivory-100);
  --color-light-text: var(--night-950);
  --color-light-muted: var(--stone-600);
  --color-light-detail: var(--brass-700);
  --color-light-personal: var(--violet-600);
  --color-light-line: rgb(11 20 38 / 0.15);

  /* --- Schrift ---------------------------------------------------------- */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.8125rem;                                       /* 13 */
  --text-sm: 0.9375rem;                                       /* 15 */
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);    /* 17–19 */
  --text-lg: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);     /* 19–22 */
  --text-h3: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);        /* 26–36 */
  --text-h2: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);          /* 40–76 */
  --text-display: clamp(3.25rem, 1.6rem + 7.4vw, 8.25rem);    /* 52–132 */

  /* --- Abstände und Raster ---------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(5rem, 3rem + 8vw, 10.5rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --maxw: 82rem;
  --radius-s: 2px;
  --radius-m: 4px;
  --hairline: 1px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;

  /* --- Komponenten ------------------------------------------------------ */
  --btn-primary-bg: var(--ivory-100);
  --btn-primary-bg-hover: var(--ivory-200);
  --btn-primary-fg: var(--night-950);
  --btn-outline-border: var(--color-line-strong);
  --pinstripe: rgb(242 236 224 / 0.045);
  --pinstripe-gap: 11px;
  --frame-shadow: 0 2.5rem 5rem -2.5rem rgb(0 0 0 / 0.7);
}

/* --- Basis --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-5);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

a, button { -webkit-tap-highlight-color: transparent; }

/* Fokus: Elfenbein auf Dunkel, Nachtblau auf Hell. Immer sichtbar, nie nur Farbe. */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.surface-light :focus-visible { outline-color: var(--color-light-text); }

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ivory-100);
  color: var(--night-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Flächen ------------------------------------------------------------- */
.surface-light {
  background: var(--color-light-bg);
  color: var(--color-light-text);
}

/* Nadelstreifen: das Stoffmuster der Marke. Nur auf einer Fläche pro Seite. */
.fabric {
  background-color: var(--anthracite-900);
  background-image:
    radial-gradient(120% 80% at 85% 0%, rgb(242 236 224 / 0.07), transparent 60%),
    repeating-linear-gradient(90deg, var(--pinstripe) 0 1px, transparent 1px var(--pinstripe-gap));
}

/* --- Wortmarke ----------------------------------------------------------- */
/* „Atılla Okcan“ in der Serifenschrift. Das ı trägt einen eigenen Punkt in
   Violett: das persönliche Zeichen der Marke. Im HTML steht die Wortmarke
   mit aria-hidden, der lesbare Name kommt über aria-label oder visually-hidden. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__name { letter-spacing: 0.005em; }

/* Zusatz neben der Wortmarke, getrennt durch eine Messinglinie */
.wordmark__add {
  padding-left: 0.85rem;
  border-left: var(--hairline) solid var(--color-line-detail);
  color: var(--color-text-muted);
  font-family: var(--font-text);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.tittle { position: relative; }

.tittle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.27em;
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: var(--color-personal);
  transform: translateX(-50%);
}

.surface-light .tittle::after,
.label-card .tittle::after { background: var(--color-light-personal); }

/* --- Typografie ---------------------------------------------------------- */
/* Einordnung über dem Einstieg: Satzschrift, gefolgt von einer Messinglinie */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.kicker::after {
  content: "";
  flex: 0 1 4.5rem;
  min-width: 2rem;
  height: var(--hairline);
  background: var(--color-detail);
}

@media (max-width: 24rem) {
  .kicker::after { display: none; }
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.display__line { display: block; }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.1;
  text-wrap: balance;
}

/* Überschrift mit auslaufender Messinglinie, wie eine Naht */
/* Die Linie folgt im Textfluss auf das letzte Wort, auch bei Umbruch. */
.heading-line::after {
  content: "";
  display: inline-block;
  width: clamp(2.5rem, 14vw, 13rem);
  height: var(--hairline);
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
  vertical-align: 0.3em;
  background: linear-gradient(90deg, var(--color-line-detail), transparent);
}

.surface-light .heading-line::after {
  background: linear-gradient(90deg, var(--color-light-detail), transparent);
}

/* Kennzeichnung einer Arbeit oder eines Abschnitts (z. B. „Konzeptentwurf“) */
.tag {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* --- Bedienelemente ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3.25rem;
  padding: 0 1.625rem;
  border: var(--hairline) solid transparent;
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.btn--primary:hover { background: var(--btn-primary-bg-hover); }

.btn--outline {
  background: transparent;
  border-color: var(--btn-outline-border);
  color: var(--color-text);
}

.btn--outline:hover { border-color: var(--color-text); }

/* Auf heller Fläche */
.btn--dark {
  background: var(--color-light-text);
  color: var(--color-light-bg);
}

.btn--dark:hover { background: var(--night-800); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-personal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
  transition: text-decoration-color var(--dur-fast) ease, text-underline-offset var(--dur-fast) ease;
}

.text-link:hover { text-decoration-color: var(--color-text); }

.surface-light .text-link { color: var(--color-light-text); text-decoration-color: var(--color-light-personal); }

.text-link--small { font-size: var(--text-xs); }

/* --- Etikett ------------------------------------------------------------- */
/* Wie das eingenähte Etikett im Mantel: Elfenbein, Messingrahmen,
   Steppnaht oben und unten. Trägt die Wortmarke und wenige Angaben. */
.label-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--ivory-100);
  color: var(--night-950);
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.75);
}

.label-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: var(--hairline) solid rgb(122 100 64 / 0.55);
  pointer-events: none;
}

.label-card::after {
  content: "";
  position: absolute;
  inset: 2px 14px;
  border-block: var(--hairline) dashed rgb(122 100 64 / 0.5);
  pointer-events: none;
}
