@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #eeece5;
  --paper-deep: #e6e3d9;
  --ink: #1e2620;
  --ink-soft: #3a4239;
  --muted: #5c5747;
  --rule: #c7c1b0;
  --accent: #8a3324;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

.site-header {
  padding: 40px 0 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.hero-mark {
  opacity: 0;
  animation: fade-in-mark 1s ease-out 0.4s forwards;
}

.hero-mark svg {
  display: block;
}

.hero-mark circle {
  transform-origin: 100px 100px;
}

@keyframes fade-in-mark {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    order: -1;
    width: 100px;
  }
  .hero-mark svg {
    width: 100px;
    height: 100px;
  }
}

.hero p.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 34ch;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.05s forwards;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 13ch;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.15s forwards;
}

.hero .lede {
  max-width: 50ch;
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.3s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero p.kicker,
  .hero h1,
  .hero .lede,
  .hero-mark {
    animation: none;
    opacity: 1;
  }
}

/* Rule divider */

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Two-column split */

.split {
  padding: 64px 0;
}

.split-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 44px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 44px;
}

.split-col {
  padding-bottom: 4px;
}

.split-divider {
  background: var(--rule);
}

.split-col h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 14px;
}

.split-col p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  max-width: 40ch;
}

.split-col .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 36px 0;
  }
  .split-divider {
    display: none;
  }
}

/* Values pull-quote */

.values {
  padding: 64px 0;
}

.values blockquote {
  margin: 0;
  padding-left: 26px;
  border-left: 2px solid var(--accent);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}

.values cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  padding-left: 28px;
}

/* Contact CTA on homepage */

.contact-cta {
  padding: 64px 0 90px;
}

.contact-link {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--ink);
}

/* Contact page */

.contact {
  padding: 56px 0 100px;
}

.contact h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 14px;
}

.contact p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 44ch;
}

/* Idea form */

.idea-form {
  max-width: 440px;
  margin: 0 0 24px;
}

.field-row {
  margin-bottom: 20px;
}

.field-row label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-row input,
.field-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}

.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.idea-form button {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.idea-form button:hover {
  background: var(--accent);
}

.idea-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.is-success {
  color: var(--ink);
}

.form-status.is-error {
  color: var(--accent);
}

.contact-alt {
  font-size: 15px;
  color: var(--muted);
  max-width: none;
}

.contact-alt a {
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 28px 0 48px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav a {
  font-size: 14px;
  color: var(--muted);
  margin-left: 20px;
}

.site-footer nav a:first-child {
  margin-left: 0;
}

/* Privacy page */

.legal {
  padding: 56px 0 100px;
}

.legal h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 48px;
}

.legal h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 66ch;
}

.legal ul {
  padding-left: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 15px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 404 page */

.not-found {
  padding: 120px 0;
  text-align: left;
}

.not-found h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 50px);
  margin: 0 0 16px;
}

.not-found p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 30px;
  max-width: 44ch;
}
