:root {
  --bg: #0f1115;
  --bg-alt: #161922;
  --text: #eef0f4;
  --text-muted: #9aa1b1;
  --accent: #c1272d;
  --accent-2: #006233;
  --border: #262a35;
  --radius: 12px;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Nav */

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 340px;
  height: 340px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,8 61.8,38.7 94.8,39.8 68.5,60.3 78.5,92 50,72.6 21.5,92 31.5,60.3 5.2,39.8 38.2,38.7' fill='none' stroke='%23006233' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.motif-strip {
  height: 5px;
  background: var(--accent);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.hero-content h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0f1115;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section ol,
.section ul {
  margin: 0;
  padding-left: 1.4rem;
}

.section ol li,
.section ul li {
  margin-bottom: 0.4rem;
}

.section h2 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  position: relative;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.55rem;
  height: 0.55rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
  border-radius: 2px;
}

.muted {
  color: var(--text-muted);
}

/* Cards */

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

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-header h3,
.card.placeholder h3 {
  font-family: "Fraunces", serif;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  margin: 0;
}

.card-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card.placeholder h3 {
  margin-top: 0;
}

/* Footer */

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
