:root {
  --primary: #d97736;
  --primary-dark: #b55d24;
  --bg: #fcfaf8;
  --surface: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0d8d0;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-header a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}

.site-header a:hover {
  text-decoration: underline;
}

section {
  padding: 3rem 0;
}

.bg-warm {
  background-color: #f4ece4;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem 0;
}

p {
  margin-bottom: 1.25rem;
}

.ad-container {
  text-align: center;
  padding: 1rem 0;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.control-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--bg);
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

button:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.result-area {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f4ece4;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.result-area.hidden {
  display: none;
}

.text-heavy p {
  font-size: 1.1rem;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

footer a {
  color: #ccc;
  margin-left: 1rem;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  footer nav {
    display: flex;
    flex-direction: column;
  }
  footer a {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
