@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap");

:root {
  --bg: #f5efe2;
  --bg-soft: rgba(255, 252, 246, 0.72);
  --panel: rgba(255, 250, 240, 0.86);
  --panel-strong: rgba(255, 248, 234, 0.94);
  --text: #1d2320;
  --muted: #5a625b;
  --accent: #af3f20;
  --accent-deep: #7c2810;
  --line: rgba(52, 47, 36, 0.12);
  --shadow: 0 18px 50px rgba(79, 55, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(225, 133, 51, 0.26), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(93, 153, 145, 0.22), transparent 20%),
    linear-gradient(180deg, #f3ecdd 0%, #f7f1e6 44%, #efe6d6 100%);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 247, 229, 0.94), rgba(247, 241, 229, 0.88)),
    rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.hero__backdrop {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
}

.hero__backdrop--left {
  inset: auto auto -72px -48px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(216, 116, 62, 0.34), rgba(216, 116, 62, 0));
}

.hero__backdrop--right {
  inset: -56px -28px auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(83, 137, 132, 0.26), rgba(83, 137, 132, 0));
}

.eyebrow,
.info-block__eyebrow,
.stat-card__label,
.search-label,
.results-copy {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.info-block__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
}

.hero__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero__controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-link {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 11px 14px;
  border: 1px solid rgba(82, 63, 33, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(250, 240, 224, 0.9));
  color: inherit;
  text-align: right;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(79, 55, 17, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.settings-link:hover {
  transform: translateY(-1px);
  border-color: rgba(175, 63, 32, 0.22);
  box-shadow: 0 14px 28px rgba(79, 55, 17, 0.12);
}

.settings-link__eyebrow {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-link__value {
  font-size: 1rem;
  font-weight: 800;
}

.side-panel h2,
.result-card__title {
  font-family: "Source Serif 4", "Noto Serif", Georgia, serif;
}

.hero__lede {
  max-width: 58ch;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.search-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.search-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid rgba(82, 63, 33, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  padding: 8px 10px;
}

#search-input::placeholder {
  color: rgba(90, 98, 91, 0.74);
}

.search-clear,
.hint-chip,
.result-card__title-link,
.text-link,
.primary-link {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.search-clear {
  border: 0;
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(175, 63, 32, 0.1);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-clear:hover,
.hint-chip:hover,
.result-card__title-link:hover {
  transform: translateY(-1px);
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hint-chip {
  border: 1px solid rgba(82, 63, 33, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 252, 245, 0.88);
  color: var(--muted);
  font: inherit;
  font-size: 0.93rem;
  cursor: pointer;
}

.hero__stats {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.stat-card {
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: right;
}

.stat-card__label {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}

.stat-card__value {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-top: 22px;
}

.results-panel,
.side-panel .info-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.results-panel {
  padding: 24px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.results-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.results-grid {
  display: grid;
  gap: 14px;
}

.result-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(82, 63, 33, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(253, 248, 237, 0.82));
}

.result-card__title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.result-card__title-link {
  color: inherit;
  text-decoration: none;
}

.result-card__title-link:hover {
  color: var(--accent-deep);
}

.result-card__details {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-card__detail-link {
  border: 1px solid rgba(82, 63, 33, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.result-card__detail-link:hover {
  color: var(--accent-deep);
  border-color: rgba(175, 63, 32, 0.25);
  background: rgba(255, 249, 241, 0.96);
  box-shadow: 0 6px 16px rgba(79, 55, 17, 0.08);
  transform: translateY(-1px);
}

.result-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-card__match {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.side-panel {
  display: grid;
  gap: 22px;
}

.side-panel .info-block {
  padding: 24px;
  min-height: 168px;
  display: flex;
  align-items: center;
}

.info-block--about {
  background:
    linear-gradient(160deg, rgba(255, 252, 246, 0.92), rgba(239, 247, 244, 0.84));
}

.info-block--accent {
  background:
    linear-gradient(155deg, rgba(248, 252, 250, 0.9), rgba(255, 242, 227, 0.82));
}

.text-link,
.primary-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 16px;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after,
.primary-link::after {
  content: "\2192";
  margin-left: 8px;
}

.text-link:hover,
.primary-link:hover {
  transform: translateX(2px);
  color: var(--accent);
}

.side-panel p:not(.info-block__eyebrow),
.field-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(82, 63, 33, 0.18);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 252, 247, 0.74);
}

.page-shell--settings {
  width: min(1120px, calc(100% - 32px));
}

.page-shell--about {
  width: min(1120px, calc(100% - 32px));
}

.settings-shell,
.about-shell {
  display: grid;
  gap: 22px;
}

.settings-hero,
.settings-panel,
.about-hero,
.about-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 247, 229, 0.94), rgba(247, 241, 229, 0.88)),
    rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.about-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(140deg, rgba(255, 248, 235, 0.94) 0%, rgba(240, 248, 246, 0.9) 52%, rgba(252, 236, 220, 0.88) 100%),
    rgba(255, 255, 255, 0.68);
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-deep);
}

.settings-title,
.about-title {
  max-width: 15ch;
  margin: 0;
  font-family: "Source Serif 4", "Noto Serif", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.96;
}

.about-title {
  max-width: 20ch;
  letter-spacing: 0;
}

.settings-copy,
.about-lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-lede {
  max-width: 64ch;
  color: #384641;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.about-panel {
  display: grid;
  gap: 26px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(240, 248, 246, 0.88) 54%, rgba(255, 243, 230, 0.9));
}

.about-panel--single {
  padding: clamp(28px, 5vw, 56px);
}

.about-content {
  max-width: 68ch;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.76;
}

.about-content p + p {
  margin-top: 18px;
}

.about-content--care {
  max-width: 820px;
  padding-top: 26px;
  border-top: 1px solid rgba(82, 63, 33, 0.12);
}

.primary-link {
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(175, 63, 32, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(79, 55, 17, 0.08);
}

.care-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #384641;
  columns: 2;
  column-gap: 42px;
}

.care-list li {
  break-inside: avoid;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.55;
}

.about-content--closing {
  padding-top: 26px;
  border-top: 1px solid rgba(82, 63, 33, 0.12);
}

.settings-current {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(82, 63, 33, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-current__label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-current__value {
  font-size: 1.08rem;
  font-weight: 800;
}

.settings-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-panel__header h2 {
  margin: 0;
  font-family: "Source Serif 4", "Noto Serif", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.settings-panel__header p {
  margin: 0;
  color: var(--muted);
}

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

.scheme-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(82, 63, 33, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(250, 242, 230, 0.92));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(79, 55, 17, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.scheme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(175, 63, 32, 0.22);
  box-shadow: 0 18px 34px rgba(79, 55, 17, 0.14);
}

.scheme-card.is-active {
  border-color: rgba(175, 63, 32, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 247, 236, 0.98), rgba(255, 239, 219, 0.94));
  box-shadow: 0 20px 38px rgba(122, 48, 17, 0.14);
}

.scheme-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.scheme-card__name,
.scheme-card__sample {
  font-family: "Source Serif 4", "Noto Serif", Georgia, serif;
}

.scheme-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.scheme-card__status {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(29, 35, 32, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scheme-card.is-active .scheme-card__status {
  background: rgba(175, 63, 32, 0.12);
  color: var(--accent-deep);
}

.scheme-card__sample {
  font-size: 1.42rem;
  line-height: 1.12;
}

.scheme-card__meta,
.scheme-card__copy {
  color: var(--muted);
}

.scheme-card__meta {
  font-size: 0.96rem;
  font-weight: 700;
}

.scheme-card__copy {
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .hero__topline {
    flex-direction: column;
  }

  .hero__controls {
    width: 100%;
    justify-content: space-between;
  }

  .settings-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-hero {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 10px;
  }

  .hero,
  .results-panel,
  .side-panel .info-block,
  .about-hero,
  .about-panel {
    border-radius: 24px;
  }

  .search-input-wrap {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .result-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card {
    flex: 1 1 0;
    text-align: left;
  }

  .settings-link {
    min-width: 0;
    text-align: left;
  }

  .settings-hero,
  .settings-panel,
  .about-hero,
  .about-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .settings-title,
  .about-title {
    max-width: none;
  }

  .care-list {
    columns: 1;
  }
}
