:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-deep: #ece4d8;
  --surface: rgba(255, 251, 246, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(34, 28, 23, 0.08);
  --line-strong: rgba(34, 28, 23, 0.14);
  --text: #1f1a16;
  --muted: #6d6156;
  --accent: #2f5a53;
  --accent-pressed: #244740;
  --shadow: 0 24px 60px rgba(71, 55, 38, 0.12);
  --shadow-soft: 0 14px 30px rgba(71, 55, 38, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --content-width: 980px;
  --copy-width: 31rem;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia,
    serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 34%),
    radial-gradient(circle at bottom, rgba(47, 90, 83, 0.05), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  width: min(100%, var(--content-width));
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.lead,
.support {
  margin: 0;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.32rem);
  line-height: 1.5;
}

.support {
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-link-row {
  margin: 0;
}

.legal-link {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 28, 23, 0.16);
}

.legal-link:hover {
  color: var(--text);
  border-bottom-color: rgba(34, 28, 23, 0.34);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button.primary {
  color: #f8f6f2;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.84);
}

.page-home .shell {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.hero {
  display: grid;
  gap: 28px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.page-home h1 {
  font-size: clamp(3.5rem, 10vw, 6.35rem);
}

.hero-copy .lead {
  max-width: var(--copy-width);
}

.hero-copy .support {
  max-width: 25rem;
}

.art-panel {
  align-self: stretch;
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(252, 247, 240, 0.92)),
    #f6f0e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.art-window {
  flex: 1 1 auto;
  min-height: 236px;
  border-radius: 22px;
  border: 1px solid rgba(34, 28, 23, 0.07);
  background:
    linear-gradient(180deg, rgba(245, 239, 230, 0.94), rgba(238, 228, 214, 0.92));
  padding: 14px;
  display: grid;
  place-items: center;
}

.hero-icon {
  width: min(100%, 320px);
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(50, 37, 26, 0.12);
}

.art-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-app .shell {
  max-width: 540px;
  border-radius: 28px;
  padding: 24px;
}

.fallback {
  display: grid;
  gap: 18px;
}

.page-app h1 {
  font-size: clamp(2.5rem, 10vw, 4rem);
}

.page-app .lead {
  max-width: 24rem;
}

@media (min-width: 760px) {
  .page {
    padding: 32px;
  }

  .page-home .shell {
    padding: 28px;
  }

  .hero {
    gap: 34px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: 34px;
  }

  .art-panel {
    min-height: 420px;
    padding: 26px;
  }

  .art-window {
    min-height: 316px;
    padding: 18px;
  }
}
