@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #d6c2a3;
  --ink: #1c1812;
  --muted: #4a4034;
  --gold: #c4963a;
  --gold-deep: #ab8243;
  --cream: #f3ebda;
  --shadow: rgba(28, 24, 18, 0.42);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 4;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.studio {
  min-height: 100dvh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background-color: var(--paper);
}

.poster {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.chrome {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 5vw, 36px);
}

.brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(28, 24, 18, 0.28);
}

.brand-bar {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform-origin: center;
  animation: bar-draw 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mark {
  margin: 0;
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(28, 24, 18, 0.35);
}

.sheet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  max-width: 34rem;
}

.sheet h1 {
  margin: 0;
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--ink);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: 0 10px 0 var(--gold-deep), 0 18px 28px var(--shadow);
}

.cta:hover {
  background: #d4a84a;
}

.cta:active {
  transform: translateY(3px);
  box-shadow: 0 7px 0 var(--gold-deep), 0 10px 16px var(--shadow);
}

.ads {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.ads a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.ads a:hover {
  color: var(--gold-deep);
}

@keyframes bar-draw {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (min-width: 800px) {
  .studio {
    padding: 24px;
    background-image: url("assets/berlin/studio.webp");
    background-size: cover;
    background-position: center;
  }

  .poster {
    width: min(540px, calc(92dvh * 3 / 4));
    min-height: 0;
    height: 92dvh;
    aspect-ratio: 3 / 4;
    box-shadow:
      0 2px 0 rgba(243, 235, 218, 0.35),
      0 22px 48px var(--shadow);
  }

  .chrome {
    min-height: 100%;
    height: 100%;
    padding: 28px 32px 32px;
  }

  .sheet h1 {
    font-size: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-bar {
    animation: none;
  }

  .cta:active {
    transform: none;
  }
}
