:root {
  --ink: #182230;
  --cream: #F7F5F0;
  --green: #1F7A6D;
  --green-deep: #155E54;
  --amber: #C7792B;
  --line: rgba(24,34,48,0.12);
  --muted: rgba(24,34,48,0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Public Sans', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p a, li a, address a { text-decoration: underline; text-decoration-color: rgba(31,122,109,0.5); text-underline-offset: 3px; }
p a:hover, li a:hover { text-decoration-color: var(--green); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px;
}
.logo .accent { color: var(--green-deep); }
.mark {
  width: 26px; height: 26px; border-radius: 8px; display: inline-block;
  background: linear-gradient(135deg, var(--green) 0 50%, var(--amber) 50% 100%);
}
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 600; }
.nav-links a { opacity: 0.75; transition: opacity .15s ease; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }

header.hero { padding: 56px 24px 72px; max-width: 1040px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-deep);
  background: rgba(31,122,109,0.10); border: 1px solid rgba(31,122,109,0.30);
  display: inline-block; padding: 6px 12px; border-radius: 100px; margin-bottom: 24px;
}
h1 {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.06; letter-spacing: -0.015em; max-width: 760px; margin-bottom: 22px;
}
h1 em { font-style: italic; color: var(--green-deep); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 580px; margin-bottom: 34px; }

.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  font-weight: 600; font-size: 0.95rem; padding: 14px 24px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.section { padding: 48px 24px; border-top: 1px solid var(--line); }
.section-title {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}

.cards { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}
.card.muted { background: transparent; }
.card h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.35rem; margin-bottom: 4px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-icon { border-radius: 22%; flex: none; }
.status { font-size: 0.82rem; color: var(--green-deep); font-weight: 600; }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; font-weight: 600; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.lead { font-size: 1.12rem; margin-bottom: 14px; }
.about-grid p { color: var(--muted); }
.about-grid p strong { color: var(--ink); }
.principles { list-style: none; display: grid; gap: 14px; }
.principles li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  color: var(--muted); font-size: 0.95rem;
}
.principles strong { color: var(--ink); display: block; margin-bottom: 2px; }

.contact-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start;
  background: var(--ink); color: var(--cream); border-radius: 18px; padding: 32px;
}
.contact-card .tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 10px;
}
.contact-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.1rem, 3vw, 1.9rem); margin-bottom: 12px; overflow-wrap: anywhere; }
.contact-card h3 a { text-decoration: none; }
.contact-card h3 a:hover { color: #9FD8CC; }
.contact-card .small { font-size: 0.92rem; opacity: 0.8; }
.contact-card .small a { text-decoration-color: rgba(247,245,240,0.5); }
address { font-style: normal; line-height: 1.7; opacity: 0.9; }

.todo { background: #FFE58A; color: #5A4300; padding: 0 4px; border-radius: 4px; }

footer.wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--muted);
}
.footer-links { display: flex; gap: 20px; font-weight: 600; }

/* Legal pages */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 12px; }
.doc ul { padding-left: 20px; }

@media (max-width: 760px) {
  .cards, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; font-size: 0.88rem; }
  header.hero { padding-top: 32px; padding-bottom: 48px; }
}
