:root {
  color-scheme: light;
  --gold: #e9ba4d;
  --ink: #17140e;
  --muted: #77746f;
  --paper: #fbfaf7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: auto;
  padding: max(44px, env(safe-area-inset-top)) 24px max(34px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.logo { width: 72%; max-width: 300px; height: auto; margin: 4px 0 8px; }
.badge { padding: 10px 24px; border-radius: 999px; background: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 1.7px; }
.content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loading { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #eadfca; border-top-color: #a16f0b; border-radius: 50%; animation: spin .8s linear infinite; }
.error { max-width: 390px; margin-top: 42px; text-align: center; }
.error p { color: var(--muted); font-size: 18px; line-height: 1.5; }
[hidden] { display: none !important; }
h1 { margin: 8px 0 0; font-size: clamp(38px, 10vw, 50px); line-height: 1.04; text-align: center; letter-spacing: -1.5px; }
.lead { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.45; text-align: center; }
.card { width: 100%; margin-top: 8px; padding: 26px; border-radius: 26px; background: #fff; box-shadow: 0 14px 38px rgba(30, 25, 15, .08); }
.project { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #e9e6df; }
.icon { width: 60px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fbf1db; color: #b17d12; font-size: 28px; }
small { display: block; color: var(--muted); font-weight: 800; letter-spacing: 1.5px; }
h2 { margin: 5px 0 0; font-size: 27px; }
.pros { display: flex; justify-content: center; margin: 24px 0 2px; }
.pro { width: 70px; height: 70px; margin-left: -9px; border: 3px solid #fff; border-radius: 50%; background: #f6e5bd; display: grid; place-items: center; font-weight: 800; }
.pro:first-child { margin-left: 0; }
.cta { width: 100%; margin-top: 8px; padding: 18px 20px; border: 0; border-radius: 18px; background: var(--gold); color: var(--ink); text-align: center; text-decoration: none; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.control { margin: 4px 10px 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
.recommendations { width: 100%; scroll-margin-top: 24px; }
.recommendation-heading { margin: 4px 2px 18px; }
.recommendation-heading h2 { margin-top: 8px; font-size: 31px; line-height: 1.1; }
.recommendation-heading p { margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.vendor-list { display: grid; gap: 14px; }
.vendor-card { display: grid; grid-template-columns: 62px 1fr; gap: 15px; align-items: center; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(30, 25, 15, .07); }
.vendor-avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #f6e5bd; font-weight: 800; }
.vendor-card h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.vendor-card p { margin: 5px 0 0; }
.specialty { color: var(--muted); font-size: 15px; line-height: 1.35; }
.contact { color: #4f4b44; font-size: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) {
  main { padding-inline: 18px; }
  h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  h2 { font-size: 23px; }
}
