/* ────────────────────────────────────────────────────────────────
   Aleksandra Krajic — Basis-Styles (Design tokens + Komponenten)
   ──────────────────────────────────────────────────────────────── */

:root {
  /* Brand colors */
  --blue: #B5C0D8;
  --blue-soft: #C7D0E2;
  --blue-deep: #B3C1DB;
  --cream: #F5F0E8;
  --cream-soft: #FAF7F1;
  --yellow: #F9EFA0;
  --yellow-soft: #FDF6BC;
  --ink: #0F1A2E;
  --ink-80: rgba(15, 26, 46, 0.82);
  --ink-60: rgba(15, 26, 46, 0.58);
  --ink-40: rgba(15, 26, 46, 0.38);
  --ink-15: rgba(15, 26, 46, 0.12);
  --ink-08: rgba(15, 26, 46, 0.07);
  --paper: #FFFFFF;

  /* Type */
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --shell: 1320px;
  --gutter: 32px;
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

button { font: inherit; color: inherit; }

a { color: var(--ink); }
a:hover { color: var(--ink-80); }

/* ─── Layout shell ──────────────────────────────────────────── */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Display headlines ─────────────────────────────────────── */

.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.display-xl  { font-size: clamp(72px, 11vw, 200px); }
.display-lg  { font-size: clamp(56px, 8.5vw, 144px); }
.display-md  { font-size: clamp(40px, 5.8vw, 96px); }
.display-sm  { font-size: clamp(32px, 4.2vw, 68px); }

.display .italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-stretch: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── Mono labels ───────────────────────────────────────────── */

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mono-sm { font-size: 11px; }
.mono-md { font-size: 14px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ─── Buttons & pills ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 17px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream-soft);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: default;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  text-decoration: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245,240,232,0.18);
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.btn-yellow .btn-icon,
.btn-ghost .btn-icon { background: var(--ink); color: var(--yellow); }
.btn-ghost .btn-icon { color: var(--cream-soft); }

/* ─── Surface / card patterns ──────────────────────────────── */

.surface {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.surface-cream { background: var(--cream-soft); }
.surface-yellow { background: var(--yellow); }
.surface-ink { background: var(--ink); color: var(--cream-soft); }

/* ─── Section spacing ──────────────────────────────────────── */

section {
  position: relative;
  padding: 96px 0;
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  :root { --gutter: 20px; }
}

/* ─── Index numbers & hover arrows on cards ────────────────── */

.card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink-15);
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .25s, color .25s;
}

.surface:hover .card-arrow { background: var(--ink); color: var(--yellow); border-color: var(--ink); transform: rotate(-45deg); }
.surface-yellow .card-arrow { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ─── Marquee ──────────────────────────────────────────────── */

.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  padding: 22px 0;
  gap: 64px;
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  align-items: center;
  flex-shrink: 0;
  padding-right: 64px;
}
.marquee-item {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-item .dot {
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}
.marquee-item .star {
  display: inline-grid;
  place-items: center;
  color: var(--yellow);
}
.marquee-item .star svg {
  animation: spin 12s linear infinite;
}
.marquee-item .italic {
  font-family: var(--f-serif);
  font-stretch: normal;
  font-style: italic;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Chips / filter ───────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: default;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.chip:hover { background: var(--ink-08); }
.chip[data-active="true"] {
  background: var(--ink);
  color: var(--cream-soft);
}

/* ─── Forms ────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field input,
.field textarea,
.field select {
  font-family: var(--f-sans);
  font-size: 16px;
  border: 0;
  border-bottom: 1px solid var(--ink-15);
  padding: 12px 0 14px;
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
  border-radius: 0;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-40); }
.field textarea { resize: vertical; min-height: 120px; }

/* ─── Portrait placeholder ─────────────────────────────────── */

.portrait {
  background: var(--cream);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(15,26,46,0.04) 0 12px,
      transparent 12px 24px);
  display: grid;
  place-items: center;
}
.portrait::after {
  content: "PORTRAIT — Aleksandra";
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 6px;
}

/* ─── Misc ─────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--ink-15);
  width: 100%;
}

.tag {
  display: inline-flex;
  padding: 5px 11px 6px;
  background: var(--ink-08);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-80);
}

.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-blue { background: var(--blue); color: var(--ink); }
.tag-ink { background: var(--ink); color: var(--yellow); }

/* ─── Fade in on view ──────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Selection ─────────────────────────────────────────── */

::selection { background: var(--yellow); color: var(--ink); }

/* ─── Legal overlay (Impressum/Datenschutz via :target) ───── */
.legal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(15,26,46,0.5);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.legal-overlay:target { display: flex; }
.legal-card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 44px 48px 40px;
  max-width: 520px; width: 100%;
  position: relative;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15,26,46,0.3);
}
.legal-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 28px; line-height: 1; text-decoration: none;
  color: var(--ink-60);
}
.legal-close:hover { color: var(--ink); }
