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

:root {
  --text: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #888;
  --bg: #fafafa;
  --bg-alt: #f0efed;
  --accent: #3d3d3d;
  --border: #e0ddd8;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
}

nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
}

nav a {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

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

/* Logo */
.logo {
  display: block;
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero .subline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* Headings */
h2 {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: normal;
  margin-bottom: 0.3rem;
}

/* Text */
p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

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

/* Portfolio */
.portfolio-group {
  margin-bottom: 2.5rem;
}

.portfolio-group h3 {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-item {
  padding: 0.8rem 0;
}

.portfolio-item .name {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.portfolio-item .name a {
  color: var(--text);
  text-decoration: none;
}

.portfolio-item .name a:hover {
  text-decoration: underline;
}

.portfolio-item .desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

/* Principles */
.principles {
  list-style: none;
  padding: 0;
}

.principles li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.principles li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
  margin-right: 0.8rem;
  vertical-align: middle;
}

/* Group intro text */
.group-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Founder */
.founder-name {
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 1rem;
}

.founder-links {
  margin-top: 1.5rem;
}

.founder-links a {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-right: 1.5rem;
}

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

/* Contact */
.contact-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-info a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact-info a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Diagram */
.diagram {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 1.5rem 0;
  white-space: pre;
}

/* Hero links */
.hero .tagline a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.hero .tagline a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  nav ul { gap: 1.2rem; }
  nav a { font-size: 0.7rem; }
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 1.5rem; }
  section { padding: 3rem 0 2rem; }
}
