@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600&display=swap");

:root {
  --paper: #f1eee5;
  --ink: #191613;
  --muted: #625d56;
  --red: #ff3b12;
  --line: rgba(24, 21, 18, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --wordmark: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad: clamp(1.25rem, 3.6vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

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

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

::selection {
  color: var(--paper);
  background: var(--red);
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

/* Homepage */
.home {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.home-header,
.site-footer {
  display: flex;
  margin: 0 var(--pad);
  align-items: center;
  justify-content: space-between;
}

.home-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.home-header .brand {
  color: var(--red);
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  letter-spacing: 0.12em;
}

.brand,
.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--wordmark);
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: clamp(2rem, 2.7vw, 2.75rem);
  height: clamp(2rem, 2.7vw, 2.75rem);
  flex: 0 0 auto;
  object-fit: contain;
}

.home-main {
  display: flex;
  flex: 1;
}

.hero {
  display: grid;
  width: 100%;
  min-height: calc(100svh - 151px);
  padding: clamp(3rem, 7vw, 7.5rem) var(--pad) clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 4rem;
}

.hero-copy {
  max-width: 1050px;
}

.hero-title {
  margin: 0;
  max-width: 1000px;
  font-family: var(--mono);
  font-size: clamp(2rem, 5.8vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-title em {
  color: var(--red);
  font-weight: 400;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.hero-contact {
  align-self: end;
}

.contact-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  align-items: center;
  gap: 2.5rem;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-button span {
  transition: transform 160ms ease;
}

.contact-button:hover {
  border-color: var(--red);
  background: var(--red);
}

.contact-button:hover span {
  transform: translate(3px, -3px);
}

.site-footer {
  min-height: 69px;
  border-top: 1px solid var(--line);
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  gap: 1.6rem;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
}

.site-header {
  display: flex;
  min-height: 82px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.text-link {
  display: inline-flex;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.legal-main {
  display: grid;
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(180px, 1fr) minmax(0, 4fr);
}

.legal-sidebar {
  padding-top: 0.7rem;
}

.legal-eyebrow,
.legal-updated,
.legal-footer {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-eyebrow {
  margin: 0;
  color: var(--red);
}

.legal-sidebar > a {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.legal-updated {
  margin: 0 0 5rem;
  color: var(--muted);
}

.legal-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.legal-section p {
  margin: 0;
  color: #49453f;
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-footer {
  display: flex;
  padding: 1.4rem var(--pad);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .home-header,
  .site-header {
    min-height: 70px;
  }

  .hero {
    min-height: calc(100svh - 131px);
    padding-top: 4rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.4vw, 3.8rem);
  }

  .site-footer {
    min-height: 61px;
  }

  .site-footer > span:last-child {
    display: none;
  }

  .legal-main {
    grid-template-columns: 1fr;
    row-gap: 4rem;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
