:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --secondary: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --focus: #8a5a00;
  --glow: rgba(217, 154, 36, 0.14);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, var(--glow), transparent 38rem),
    var(--background);
}

main {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vw, 7rem) clamp(1.25rem, 6vw, 4rem);
}

.hero {
  width: min(100%, 58rem);
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-block-end: clamp(2.5rem, 7vw, 5rem);
}

.identity-logo {
  width: clamp(3.75rem, 8vw, 5.5rem);
  height: auto;
  flex: 0 0 auto;
  border-radius: 0.75rem;
}

h1,
p {
  margin: 0;
}

.brand-name {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  line-height: 1.25;
  letter-spacing: 0.22em;
  font-weight: 700;
}

h1 {
  max-width: 19ch;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7.4vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.detail {
  max-width: 42rem;
  margin-block-start: clamp(2rem, 5vw, 3.5rem);
  color: var(--secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

footer {
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0d10;
    --surface: #171a20;
    --text: #f8fafc;
    --secondary: #aab3c2;
    --muted: #7c8798;
    --border: #2a303a;
    --focus: #f0b33c;
    --glow: rgba(217, 154, 36, 0.18);
  }
}

@media (max-width: 360px) {
  main {
    padding-inline: 1rem;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }
}

@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;
  }
}

@media (forced-colors: active) {
  .identity-logo {
    border: 2px solid CanvasText;
    forced-color-adjust: none;
  }
}
