/* ── Fonts ── */
@font-face {
  font-family: 'GeistMono';
  src: url('../fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeistMono';
  src: url('../fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeistMono';
  src: url('../fonts/GeistMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Palette (matched to systimus-parchment-full.svg) ── */
:root {
  --navy:       #1a3a58;
  --navy-deep:  #0a1a38;
  --navy-light: #2a4a68;
  --steel:      #4a6a88;
  --steel-light:#6a8aa8;
  --gold:       #c47a20;
  --gold-light: #d4a843;
  --gold-dark:  #8b5a15;
  --gold-deep:  #5a3808;
  --parchment:  #f5f0e8;
  --parchment-dark: #e8e0d0;
  --cream:      #faf7f2;
  --ink:        #2a2a2a;
  --ink-light:  #5a5a5a;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  font-family: 'GeistMono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

/* ── Nav ── */
nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--parchment-dark);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 2rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--gold);
}

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--parchment-dark);
  position: relative;
}

.hero-label {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero p {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 600px;
  line-height: 1.8;
}

.hero-logo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  opacity: 0.55;
  border-radius: 50%;
}

/* ── Section headers ── */
.section-label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.75rem;
}

/* ── Page header (for inner pages) ── */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--parchment-dark);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0.5rem;
}

.page-header p {
  color: var(--ink-light);
  margin-top: 1rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ── Product Card ── */
.product-card {
  background: var(--parchment);
  border: 1px solid var(--parchment-dark);
  border-left: 3px solid var(--navy);
  padding: 2.5rem;
  margin-top: 1.5rem;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.product-card .product-tag {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.product-card p {
  color: var(--ink-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.product-link {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.product-link:hover {
  border-color: var(--gold);
}

.product-link::after {
  content: ' \2192';
}

/* ── Timeline ── */
.timeline {
  margin-top: 1.5rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--parchment-dark);
}

.timeline-entry:last-child {
  border-bottom: none;
}

.timeline-year {
  font-size: 0.85rem;
  color: var(--steel);
  font-weight: 500;
  padding-top: 0.15rem;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
  display: block;
}

.timeline-content p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.skill-group h3 {
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.skill-group p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Blog list ── */
.blog-list {
  margin-top: 1.5rem;
}

.blog-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--parchment-dark);
}

.blog-entry:last-child {
  border-bottom: none;
}

.blog-entry time {
  font-size: 0.8rem;
  color: var(--steel);
  display: block;
  margin-bottom: 0.4rem;
}

.blog-entry h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.blog-entry h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-entry h3 a:hover {
  color: var(--gold);
}

.blog-entry p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

.blog-entry .coming-soon {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Article ── */
article.container h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

article.container time {
  font-size: 0.85rem;
  color: var(--steel);
  display: block;
  margin-bottom: 2.5rem;
}

article.container p {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Beliefs / values ── */
.beliefs {
  margin-top: 1.5rem;
}

.belief-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--parchment-dark);
}

.belief-item:last-child {
  border-bottom: none;
}

.belief-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.belief-item p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── OSS list ── */
.oss-list {
  margin-top: 1.5rem;
}

.oss-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--parchment-dark);
}

.oss-entry:last-child {
  border-bottom: none;
}

.oss-entry h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.oss-entry h3 a {
  color: var(--navy);
}

.oss-entry h3 a:hover {
  color: var(--gold);
}

.oss-entry p {
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Contact ── */
.contact-section {
  background: var(--navy);
  color: var(--parchment);
  padding: 4rem 0;
  margin-top: 2rem;
}

.contact-section .section-label {
  color: var(--gold-light);
}

.contact-section .section-label::after {
  background: var(--gold-light);
}

.contact-section p {
  color: var(--steel-light);
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item {
  font-size: 0.85rem;
}

.contact-item .contact-label {
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.contact-item a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-item span:not(.contact-label) {
  color: var(--parchment);
}

/* ── Legal / prose pages ── */
.legal-content {
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* ── 404 ── */
.error-page {
  text-align: center;
  padding: 8rem 0;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--ink-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.error-page a {
  color: var(--gold-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  padding: 1.5rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--steel);
}

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

footer a:hover {
  color: var(--gold-light);
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
}

footer .footer-links a {
  font-size: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-logo { display: none; }
  .timeline-entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links a { margin-left: 1rem; font-size: 0.8rem; }
  section { padding: 3rem 0; }
  .product-card { padding: 1.5rem; }
  footer .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  footer .footer-links { gap: 1rem; }
  .page-header h1 { font-size: 1.6rem; }
}
