:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --paper-deep: #eceee7;
  --ink: #171815;
  --muted: #66695f;
  --line: #d6d9cf;
  --line-strong: #aeb4a6;
  --field: #fffffb;
  --focus: #4f684b;
  --error: #8b2f24;
  --success: #3c6138;
  --shadow: 0 26px 80px rgba(23, 24, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 250, 0.9), transparent 34rem),
    linear-gradient(135deg, var(--paper) 0%, #fbfbf6 48%, var(--paper-deep) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.landing-page {
  display: grid;
  grid-template-rows: 1fr auto;
}

.landing-shell {
  display: grid;
  align-items: center;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 72px 0 48px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
}

.intro {
  max-width: 480px;
}

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 7.6rem);
  font-weight: 680;
  line-height: 0.92;
  letter-spacing: 0;
}

.signup-form {
  margin-top: clamp(44px, 7vw, 72px);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 480px);
}

input,
button {
  min-height: 50px;
  border-radius: 999px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field) 90%, transparent);
  color: var(--ink);
  padding: 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--field);
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #2a2c26;
  border-color: #2a2c26;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.site-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  min-height: 1.35em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-message[data-state="error"] {
  color: var(--error);
}

.form-message[data-state="success"] {
  color: var(--success);
}

.quiet-gallery {
  position: relative;
  min-height: clamp(440px, 55vw, 660px);
  perspective: 1000px;
}

.frame,
.plane {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(255, 255, 250, 0.52);
  box-shadow: var(--shadow);
}

.frame {
  border-radius: 4px;
}

.frame::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(174, 180, 166, 0.55);
  content: "";
}

.frame-a {
  top: 7%;
  right: 4%;
  width: 54%;
  aspect-ratio: 4 / 5;
  transform: rotate(3deg);
}

.frame-b {
  left: 2%;
  top: 24%;
  width: 46%;
  aspect-ratio: 1 / 1.25;
  transform: rotate(-5deg);
}

.frame-c {
  right: 18%;
  bottom: 4%;
  width: 44%;
  aspect-ratio: 5 / 4;
  transform: rotate(-1deg);
}

.plane {
  border-radius: 999px;
  box-shadow: none;
}

.plane-a {
  left: 32%;
  top: 10%;
  width: 18%;
  aspect-ratio: 1;
  background: rgba(79, 104, 75, 0.12);
}

.plane-b {
  right: 3%;
  bottom: 26%;
  width: 22%;
  aspect-ratio: 1;
  background: rgba(214, 217, 207, 0.55);
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-header {
  width: min(100% - 40px, 840px);
  margin: 0 auto;
  padding: 36px 0 0;
}

.wordmark {
  font-weight: 760;
  text-decoration: none;
}

.policy-shell {
  width: min(100% - 40px, 840px);
  margin: 0 auto;
  padding: 76px 0 96px;
}

.policy {
  max-width: 760px;
}

.policy h1 {
  margin-bottom: 34px;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.policy h2 {
  margin: 42px 0 12px;
  font-size: 1rem;
}

.policy p,
.policy li {
  color: #34362f;
  font-size: 1.02rem;
  line-height: 1.72;
}

.policy ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 760px) {
  .landing-shell {
    align-items: start;
    padding-top: 58px;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .quiet-gallery {
    min-height: 270px;
    order: -1;
  }

  .frame-a {
    width: 48%;
    right: 8%;
  }

  .frame-b {
    width: 42%;
    top: 20%;
  }

  .frame-c {
    width: 38%;
    right: 28%;
  }
}

@media (max-width: 520px) {
  .landing-shell,
  .site-footer,
  .policy-header,
  .policy-shell {
    width: min(100% - 28px, 1120px);
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.9rem);
  }
}

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