:root {
  --bg: #f3efe7;
  --ink: #1f2a2e;
  --muted: #6b6b6b;
  --accent: #1b7f5a;
  --accent-2: #e6b566;
  --card: #fffaf1;
  --line: #d6cbbd;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, #fff3d6 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 0%, #e7f3ed 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.8);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.container {
  width: min(1100px, 92vw);
  margin: 32px auto 64px;
  display: grid;
  gap: 24px;
}

.hero {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 32px;
  box-shadow: 12px 12px 0 var(--shadow);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
}

.hero p {
  margin: 0;
  font-family: "Source Serif 4", serif;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

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

.section {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.section h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

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

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  font-size: 13px;
  color: var(--muted);
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: "Source Serif 4", serif;
}

.stepper {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-btn {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.step-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button {
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.result {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--line);
  background: #f9f6f0;
  font-family: "Source Serif 4", serif;
}

.result strong {
  font-size: 18px;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14px;
}

thead th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8f4ed;
  font-weight: 600;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee4d7;
}

tbody tr:nth-child(even) {
  background: #fbf9f4;
}

.num-cell {
  font-family: "Space Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

.footer {
  margin-top: auto;
  padding: 24px 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.footer-note {
  margin: 0 0 8px;
  line-height: 1.5;
  font-size: 14px;
}

.footer-meta {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}

.faq-list dt {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 18px;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin-left: 0;
  line-height: 1.6;
  color: var(--muted);
}

.faq-list a {
  color: var(--accent);
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
}

.note {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
