@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --ink: #111827;
  --muted: #5b6472;
  --bg: #f6f0e8;
  --card: #ffffff;
  --accent: #ff5c3b;
  --accent-dark: #e0462f;
  --accent-soft: #ffe3da;
  --teal: #d6f3f0;
  --sun: #fde2b1;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 12px 26px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7e8 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #e9f6f5 0%, transparent 42%),
    linear-gradient(160deg, #fdf7f0 0%, #f4f4fb 55%, #f6f0e8 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 45% 55% 60% 40%;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
}

body::before {
  top: -140px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 217, 180, 0.9), transparent 70%);
}

body::after {
  bottom: -160px;
  left: -160px;
  background: radial-gradient(circle, rgba(198, 236, 232, 0.9), transparent 70%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 28px clamp(18px, 5vw, 72px) 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 4vw, 40px);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 440px;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  background: rgba(17, 24, 39, 0.06);
}

.nav .button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px rgba(255, 92, 59, 0.28);
}

.button,
button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 20px rgba(255, 92, 59, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover,
.button:hover,
.card-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(255, 92, 59, 0.3);
}

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

main {
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  gap: 16px;
  max-width: 760px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(30px, 5vw, 54px);
  margin: 0;
}

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

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

.grid > * {
  animation: fadeUp 0.7s ease both;
}

.grid > *:nth-child(2) {
  animation-delay: 0.05s;
}

.grid > *:nth-child(3) {
  animation-delay: 0.1s;
}

.grid > *:nth-child(4) {
  animation-delay: 0.15s;
}

.grid > *:nth-child(5) {
  animation-delay: 0.2s;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

.card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 20px;
}

.card-body {
  color: var(--muted);
  line-height: 1.55;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-actions a,
.card-actions button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 20px rgba(255, 92, 59, 0.2);
}

.card-actions .ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  box-shadow: none;
}

.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  box-shadow: none;
}

.ghost:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

section h3 {
  margin-bottom: 8px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 92, 59, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 92, 59, 0.2);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
}

.link-pill {
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px dashed rgba(224, 70, 47, 0.5);
  background: #fff0ea;
  word-break: break-all;
}

.list {
  display: grid;
  gap: 14px;
}

.size-summary {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f2ea;
  border: 1px solid rgba(17, 24, 39, 0.06);
  color: var(--ink);
}

.size-row span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.size-notes {
  background: #fff5ec;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(224, 70, 47, 0.2);
  color: var(--ink);
}

.size-notes p {
  margin: 6px 0 0;
  color: var(--muted);
}

.size-summary .badge {
  width: fit-content;
}

.size-estimate {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #e8f7f4;
  border: 1px solid rgba(74, 161, 151, 0.25);
  display: grid;
  gap: 10px;
}

.size-estimate-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.badge-estimate {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.estimate-header {
  align-items: center;
  gap: 10px;
}

.size-estimate .note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.need {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff9f3;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.6s ease both;
}

.need h4 {
  margin: 0;
  font-size: 18px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #f7efe6;
}

.banner {
  background: linear-gradient(120deg, #ffe6c3, #fff4e6);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(250, 191, 110, 0.6);
  display: grid;
  gap: 6px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.banner strong {
  display: block;
}

.promo-grid {
  align-items: start;
}

.promo-stack {
  display: grid;
  gap: 12px;
}

.promo-card {
  background: #fff3e7;
  border: 1px solid #f3dcc6;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  animation: fadeUp 0.6s ease both;
}

.promo-card.promo-compact {
  grid-template-columns: minmax(80px, 120px) 1fr;
  padding: 12px;
}

.promo-image {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 16px;
  background: #f5eee5;
}

.promo-content {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.promo-content strong {
  color: var(--ink);
}

.promo-content p {
  margin: 0;
}

.promo-date {
  font-size: 12px;
  color: var(--muted);
}

.promo-card .ghost {
  align-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

.admin-metrics .card {
  text-align: center;
}

.stat {
  display: block;
  font-size: 30px;
  color: var(--ink);
  font-family: "Fraunces", serif;
}

.table {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.table-row span {
  color: var(--ink);
}

.table-head {
  background: #f4ece4;
  border-color: rgba(17, 24, 39, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--muted);
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  color: var(--muted);
  font-size: 12px;
}

button,
.button {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .promo-card,
  .promo-card.promo-compact {
    grid-template-columns: 1fr;
  }

  .promo-image {
    max-height: 180px;
  }
}
