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

:root {
  --bg: #0C0C0C;
  --surface: #111111;
  --border: #1C1C1C;
  --text-primary: #E8E8E8;
  --text-secondary: #555555;
  --text-muted: #2E2E2E;
  --accent: #B8A88A;
  --accent-dim: #5C5040;
  --font-size-sm: clamp(12px, 0.8rem + 0.1vw, 13.5px);
}

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(184, 168, 138, 0.25); color: var(--text-primary); }

::-moz-selection { background: rgba(184, 168, 138, 0.25); color: var(--text-primary); }

.container { max-width: 660px; margin: 0 auto; padding: 0 32px; width: 100%; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.5s ease both;
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }

header { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }

.org-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.org-name {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.page-home .org-name { font-size: clamp(36px, 6vw, 54px); }

.page-projects .org-name { font-size: clamp(32px, 5vw, 48px); }

.org-name em { font-style: italic; color: var(--accent); }

.org-domain {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.back-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:focus-visible,
.nav-link:focus-visible,
.project-item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

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

.page-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.page-title em { font-style: italic; color: var(--accent); }

.page-meta {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.page-sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.section-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 24px;
}

h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(20px, 1.4rem + 0.3vw, 24px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.35;
  text-wrap: pretty;
}

p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 0.85rem + 0.15vw, 15px);
  font-weight: 300;
  color: #787878;
  line-height: 1.85;
  margin-bottom: 14px;
}

p:last-child { margin-bottom: 0; }

.terms-grid {
  counter-reset: term;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.term-row {
  background: var(--bg);
  padding: 15px 20px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  transition: background 0.15s;
}

.term-row::before {
  counter-increment: term;
  content: counter(term, decimal-leading-zero);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}

.term-row:hover { background: var(--surface); }

.term-text {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 300;
  color: #686868;
  line-height: 1.75;
}

.term-text strong { font-weight: 500; color: #A0A0A0; }

.privacy-grid {
  counter-reset: privacy;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 24px;
}

.privacy-row {
  background: var(--bg);
  padding: 17px 22px;
  display: flex;
  gap: 22px;
  align-items: baseline;
  transition: background 0.15s;
}

.privacy-row::before {
  counter-increment: privacy;
  content: counter(privacy, decimal-leading-zero);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}

.privacy-row:hover { background: var(--surface); }

.privacy-text {
  font-size: var(--font-size-sm);
  font-weight: 300;
  color: #686868;
  line-height: 1.8;
}

.privacy-text strong { font-weight: 500; color: #A0A0A0; }

.effective-date {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.nav-link {
  background: var(--bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  border-left: 2px solid transparent;
}

.nav-link:hover {
  background: var(--surface);
  border-left-color: var(--accent);
}

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

.link-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: #808080;
  transition: color 0.2s;
}

.link-label::after {
  content: '→';
  display: inline-block;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover .link-label::after {
  opacity: 1;
  transform: translateX(0);
}

.link-path {
  font-family: 'DM Sans', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
  min-height: 60px;
}

.projects-list:empty::after {
  content: 'No published projects yet';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.project-item {
  background: var(--bg);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-left: 2px solid transparent;
}

.project-item:hover {
  background: var(--surface);
  border-left-color: var(--accent);
  transform: translateX(2px);
}

.project-left { display: flex; flex-direction: column; gap: 4px; }

.project-name {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #C8C8C8;
  transition: color 0.2s;
  line-height: 1.2;
}

.project-item:hover .project-name { color: var(--accent); }

.project-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
}

.project-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  flex-shrink: 0;
}

footer {
  padding: 36px 0 52px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy,
.footer-right {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-updated {
  font-size: 10px;
  font-weight: 300;
  color: #1E1E1E;
  letter-spacing: 0.04em;
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 600px) {
  header { padding: 52px 0 44px; }
  section { padding: 40px 0; }
  .container { padding: 0 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
