:root {
  --paper: #f3f2ec;
  --white: #fbfaf6;
  --ink: #000000;
  --muted: #000000;
  --line: #d5d7d2;
  --accent: #e7683e;
  --deep: #243132;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.layout-container {
  width: min(1840px, calc(100% - 112px));
  margin-inline: auto;
}

.hero-section {
  --hero-title-size: clamp(64px, 6.8vw, 138px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.82fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: clamp(28px, 4vw, 82px);
  row-gap: clamp(12px, 1.2vw, 24px);
  min-height: 0;
  padding-block: 24px 54px;
  overflow: visible;
}

.hero-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  background-image:
    linear-gradient(rgba(32, 42, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 42, 43, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
  content: "";
}

.hero-section__logo {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: clamp(340px, 36vw, 740px);
  max-width: 100%;
  height: auto;
  margin: 0;
}

.hero-section__title {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

h1 {
  margin: 0;
}

.hero-section h1 {
  max-width: 100%;
  font-size: var(--hero-title-size);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 680;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-section__art {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  width: min(100%, 850px);
  margin-top: 8px;
}

.hero-section__image {
  display: block;
  width: 100%;
  height: auto;
  justify-self: end;
  align-self: end;
  mix-blend-mode: multiply;
}

.hero-section__copy {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: none;
  margin: 6px 0 0;
  color: #000000;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  gap: 20px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button .button__arrow {
  color: var(--accent);
  font-size: 16px;
}

.contact-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 56px;
  padding-block: 64px 68px;
  color: var(--white);
}

.contact-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--deep);
  content: "";
}

.contact-section h2 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.99;
  font-weight: 620;
  letter-spacing: -0.065em;
}

.contact-section__copy {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-section__copy p {
  max-width: 420px;
  margin: 0;
  color: #b4bfbd;
  font-size: 14px;
  line-height: 1.8;
}

.contact-section__details {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: #d2d9d7;
  font-size: 12px;
  line-height: 1.6;
}

.contact-section__details a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.contact-section__button {
  margin-top: 22px;
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legal-notice {
  position: relative;
  display: inline-block;
  letter-spacing: 0;
}

.legal-notice summary {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: 10px var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.legal-notice summary::-webkit-details-marker {
  display: none;
}

.legal-notice summary:hover,
.legal-notice[open] summary {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-notice__panel {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(290px, 78vw);
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  font: 12px/1.65 var(--sans);
  letter-spacing: 0;
}

.legal-notice__panel strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
}

.legal-notice__panel a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .layout-container {
    width: min(100% - 40px, 620px);
  }

  .hero-section {
    --hero-title-size: clamp(52px, 11vw, 78px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 14px;
    padding-block: 24px 38px;
  }

  .hero-section__logo {
    width: min(82vw, 480px);
  }

  .hero-section__art {
    grid-column: 1;
    grid-row: 3;
    width: min(100%, 560px);
    justify-self: end;
    margin: -2px 0 0;
  }

  .hero-section__copy {
    grid-column: 1;
    grid-row: 4;
    margin-top: 0;
    font-size: 15px;
  }

  .contact-section {
    display: block;
    padding-block: 48px 52px;
  }

  .contact-section__copy {
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .hero-section__image {
    justify-self: center;
    align-self: center;
    transform: none;
  }
}

@media (max-width: 520px) {
  .layout-container {
    width: calc(100% - 36px);
  }

  .hero-section {
    --hero-title-size: clamp(46px, 12vw, 62px);
  }

  .hero-section__logo {
    width: min(88vw, 380px);
  }

  .hero-section__art {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
