:root {
  --bg: #f7f2ea;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --ink: #17201c;
  --muted: #66736d;
  --line: rgba(23, 32, 28, 0.12);
  --accent: #146c5f;
  --accent-dark: #0f4d44;
  --accent-soft: #dfeee9;
  --warm: #db8f4d;
  --private: #6b4bd9;
  --public: #146c5f;
  --shadow: 0 24px 70px rgba(31, 42, 38, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 108, 95, 0.14), transparent 35rem),
    radial-gradient(circle at 85% 15%, rgba(219, 143, 77, 0.18), transparent 28rem),
    var(--bg);
}

a {
  color: inherit;
}

code {
  padding: 0.13rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255,255,255,0.6);
  font-size: 0.92em;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 0;
}

.brand,
.topbar-link,
.button,
.card-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  box-shadow: 0 12px 30px rgba(20, 108, 95, 0.25);
}

.brand-mark svg {
  width: 28px;
  fill: currentColor;
}

.topbar-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) 0 60px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(20, 108, 95, 0.26);
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.hero-illustration {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.34)),
    radial-gradient(circle at 35% 20%, rgba(20,108,95,0.15), transparent 16rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.orb-one {
  width: 180px;
  height: 180px;
  right: -42px;
  top: -34px;
  background: rgba(219, 143, 77, 0.24);
}

.orb-two {
  width: 210px;
  height: 210px;
  left: -64px;
  bottom: -66px;
  background: rgba(20, 108, 95, 0.14);
}


.pica-logo {
  position: absolute;
  left: -3%;
  top: 5%;
  width: 108%;
  height: 92%;
  filter: drop-shadow(0 28px 40px rgba(23, 32, 28, 0.14));
}

.pica-logo * {
  vector-effect: non-scaling-stroke;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 30px 0 22px;
}

.section-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}

.section-intro > p {
  max-width: 48ch;
  margin-bottom: 0.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.resource-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(31, 42, 38, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 108, 95, 0.28);
  box-shadow: 0 26px 64px rgba(31, 42, 38, 0.14);
}

.card-link {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 33px;
  height: 33px;
}

.card-icon path,
.card-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-meta {
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(20, 108, 95, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.resource-card.private .card-meta {
  color: var(--private);
  background: rgba(107, 75, 217, 0.11);
}

.resource-card.private .card-icon {
  color: var(--private);
  background: rgba(107, 75, 217, 0.1);
}

.resource-card.public .card-meta {
  color: var(--public);
}

.resource-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.placeholder {
  border-style: dashed;
  background: rgba(255,255,255,0.36);
}

.empty-card {
  cursor: default;
}

.site-footer {
  padding: 24px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

  .hero-illustration {
    min-height: 330px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 22px));
  }

  .topbar {
    padding-top: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .section-intro {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

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