@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400&family=Inter:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --background: #fafafa;
  --text: #030303;
  --muted: #636363;
  --display-font: "Bricolage Grotesque", Georgia, "Times New Roman", serif;
  --ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--ui-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  color: var(--text);
}

.page {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.intro {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 768px);
  min-width: 0;
  min-height: 0;
  padding: 7vh 6vw 5vh;
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: var(--display-font);
  font-size: clamp(1.85rem, 4.2vw, 3.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.statement {
  max-width: 672px;
  margin-top: 3.5vh;
  color: rgba(3, 3, 3, 0.85);
  font-family: var(--display-font);
  font-size: clamp(0.94rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: -0.01em;
}

.statement span {
  display: block;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 5vh;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.profile-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 160ms ease;
}

.profile-links span {
  transition: transform 160ms ease;
}

.profile-links a:hover span,
.profile-links a:focus-visible span {
  transform: translate(2px, -2px);
}

.contact {
  margin-top: 5vh;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.contact span {
  color: var(--muted);
}

.contact a {
  transition: opacity 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  opacity: 0.7;
}

.footer {
  width: 100%;
  padding: 0 6vw 4vh;
}

.footer-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.legal-page {
  grid-template-rows: minmax(0, 1fr);
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-content {
  display: flex;
  min-height: 100dvh;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 6vw;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(320px, 1.22fr);
  gap: 6vw;
  width: min(100%, 1120px);
}

.legal-section {
  min-width: 0;
}

.legal-section h1,
.legal-section h2 {
  margin: 0 0 4vh;
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.legal-section p,
.legal-section address {
  margin: 0;
  color: rgba(3, 3, 3, 0.85);
  font-family: var(--ui-font);
  font-size: clamp(0.76rem, 1vw, 0.94rem);
  font-style: normal;
  line-height: 1.48;
  letter-spacing: 0.005em;
}

.legal-section p + p,
.legal-section address + .legal-kicker {
  margin-top: 2.1vh;
}

.legal-kicker {
  color: var(--muted) !important;
}

.legal-kicker + p,
.legal-kicker + address {
  margin-top: 0.65vh;
}

.legal-section a {
  transition: opacity 160ms ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .page:not(.legal-page) {
    display: block;
  }

  .intro {
    min-height: 100%;
    padding-top: 5vh;
    padding-bottom: calc(8vh + 32px + env(safe-area-inset-bottom));
  }

  .profile-links {
    gap: 10px 28px;
  }

  .footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: calc(3vh + env(safe-area-inset-bottom));
  }

  .footer-menu {
    justify-content: flex-start;
    letter-spacing: 0.18em;
  }

  .legal-content {
    justify-content: flex-start;
    padding-top: 4vh;
    padding-bottom: 4vh;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 4vh;
  }

  .legal-section h1,
  .legal-section h2 {
    margin-bottom: 2vh;
  }

  .legal-section p,
  .legal-section address {
    font-size: 0.78rem;
    line-height: 1.42;
  }
}

@media (max-width: 360px) {
  .statement {
    font-size: 0.875rem;
  }
}
