/* ===========================================================
   Gastarbajter Archive — demo landing page
   Brand: { ( ] }  · blue / periwinkle / olive on warm grey
   =========================================================== */

:root {
  --blue: #1a1aff;          /* slightly tamed from logo #010DFF for screen */
  --blue-deep: #010dff;
  --peri: #9d8afd;
  --olive: #bfc259;
  --bg: #edeae1;            /* warm light grey */
  --bg-2: #e3dfd3;
  --ink: #0a0a0a;
  --muted: #575757;
  --paper: #f6f4ee;

  --maxw: 1100px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --r: 14px;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* living background — cycles light tints of the brand palette,
     echoing the DAYS banner video (blue → periwinkle → olive → grey) */
  animation: bg-cycle 28s ease-in-out infinite;
}

/* light tints sampled from the video's brand-color states, kept high-lightness
   so body text and cards stay readable throughout the cycle */
@keyframes bg-cycle {
  0%,  100% { background-color: #edeae1; } /* warm grey  */
  25%       { background-color: #dce0ef; } /* blue tint  */
  50%       { background-color: #ded9ee; } /* periwinkle */
  75%       { background-color: #dde5d0; } /* olive tint */
}

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

/* subtle paper grain via layered gradients */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(157,138,253,.10), transparent 45%),
    radial-gradient(120% 120% at 0% 100%, rgba(191,194,89,.12), transparent 45%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* printed-grain texture — fine dot grid echoing the DAYS banner's surface.
   Sits BEHIND content (z-index 0), so cards, person cards and the hero
   brackets — which paint above with their own fill — stay free of dots. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(10, 10, 10, 0.3) 0.8px, transparent 1px);
  background-size: 4.5px 4.5px;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,10,10,.08);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; }
.brand__mark { height: 34px; width: auto; border-radius: 6px; }
.brand__name { font-family: var(--display); font-size: 1rem; letter-spacing: -.01em; }

.lang { display: flex; align-items: center; gap: .55rem; }
.lang__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lang__group { display: inline-flex; background: var(--paper); border: 1px solid rgba(10,10,10,.12); border-radius: 999px; padding: 3px; }
.lang__btn {
  font: 600 .78rem/1 var(--body);
  border: 0; background: transparent; color: var(--muted);
  padding: .4rem .7rem; border-radius: 999px; cursor: pointer; transition: .18s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--blue); color: #fff; }
.lang__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- bracket marks ---------- */
.bk { font-family: var(--display); font-weight: 900; line-height: 1; }
.bk--blue { color: var(--blue); }
.bk--peri { color: var(--peri); }
.bk--olive { color: var(--olive); }
.b { font-family: var(--display); font-weight: 900; color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 7rem) var(--pad) clamp(2.5rem, 6vw, 5rem);
  max-width: var(--maxw); margin-inline: auto; text-align: center;
}
.hero__brackets { display: flex; justify-content: center; gap: clamp(.5rem,3vw,2rem); font-size: clamp(3.5rem, 14vw, 9rem); line-height: .8; margin-bottom: 1.5rem; }
.hero__brackets .bk { transition: transform .3s; }
.hero:hover .bk--blue { transform: translateX(-1.5rem); }
.hero:hover .bk--peri { transform: translateX(0); }
.hero:hover .bk--olive { transform: translateX(1.5rem); }

.hero__eyebrow { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: .95; letter-spacing: -.02em;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--blue); }
.hero__title .b { font-size: .8em; }
.hero__lede { max-width: 38ch; margin: 1.5rem auto 0; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #2a2a2a; }
.scroll-cue { display: inline-block; margin-top: 2.2rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--olive); padding-bottom: 2px; }
.scroll-cue:hover { color: var(--blue); }

/* ---------- generic section ---------- */
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad); }
.section__head { margin-bottom: 2.2rem; }
.section__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.01em; line-height: 1.05; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: .9rem; color: #fff;
}
.tag--blue { background: var(--blue); }
.tag--olive { background: var(--olive); color: #1a1a00; }
.tag--peri { background: var(--peri); color: #14004a; }

/* ---------- about ---------- */
.prose { max-width: 62ch; font-size: 1.12rem; }
.prose p + p { margin-top: 1.1rem; }
.prose strong { font-weight: 700; }

/* ---------- collect cards ---------- */
.cards { list-style: none; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  border-radius: var(--r); padding: 1.6rem 1.4rem 1.8rem;
  background: var(--paper); border: 1px solid rgba(10,10,10,.08);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(10,10,10,.4); }
.card__mark { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; display: block; margin-bottom: .8rem; }
.card h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card--blue { border-top: 6px solid var(--blue); } .card--blue .card__mark { color: var(--blue); }
.card--peri { border-top: 6px solid var(--peri); } .card--peri .card__mark { color: var(--peri); }
.card--olive { border-top: 6px solid var(--olive); } .card--olive .card__mark { color: var(--olive); }

/* ---------- banner ---------- */
.banner {
  max-width: var(--maxw); margin: clamp(1rem,4vw,2.5rem) auto;
  margin-inline: auto;
  width: calc(100% - 2 * var(--pad));
  background: var(--blue); color: #fff; border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.5rem,3vw,2rem); align-items: center;
  overflow: hidden;
  position: relative;
}
/* printed-weave texture on the blue banner — light dots, like the video */
.banner::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.9px, transparent 1.1px);
  background-size: 4.5px 4.5px;
  mix-blend-mode: soft-light;
  opacity: 0.9;
}
.banner > * { position: relative; z-index: 1; }
/* big side brackets — flank the content and shift outward (like the video) */
.banner__bk {
  font-family: var(--display); font-weight: 900; color: var(--olive);
  font-size: clamp(4rem, 13vw, 9rem); line-height: .7;
  transition: transform .35s ease;
}
.banner:hover .banner__bk--l { transform: translateX(-.5rem); }
.banner:hover .banner__bk--r { transform: translateX(.5rem); }

