/* Offline fallback only. The main font loads from Google Fonts (see the <link> in index.html). */
@font-face {
  font-family: "Zalando Sans Local";
  src: url(../fonts/zalando.woff) format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8f8f8f;
  --link: #bdbdbd;
  --line: #262626;
  --soft: #111;
  --stroke: #333;
  --font:
    "Zalando Sans", "Zalando Sans Local", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --pad: 40px;
  --cols: 340fr 374fr 161fr 163fr 322fr;
  --u: calc(min(100vw, 1440px)/1440);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.calm {
  scroll-behavior: auto;
}

html.calm *,
html.calm *::before,
html.calm *::after {
  transition: none !important;
  animation: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.arr {
  display: inline-block;
  transition: transform 0.25s;
}

a:hover .arr-ne,
button:hover .arr-ne {
  transform: translate(2px, -2px);
}

a:hover .arr-d {
  transform: translateY(3px);
}

a:hover .arr-u {
  transform: translateY(-3px);
}

a:hover .arr-r,
button:hover .arr-r {
  transform: translateX(4px);
}

/* HEADER */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 60px;
  padding: 3px calc(max(var(--pad), env(safe-area-inset-right, 0px)) - 1px) 0
    calc(max(var(--pad), env(safe-area-inset-left, 0px)) - 1px);
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  z-index: 5;
}

.top .logo {
  grid-column: 1;
  color: var(--fg);
}

.top .current {
  grid-column: 2;
  color: var(--muted);
}

/* FOOTER */
.site-foot {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: calc(80.5 * var(--u))
    calc(max(var(--pad), env(safe-area-inset-right, 0px)) - 1px) 0
    calc(max(var(--pad), env(safe-area-inset-left, 0px)) - 1px);
}

.foot-top {
  container-type: inline-size;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: start;
}

.foot-label {
  grid-column: 1;
  margin: 0;
  padding-right: 12px;
  color: var(--muted);
}

.foot-mail {
  grid-column: 2/-1;
  display: block;
  margin: calc(-5.5 * var(--u)) 0 0 -0.077em;
  font-size: 6.125cqw;
  line-height: 1;
  letter-spacing: 0.0069em;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.foot-mail:hover {
  opacity: 0.7;
}

.foot-links {
  display: grid;
  grid-template-columns: var(--cols);
  margin-top: calc(87 * var(--u));
  padding-bottom: calc(56.9 * var(--u));
  border-bottom: 1px solid var(--line);
  margin-inline: calc(
      -1 * max(var(--pad), env(safe-area-inset-left, 0px)) + 1px
    )
    calc(-1 * max(var(--pad), env(safe-area-inset-right, 0px)) + 1px);
  padding-inline: calc(max(var(--pad), env(safe-area-inset-left, 0px)) - 1px)
    calc(max(var(--pad), env(safe-area-inset-right, 0px)) - 1px);
}

.foot-links a {
  justify-self: start;
  white-space: nowrap;
  color: var(--link);
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--fg);
}

.foot-links a {
  grid-row: 1;
}

.foot-links a:nth-child(1) {
  grid-column: 1;
}

.foot-links a:nth-child(2) {
  grid-column: 2;
}

.foot-links a.to-top {
  grid-column: 5;
  grid-row: 1;
  justify-self: end;
}

.foot-bottom {
  display: grid;
  grid-template-columns: var(--cols);
  padding: calc(43.3 * var(--u)) 0 calc(35.6 * var(--u));
  color: var(--muted);
}

.foot-bottom > :nth-child(1) {
  grid-column: 1;
}

.foot-bottom > :nth-child(2) {
  grid-column: 2/5;
}

.foot-bottom > :nth-child(3) {
  grid-column: 5;
  justify-self: end;
  text-align: right;
}

/* same breakpoints as the portfolio: socials stack at 1000, padding shrinks at 760, hero stacks at 600 */
@media (max-width: 760px) {
  :root {
    --pad: 20px;
  }
}

@media (max-width: 600px) {
  .top .current {
    display: none;
  }

  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-foot {
    padding-top: 48px;
  }

  .foot-top {
    display: block;
  }

  .foot-label {
    margin-bottom: 16px;
  }

  .foot-mail {
    font-size: max(22px, 6.125cqw);
  }

  .foot-links {
    margin-top: 48px;
    padding-bottom: 40px;
  }

  .foot-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 0 36px;
  }

  .foot-bottom > :nth-child(3) {
    justify-self: auto;
    text-align: left;
  }
}
