*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #FFF8EF;
  color: #2B2118;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: #B0422B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #8E321F;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #C8553D;
  outline-offset: 2px;
}

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8DCCB;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.site-brand {
  font-size: 20px;
  font-weight: 700;
  color: #2B2118;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-brand:hover {
  color: #C8553D;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 600;
  color: #2B2118;
  text-decoration: none;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #C8553D;
  text-decoration: underline;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.breadcrumb {
  font-size: 15px;
  color: #5C4B3B;
  margin: 0 0 12px;
}

.breadcrumb a {
  color: #5C4B3B;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 6px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 18px 0 6px;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

.quick-answer {
  font-size: 20px;
  font-weight: 600;
  color: #2B2118;
  margin: 0 0 20px;
}

.card {
  background-color: #FFFFFF;
  border: 1px solid #E8DCCB;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 24px;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .converter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 18px;
  color: #2B2118;
  background-color: #FFFFFF;
  border: 1px solid #CBB9A3;
  border-radius: 8px;
}

.field input:focus,
.field select:focus {
  border-color: #C8553D;
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 540px) {
  .quick-buttons {
    grid-template-columns: repeat(6, 1fr);
  }
}

.quick-btn {
  min-height: 48px;
  padding: 8px 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2B2118;
  background-color: #FFF8EF;
  border: 1px solid #E8DCCB;
  border-radius: 8px;
  cursor: pointer;
}

.quick-btn:hover {
  border-color: #C8553D;
  background-color: #FCEEE3;
}

.quick-btn.is-active {
  background-color: #C8553D;
  border-color: #C8553D;
  color: #FFFFFF;
}

.result-box {
  margin-top: 18px;
  padding: 16px;
  background-color: #FFF8EF;
  border: 1px solid #E8DCCB;
  border-radius: 10px;
}

.result-label {
  font-size: 15px;
  color: #5C4B3B;
  margin: 0 0 4px;
}

.result-primary {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: #C8553D;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

.result-secondary {
  font-size: 18px;
  font-weight: 600;
  color: #2B2118;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.result-error {
  font-size: 17px;
  font-weight: 600;
  color: #5C4B3B;
  margin: 0;
}

.is-hidden {
  display: none;
}

.ad-slot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #E8DCCB;
  white-space: nowrap;
}

th {
  font-size: 16px;
  font-weight: 700;
  color: #5C4B3B;
  background-color: #FFF8EF;
}

tr:last-child td {
  border-bottom: 0;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 500px) {
  .ingredient-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ingredient-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  border: 1px solid #E8DCCB;
  border-radius: 12px;
  text-decoration: none;
  color: #2B2118;
  font-weight: 600;
}

.ingredient-tile:hover {
  border-color: #C8553D;
  background-color: #FFFDF9;
  color: #C8553D;
}

.ingredient-tile .tile-meta {
  font-size: 15px;
  font-weight: 500;
  color: #5C4B3B;
  margin-left: 8px;
  white-space: nowrap;
}

.steps-list {
  margin: 0;
  padding-left: 22px;
}

.steps-list li {
  margin-bottom: 10px;
}

.steps-list li:last-child {
  margin-bottom: 0;
}

.faq-item {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #E8DCCB;
}

.faq-item:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.faq-item h3 {
  margin-top: 0;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background-color: #FFF8EF;
  border: 1px solid #E8DCCB;
  border-radius: 10px;
  color: #2B2118;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.related-list a:hover {
  border-color: #C8553D;
  color: #C8553D;
}

.accuracy-note {
  font-size: 16px;
  color: #5C4B3B;
  background-color: #FFFFFF;
  border: 1px solid #E8DCCB;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 24px;
}

.site-footer {
  border-top: 1px solid #E8DCCB;
  background-color: #FFFFFF;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 16px;
  color: #5C4B3B;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #5C4B3B;
}
