/* La editorial — Home (also used by 404.html) */

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

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

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

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

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "SuisseIntl-Ultralight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 1.25vw, 22.5px); /* 18px at 1440, capped at the 1800px size */
  font-weight: 400;
  line-height: 1.15;
}

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

p,
h1,
h2 {
  margin: 0;
  font-weight: 400;
}

/* ---------- Page ---------- */

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 8px;
  transition: transform 0.5s;
}

.page.is-pushed {
  transform: translateY(250px);
}

.content {
  width: 80%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.logo {
  font-family: "SuisseIntl-Thin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.8em;
  line-height: 1.4;
  color: #000;
}

.description {
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.services {
  font-size: 1.25em;
  line-height: 1.8;
  color: #000;
}

.content > * + .services,
.content > * + .spaced {
  margin-top: 80px;
}

.link {
  border-bottom: 1px solid #666;
}

.button {
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid #999;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  cursor: pointer;
}

.button:hover,
.link:hover {
  color: #000;
}

/* ---------- Contact panel ("Say hello") ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 39px 5%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s, visibility 0s 0.5s;
}

.panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.5s;
}

.panel__inner {
  position: relative;
  display: grid;
  gap: 1.5em 4%;
  padding-right: 3em;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.panel__title {
  font-family: "SuisseIntl-Thin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: normal;
}

.panel a {
  border-bottom: 1px solid #999;
}

.panel__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.1em;
  height: 1.1em;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: inherit;
  opacity: 0.6;
  cursor: pointer;
}

.panel__close:hover,
.panel__close:focus-visible {
  opacity: 0.9;
}

.panel__close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* ---------- Breakpoints (same steps as the original layout) ---------- */

@media (max-width: 468px) {
  .content {
    width: 75%;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .content > * + .services,
  .content > * + .spaced {
    margin-top: 30px;
  }
}

@media (min-width: 550px) {
  .panel__inner {
    grid-template-columns: 1fr 1fr;
    padding-right: 0;
  }

  .panel__address {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .content {
    width: 88%;
  }

  .panel {
    height: 560px;
  }
}

@media (min-width: 1000px) {
  .panel__inner {
    grid-template-columns: repeat(3, 1fr);
    padding-right: 0;
  }

  .panel__address {
    grid-column: 3;
  }
}

@media (min-width: 1020px) {
  .content {
    width: 85%;
  }
}

@media (min-width: 1366px) {
  .content {
    width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .panel,
  .panel.is-open,
  .overlay,
  .overlay.is-on {
    transition: none;
  }
}
