:root {
  --background: #faf9f7;
  --foreground: #1c1917;
  --muted: #f5f3f0;
  --muted-foreground: #6b615c;
  --card: #ffffff;
  --border: #e7e5e4;
  --primary: #292524;
  --primary-foreground: #faf9f7;
  --accent: #c2956a;
  --accent-foreground: #ffffff;
  --accent-text: #8b5a2b;
  --ring: #a8a29e;
  --radius: 0.625rem;
  --shadow-color: 30 6% 50%;
  --shadow-sm: 0 1px 2px -1px hsl(var(--shadow-color) / 0.06);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Geist,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

a {
  color: var(--foreground);
  text-underline-offset: 0.25em;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

a:hover {
  color: var(--accent-text);
}

a:focus-visible {
  border-radius: calc(var(--radius) / 2);
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

::selection {
  background-color: oklch(0.75 0.08 60 / 0.25);
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-x: clip;
  padding: clamp(1.25rem, 4vw, 2rem);
  isolation: isolate;
}

.page::before {
  position: absolute;
  inset: -18rem -8rem auto;
  z-index: -2;
  height: min(42rem, 72svh);
  content: "";
  background: radial-gradient(
    50% 45% at 50% 58%,
    oklch(0.82 0.06 60 / 0.18),
    transparent
  );
}

.page::after {
  position: absolute;
  inset: auto 8% 8%;
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 35%, transparent),
    transparent
  );
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 9vh, 6rem);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--foreground);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 clamp(1rem, 3vw, 1.5rem);
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1e6dc;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-text);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.headline {
  max-width: 46rem;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
  overflow: visible;
  padding-bottom: 0.08em;
  text-wrap: balance;
}

.headline-highlight {
  display: inline-block;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), #a16207);
  background-clip: text;
  color: transparent;
  line-height: 1.08;
  padding-bottom: 0.06em;
  overflow-wrap: anywhere;
  -webkit-background-clip: text;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .headline-highlight {
    background: none;
    color: var(--accent-text);
  }
}

.supporting-copy {
  max-width: 38rem;
  margin: clamp(1rem, 3vw, 1.25rem) auto 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.contact-line {
  max-width: 100%;
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.contact-line a {
  color: var(--foreground);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  color: var(--accent-text);
}

.footer-note {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: break-word;
}

.footer-note p {
  margin: 0;
}

@media (max-width: 640px) {
  .page {
    padding: 1.5rem 1rem;
  }

  .hero {
    width: min(100%, 28rem);
    padding-top: clamp(3rem, 10vh, 4rem);
    padding-bottom: clamp(2.5rem, 8vh, 3.5rem);
  }

  .headline {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
    letter-spacing: -0.048em;
  }

  .supporting-copy {
    line-height: 1.65;
  }
}

@media (max-width: 380px) {
  .page {
    padding-inline: 0.875rem;
  }

  .headline {
    font-size: clamp(2.15rem, 12vw, 2.8rem);
    letter-spacing: -0.04em;
  }

  .badge {
    font-size: 0.7rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .page {
    padding-block: 1rem;
  }

  .hero {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }

  .brand,
  .badge {
    margin-bottom: 0.75rem;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .supporting-copy {
    margin-top: 0.75rem;
    line-height: 1.55;
  }

  .contact-line {
    margin-top: 1rem;
  }
}
