:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #20251f;
  background: #f7f7f2;
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid #deded5;
  padding-bottom: 1rem;
}

a {
  color: inherit;
}

.header-left,
.header-right,
.site-links,
.account-links {
  display: flex;
  align-items: center;
}

.header-left,
.header-right {
  gap: 1.5rem;
}

.site-links,
.account-links {
  gap: 1rem;
  font-size: 0.9rem;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav form {
  margin: 0;
}

.site-header .nav-button {
  width: auto;
  margin: 0;
  padding: 0;
  color: #385b42;
  background: none;
  font: inherit;
  text-decoration: underline;
}

.site-header .nav-button:hover {
  color: #294832;
  background: none;
}

main {
  width: 100%;
  max-width: 900px;
  margin: 4rem auto;
}

.home,
.post {
  max-width: 860px;
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.home-kicker,
.section-kicker {
  color: #526b55;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.home-kicker {
  margin: 0 0 1rem;
}

.home-title {
  max-width: 650px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.home-intro {
  max-width: 600px;
  margin: 0;
  color: #555d54;
  font-size: 1.15rem;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.home-primary {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #385b42;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.home-primary:hover {
  background: #294832;
}

.home-secondary {
  color: #385b42;
  font-weight: 600;
}

.hero-sketch {
  width: 100%;
  max-width: 250px;
  justify-self: center;
  color: #385b42;
}

.hero-sketch svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-sketch figcaption {
  margin-top: 0.35rem;
  color: #777d73;
  font-family: ui-serif, Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

.home-section {
  padding: 2.5rem 0;
  border-top: 1px solid #deded5;
}

.home-section h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.035em;
}

.section-kicker {
  margin: 0;
}

.section-intro {
  max-width: 640px;
  margin: 0;
  color: #686d65;
  line-height: 1.7;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.idea {
  padding: 1.15rem;
  border: 1px solid #deded5;
  border-radius: 8px;
  background: #fbfbf8;
}

.idea-sketch {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 0.65rem;
  color: #536e55;
}

.idea-index {
  margin: 0 0 0.5rem;
  color: #71806c;
  font-size: 0.8rem;
}

.idea h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.idea p {
  margin: 0;
  color: #686d65;
  font-size: 0.93rem;
  line-height: 1.6;
}

.cost-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e1e4d9;
  border-radius: 8px;
  background: #f0f2eb;
}

.cost-note p {
  margin: 0;
  color: #50574d;
  line-height: 1.65;
}

.cost-figures {
  color: #385b42;
  font-size: 0.92rem;
  line-height: 1.8;
  white-space: nowrap;
}

.home-footnote {
  margin: 1rem 0 0;
  color: #777d73;
  font-size: 0.84rem;
  line-height: 1.6;
}

.post-header {
  display: block;
  border: 0;
  padding: 0 0 1.5rem;
}

.post-label,
.post-meta {
  color: #686d65;
  font-size: 0.9rem;
}

.post-label {
  margin: 0 0 0.75rem;
}

.post-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.post-meta {
  margin: 0;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content p {
  margin: 0 0 1.35rem;
}

.post-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-content a {
  color: #385b42;
}

.post-note {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid #deded5;
  color: #555d54;
}

.cost-examples {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.5rem;
}

.post-footnote {
  color: #686d65;
  font-size: 0.9rem;
}

.muted {
  color: #686d65;
}

.auth-page {
  max-width: 440px;
}

.notice {
  padding: 0.8rem 1rem;
  background: #e8efe4;
  border-radius: 8px;
}

.auth-grid {
  margin-top: 2rem;
}

.auth-card {
  border: 1px solid #deded5;
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
}

.auth-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

label {
  display: block;
  margin: 0.8rem 0 0.3rem;
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #c9cbc2;
  border-radius: 6px;
  font: inherit;
}

button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #385b42;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #294832;
}

.result {
  min-height: 1.5rem;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-sketch {
    width: 170px;
    justify-self: start;
    margin-left: 1rem;
  }

  .idea-list {
    grid-template-columns: 1fr;
  }

  .cost-note {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .header-left,
  .header-right {
    gap: 0.9rem;
  }

  .site-links,
  .account-links {
    gap: 0.7rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1.25rem;
  }

  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .header-left,
  .header-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .site-links,
  .account-links {
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.8rem;
  }

  main {
    margin-top: 2.5rem;
  }

  .home-hero {
    padding: 0.5rem 0 2.5rem;
  }

  .home-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }
}
