:root {
  --bg: #f2efe6;
  --surface: #fffaf2;
  --surface-strong: #f8f1e0;
  --ink: #1f2a30;
  --ink-muted: #4c5a60;
  --accent: #c35b1f;
  --accent-strong: #9e4212;
  --leaf: #275846;
  --line: rgba(31, 42, 48, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow-lg: 0 24px 60px rgba(15, 20, 23, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 20, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -5%, rgba(203, 110, 44, 0.28), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(52, 120, 96, 0.24), transparent 44%),
    linear-gradient(180deg, #f9f6ef 0%, #f2ede2 40%, #efe7db 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 42, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 48, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, #da7a2a 0%, #b95f25 55%, #7a3f1f 100%);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-links a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.hero {
  background: linear-gradient(130deg, rgba(255, 248, 234, 0.95), rgba(246, 237, 219, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  animation: rise-in 700ms ease both;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -70px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(39, 88, 70, 0.2), transparent 70%);
}

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  letter-spacing: 0.01em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin: 0 0 14px;
}

.hero p {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-muted);
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.6vw, 24px);
  margin-top: 16px;
  animation: rise-in 780ms ease both;
}

.section-card.delay-1 {
  animation-delay: 80ms;
}

.section-card.delay-2 {
  animation-delay: 140ms;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #fffdf8, #f9f3e6);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 218px;
}

.app-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.app-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.badge {
  justify-self: start;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(39, 88, 70, 0.13);
  color: var(--leaf);
  border: 1px solid rgba(39, 88, 70, 0.24);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.card-links a,
.inline-link,
.cta {
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
}

.card-links a,
.inline-link {
  background: rgba(255, 255, 255, 0.82);
}

.cta {
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  color: #fff;
  border: 0;
  box-shadow: 0 10px 20px rgba(158, 66, 18, 0.28);
}

.copy-block {
  max-width: 76ch;
}

.copy-block p,
.copy-block li {
  color: var(--ink-muted);
}

.copy-block ul {
  padding-left: 22px;
}

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

.info-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.info-tile h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

footer {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(1120px, 94vw);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .top-links a,
  .card-links a,
  .inline-link,
  .cta {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
