:root {
  --cream: #f4efe9;
  --cream-deep: #ece4da;
  --ink: #3a322e;
  --ink-soft: #6f655e;
  --rose: #e9a8b0;
  --rose-deep: #d98a96;
  --rose-soft: #f7e3e4;
  --white: #fffdfb;
  --line: #e3d8cd;
  --radius: 20px;
  --shadow: 0 30px 60px -30px rgba(120, 90, 80, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(244, 239, 233, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 28px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 104px);
  margin-bottom: 24px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contract address */
.ca {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  max-width: 100%;
}
.ca-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-deep);
  flex-shrink: 0;
}
.ca-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-copy {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: var(--rose);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.ca-copy:hover { background: var(--rose-deep); }
.ca-copy.copied { background: var(--ink-soft); }
.ca-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--rose);
  color: #fff;
}
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--rose); }

/* Portrait */
.hero-art { display: flex; justify-content: center; }
.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
  max-width: 440px;
  width: 100%;
}
.portrait img { display: block; width: 100%; height: auto; }

/* Sections */
section { scroll-margin-top: 80px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); margin-top: 14px; }

.about {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 28px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Story */
.story {
  background: var(--rose-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 86px 28px;
  text-align: center;
}
.story-inner h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  margin: 16px 0 26px;
}
.story-inner p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Join */
.join {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 28px;
  text-align: center;
}
.join h2 { font-size: clamp(32px, 5vw, 48px); margin: 16px 0 14px; }
.join-lede { color: var(--ink-soft); font-size: 18px; margin-bottom: 34px; }
.join-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-sm { font-family: "Fraunces", serif; font-size: 20px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--rose-deep); }
.copy { color: var(--ink-soft); font-size: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
}
