:root {
  --bg: #f7f3ea;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #1f2933;
  --muted: #5b6773;
  --accent: #0f766e;
  --accent-2: #c2410c;
  --border: rgba(31, 41, 51, 0.1);
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(194, 65, 12, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  text-decoration: none;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 24px;
}

.hero h1,
.hero h2,
.card h2,
.card h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  line-height: 1.15;
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.grid {
  display: grid;
  gap: 20px;
}

.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.converter {
  display: grid;
  gap: 16px;
}

.converter label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.converter input,
.converter output {
  width: 100%;
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
}

.answer {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 8px 0;
  color: var(--accent-2);
}

.muted {
  color: var(--muted);
}

.section {
  padding: 16px 0 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(15, 118, 110, 0.07);
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.clean li + li {
  margin-top: 10px;
}

.footer {
  padding: 30px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 8px 8px 0;
  background: rgba(194, 65, 12, 0.08);
  border-radius: 999px;
  color: var(--accent-2);
  text-decoration: none;
}

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

  .hero {
    padding-top: 36px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }
}
