:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: #fffaf4;
  --line: #d7cbbd;
  --text: #30261f;
  --muted: #7b6c60;
  --accent: #8b5e3c;
  --accent-soft: #d9b38c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(217, 179, 140, 0.35), transparent 30%),
    linear-gradient(180deg, #f7f0e8 0%, var(--bg) 100%);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto;
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(48, 38, 31, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.intro,
.small,
.disclaimer {
  color: var(--muted);
}

.form,
.grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
}

input,
select,
button {
  font: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.spotlight-card {
  background: linear-gradient(180deg, #fff7ed 0%, #fffdf9 100%);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
}

.profile-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-value {
  display: block;
  line-height: 1.35;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 10px;
  background: #ece2d8;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-copy {
  padding: 18px;
}

.rank {
  color: var(--accent);
  font-weight: 700;
}

.price {
  font-size: 20px;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.cta-button.primary {
  background: var(--accent);
  color: #fff;
}

.cta-button.secondary {
  background: #fff;
}

.cta-button.ghost {
  border-color: var(--line);
  color: var(--text);
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: default;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.rule-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.technical-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.technical-details summary {
  cursor: pointer;
  font-weight: 700;
}

.details-grid {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1100px);
    margin: 20px auto;
  }

  .panel {
    padding: 18px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}
