/* La editorial — Works */

@font-face {
  font-family: "SuisseIntl-Light";
  src: url("/assets/style/webfont/SuisseIntl-Light-WebM.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Founders Grotesk";
  src: url("/works/fonts/FoundersGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e6e5e4;
  --ink: #000;
  --brown: #36302c;
  --line: #000;
  --gutter: 90px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SuisseIntl-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 1.111vw, 20px); /* 16px at 1440, capped at the 1800px size */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p {
  margin: 0;
}

.heading {
  margin: 0;
  font-family: "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.kicker {
  font-size: clamp(13px, 1.18vw, 21.25px); /* 17px at 1440 */
  line-height: 1.75;
  text-transform: uppercase;
}

.title {
  font-size: clamp(22px, 2.083vw, 37.5px); /* 30px at 1440 */
  line-height: 1.27;
}

.upper {
  text-transform: uppercase;
}

.container {
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 6vw;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--brown) url("/works/img/hero.jpg") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  opacity: 0.5;
}

.hero > * {
  position: relative;
}

.hero__headline {
  margin: clamp(28px, 4.4vw, 64px) 0 0;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(30px, 3.75vw, 67.5px); /* 54px at 1440 */
  line-height: 1.1;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(90px + 9.4vw);
  min-width: 175px;
  padding: 1.3vw;
  transform: translate(-50%, 55%);
}

.hero__scroll img {
  width: 100%;
  animation: spin 14s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Intro (city guides) ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6.25vw 4vw 6.3vw;
  text-align: center;
}

.intro__name {
  font-size: clamp(24px, 2.5vw, 45px); /* 36px at 1440 */
  line-height: 1.39;
}

.intro__client {
  margin-top: 16px;
}

.intro__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.1em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro__media {
  padding: 3.25vw;
  border-left: 1px solid var(--line);
}

.slides {
  position: relative;
  aspect-ratio: 1288 / 1536;
  overflow: hidden;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slides img.is-active {
  opacity: 1;
}

/* ---------- Paper ---------- */

.paper {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.paper__text {
  width: 75%;
  max-width: 1020px;
  margin: 30px auto 0;
}

.paper__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  margin: clamp(40px, 5vw, 74px) 15% 0;
  padding: 0;
  list-style: none;
}

.paper__grid a {
  display: block;
  overflow: hidden;
}

.paper__grid img {
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 1, 0.22, 1);
}

.paper__grid a:hover img,
.paper__grid a:focus-visible img {
  transform: scale(1.07);
}

.button {
  display: inline-block;
  margin: clamp(56px, 7.5vw, 110px) 0 0;
  padding: 0.5em 3em;
  border: 2px solid var(--brown);
  border-radius: 4px;
  color: var(--brown);
  font-family: "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 0.833vw, 15px); /* 12px at 1440 */
  line-height: 1.67;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--brown);
  color: #fff;
}

/* ---------- Contact + footer ---------- */

.contact {
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(80px, 10vw, 150px);
}

.contact p {
  margin-top: 30px;
}

.footer {
  padding: 20px var(--gutter);
  border-top: 1px solid #666;
  text-align: center;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 1, 0.22, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 999px) {
  :root {
    --gutter: 40px;
  }

  .paper__grid {
    margin-left: 5%;
    margin-right: 5%;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 690px) {
  :root {
    --gutter: 28px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro__text {
    gap: 56px;
    padding: 64px 28px;
  }

  .intro__media {
    padding: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .intro__tags {
    gap: 0 1.4em;
  }

  .paper__text {
    width: 100%;
  }

  .paper__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 40px 5% 0;
  }
}

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

  .hero__scroll img {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slides img,
  .paper__grid img {
    transition: none;
  }
}
