:root {
  --paper: #f4f0e8;
  --ink: #141414;
  --ink-muted: #4a4844;
  --ink-faint: #7a7770;
  --rule: rgba(20, 20, 20, 0.12);
  --accent: #1a4d3e;
  --accent-hover: #143d32;
  --error: #8b2e2e;
  --success: #1a4d3e;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem) 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Masthead */
.masthead {
  margin-bottom: clamp(2.5rem, 8vw, 4rem);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.masthead-rule {
  margin-top: 0.75rem;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  animation: drawRule 0.9s var(--ease-out) forwards;
}

@keyframes drawRule {
  to {
    transform: scaleX(1);
  }
}

/* Content */
.headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

.lede {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.services {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.services li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink);
}

/* Staggered entrance */
.anim {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.75s var(--ease-out) forwards;
  animation-delay: calc(0.15s + (var(--i, 0) * 0.08s));
}

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

/* Notify form */
.notify-label {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.field-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-row input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.field-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.15);
}

.btn-notify {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-notify:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-notify:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-notify:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

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

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

.footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
  }

  .btn-notify {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead-rule {
    animation: none;
    transform: scaleX(1);
  }

  .anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
