:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --paper-soft: #ebe4d8;
  --text: #171411;
  --muted: rgba(23, 20, 17, 0.68);
  --line: rgba(23, 20, 17, 0.14);
  --glass: rgba(247, 243, 236, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow: 0 22px 70px rgba(49, 37, 25, 0.12);
  --serif: "Iowan Old Style", "Bodoni 72", "Cormorant Garamond", Georgia, serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 20, 17, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.72), transparent 34rem),
    linear-gradient(135deg, var(--paper) 0%, #faf8f2 48%, var(--paper-soft) 100%);
  background-size:
    clamp(76px, 8vw, 132px) clamp(76px, 8vw, 132px),
    clamp(76px, 8vw, 132px) clamp(76px, 8vw, 132px),
    auto,
    auto;
}

.page-shell::before {
  content: "";
  position: fixed;
  right: clamp(24px, 6vw, 88px);
  bottom: clamp(24px, 6vw, 88px);
  z-index: -1;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  opacity: 0.5;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(78px, 8vw, 108px);
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.48);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding:
    clamp(132px, 15vh, 184px)
    clamp(24px, 5vw, 76px)
    clamp(58px, 9vh, 112px);
}

.hero-copy {
  display: grid;
  gap: clamp(18px, 2.6vh, 26px);
  max-width: min(980px, 82vw);
  animation: reveal-up 900ms cubic-bezier(0.2, 0.75, 0.18, 1) both;
}

h1,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 12vw, 11.8rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.55rem);
  font-weight: 430;
  line-height: 1.45;
  letter-spacing: 0;
}

.eyebrow {
  color: rgba(23, 20, 17, 0.52);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  font-size: clamp(4rem, 10vw, 10rem);
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(23, 20, 17, 0.18);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.login-link:hover {
  border-color: rgba(23, 20, 17, 0.34);
  background: var(--glass-strong);
  transform: translateY(-2px);
}

.login-link:focus-visible {
  outline: 3px solid rgba(23, 20, 17, 0.32);
  outline-offset: 4px;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 740px) {
  .page-shell::before {
    right: 18px;
    bottom: 44px;
    width: 68vw;
  }

  .site-header {
    min-height: 74px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .login-link--top {
    min-width: 94px;
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 118px 18px 44px;
  }

  .hero-copy {
    max-width: 100%;
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.2rem);
    white-space: nowrap;
  }

  .hero-copy p {
    max-width: 22rem;
    font-size: 1.06rem;
  }

}

@media (max-width: 420px) {
  .brand {
    font-size: 1.06rem;
  }

  .login-link--top {
    min-width: 84px;
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.3rem, 11.5vw, 3.15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
