/* Slipway Labs — a two-person studio.
   Fonts are self-hosted rather than pulled from Google's CDN: a request to
   fonts.gstatic.com discloses the visitor's IP to a US processor, which is the
   same call already made for vorleseexpress.at. */

@font-face {
  font-family: 'Bricolage';
  src: url('assets/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Bricolage';
  src: url('assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'InterVar';
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  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: 'InterVar';
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  --cream: #f5f0e6;
  --paper: #fffdf7;
  --ink: #16130f;
  --ink-soft: #4a4239;
  --lime: #c6f24e;
  --coral: #ff5c38;
  --sea: #126b66;
  --lilac: #c3b1ff;
  --rule: 3px solid var(--ink);
  --hard: 8px 8px 0 var(--ink);
  --hard-sm: 5px 5px 0 var(--ink);
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. Pure CSS so there is no extra request and nothing to cache-bust. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: 'Bricolage', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }

.wrap {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  background: var(--lime);
  border: var(--rule);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--lime);
  border-bottom: var(--rule);
  overflow: hidden;
  padding: 0.5rem 0;
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding-left: 2.5rem;
  animation: slide 38s linear infinite;
}
.ticker span { white-space: nowrap; }
.ticker span::after {
  content: '✦';
  margin-left: 2.5rem;
  color: var(--coral);
}
@keyframes slide {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--cream);
  border-bottom: var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bricolage', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg { display: block; }
.nav__links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  border: 3px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover { border-color: var(--ink); background: var(--paper); }

@media (max-width: 640px) {
  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
  }
  .nav__links { width: 100%; }
  .nav__links a { padding: 0.5rem 0.6rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: var(--rule);
  background: var(--lime);
  color: var(--ink);
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: var(--hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--coral { background: var(--coral); color: var(--paper); }
.btn--ghost { background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__kicker {
  display: inline-block;
  background: var(--lilac);
  border: var(--rule);
  box-shadow: var(--hard-sm);
  padding: 0.35rem 0.9rem;
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 10.5vw, 9.5rem);
  font-stretch: 92%;
  overflow-wrap: break-word;
}
.hero h1 .word { display: block; }
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.hero__lede {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--ink-soft);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* The slipway itself: a ramp running into water. */
.slipway {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border: var(--rule);
  box-shadow: var(--hard);
  background: var(--sea);
}

/* ---------- section furniture ---------- */

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--lime); }

.eyebrow {
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 0.75rem;
}
.section h2 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  max-width: 18ch;
}
.section__intro {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--ink-soft);
}
.section--ink .section__intro { color: #cdc6ba; }

/* ---------- product cards ---------- */

.cards {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--rule);
  box-shadow: var(--hard);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.15s ease;
}
.card:nth-child(odd) { transform: rotate(-0.8deg); }
.card:nth-child(even) { transform: rotate(0.7deg); }
.card:hover { transform: rotate(0deg) translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: none; }
}
.card__tag {
  align-self: flex-start;
  border: var(--rule);
  padding: 0.25rem 0.7rem;
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.card--wt .card__tag { background: var(--lime); }
.card--ll .card__tag { background: var(--lilac); }
.card h3 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.card__what {
  font-weight: 600;
  margin: 0.6rem 0 0;
}
.card p { color: var(--ink-soft); }
.card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.card li::before {
  content: '→';
  font-weight: 700;
  color: var(--coral);
  flex: none;
}
.card__foot {
  margin-top: auto;
  padding-top: 1.75rem;
}

/* ---------- numbers ---------- */

.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
.stat {
  border: 3px solid var(--cream);
  padding: 1.5rem;
  background: #211d18;
}
.stat b {
  display: block;
  font-family: 'Bricolage', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime);
}
.stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #cdc6ba;
}

/* ---------- team ---------- */

.team {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 56rem;
}
.polaroid {
  background: var(--paper);
  border: var(--rule);
  box-shadow: var(--hard);
  padding: 0.9rem 0.9rem 1.4rem;
  transition: transform 0.18s ease;
}
.polaroid:nth-child(1) { transform: rotate(-2.2deg); }
.polaroid:nth-child(2) { transform: rotate(1.8deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .polaroid, .polaroid:hover { transform: none; transition: none; }
}
.polaroid img {
  display: block;
  width: 100%;
  /* The width/height attributes land as presentational hints, which would pin a
     fixed height and make aspect-ratio a no-op. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: #ddd7cc;
}
.polaroid h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
}
.polaroid .role {
  font-weight: 600;
  color: var(--coral);
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}
.polaroid p.bio {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact {
  background: var(--lime);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.contact h2 { font-size: clamp(2rem, 6vw, 3.6rem); }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: #cdc6ba;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  font-size: 0.9rem;
}
.foot__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.foot h4 {
  font-family: 'Bricolage', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.75rem;
}
.foot a { color: var(--cream); }
.foot__bar {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #3a342c;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.is-in { opacity: 1; transform: none; }
}