.banner__body { text-align: center; justify-self: center; }
.banner__kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; opacity: .8; }
.banner__brand { font-family: var(--display); font-weight: 600; font-size: clamp(1rem,2.6vw,1.4rem); margin-top: .2rem; }
.banner__brand em { font-style: italic; font-weight: 400; }

.banner__title { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: .5rem 0 .2rem; }
.banner__days {
  font-family: var(--display); font-weight: 900; line-height: .85;
  font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: -.01em;
  color: var(--olive);
}
.banner__date {
  display: flex; flex-direction: column; align-items: center; line-height: .95;
  font-family: var(--display); font-weight: 900; letter-spacing: .02em;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
}
.banner__note { opacity: .85; max-width: 42ch; margin: .9rem auto 1.2rem; }
.banner__links { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; background: #fff; color: var(--blue); font-weight: 700;
  padding: .6rem 1.2rem; border-radius: 999px; text-decoration: none; transition: .18s;
}
.btn:hover { background: var(--olive); color: #1a1a00; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ---------- team ---------- */
.people { list-style: none; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person { background: var(--paper); border: 1px solid rgba(10,10,10,.08); border-radius: var(--r); padding: 1.6rem 1.4rem; }
.person__init {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--peri); color: #14004a; font-family: var(--display); font-weight: 900; font-size: 1.1rem; margin-bottom: 1rem;
}
.person:nth-child(2) .person__init { background: var(--olive); color: #1a1a00; }
.person:nth-child(3) .person__init { background: var(--blue); color: #fff; }
.person:nth-child(5) .person__init { background: var(--olive); color: #1a1a00; }
.person__name { font-family: var(--display); font-size: 1.3rem; }
.person__role { color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.person__bio { color: var(--muted); font-size: .96rem; }
.team__foot { margin-top: 1.8rem; font-size: 1.05rem; max-width: 56ch; color: #2a2a2a; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #efeae0; margin-top: 2rem;
  padding: clamp(2.5rem,6vw,4rem) var(--pad);
  display: grid; gap: 1.6rem; grid-template-columns: 1fr auto; align-items: start;
}
.footer__brand .bk { font-size: 2.4rem; }
.footer__name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-top: .4rem; }
.footer__url { color: #b9b29f; }
.footer__social { display: flex; flex-direction: column; gap: .5rem; text-align: right; }
.footer__social a { text-decoration: none; font-weight: 600; }
.footer__social a:hover { color: var(--olive); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .85rem; color: #9c957f; }
.footer__privacy { grid-column: 1 / -1; font-size: .8rem; color: #7d775f; max-width: 60ch; }

/* ---------- cookie consent ---------- */
.cc {
  position: fixed; left: 50%; bottom: clamp(.8rem, 3vw, 1.5rem);
  transform: translateX(-50%);
  width: min(640px, calc(100% - 1.6rem)); z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem;
  justify-content: space-between;
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(10,10,10,.14);
  border-left: 6px solid var(--blue);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 34px rgba(10,10,10,.18);
  animation: cc-rise .28s ease-out;
}
.cc[hidden] { display: none; }
@keyframes cc-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cc__text { font-size: .92rem; line-height: 1.45; flex: 1 1 16rem; min-width: 0; }
.cc__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cc__btn {
  font-family: var(--body); font-weight: 700; font-size: .9rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; transition: .18s;
  border: 2px solid transparent;
}
.cc__btn--solid { background: var(--blue); color: #fff; }
.cc__btn--solid:hover { background: var(--olive); color: #1a1a00; }
.cc__btn--ghost { background: transparent; color: var(--ink); border-color: rgba(10,10,10,.3); }
.cc__btn--ghost:hover { border-color: var(--ink); }
.cc__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .banner { gap: .2rem; padding-inline: .5rem; }
  .banner__bk { font-size: 3.2rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer__social { text-align: left; }
  .lang__label { display: none; }
  .brand__name { display: none; }
  .cc__actions { width: 100%; }
  .cc__btn { flex: 1 1 0; }
}
