/* socratesny.com — shared design system
   Locked direction: iv — warm interior · golden hour
   Spec: docs/specs/2026-05-07-socratesny-site-design.md */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
  --bg: #f4f0e8;            /* ecru */
  --ink: #1a1612;           /* warm dark brown */
  --gold: #a08555;          /* muted gold accent */
  --line: #d4cab5;          /* hairline divider */
  --muted: #7a6f5d;         /* secondary text */
  --filter-photo: sepia(0.22) saturate(0.95) contrast(0.97) brightness(1.04);
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ========== layout shell ========== */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 1.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ========== apex header ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}

.mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.mark span { color: var(--gold); font-weight: 400; }

.meta {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ========== three-arm portal grid ========== */
.trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tile {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.tile:hover { transform: translateY(-2px); }

.tile-photo {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  filter: var(--filter-photo);
  margin-bottom: 0.9rem;
}

.tile-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.tile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tile-arrow { color: var(--gold); font-weight: 400; }

/* ========== apex footer ========== */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ========== subdomain page (one-arm landing) ========== */
.arm-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem 1.5rem;
}

.arm-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}

.arm-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.arm-mark .gold { color: var(--gold); font-weight: 400; }

.arm-back {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}
.arm-back:hover { color: var(--ink); }

.arm-hero {
  width: 100%;
  height: 55vh;
  min-height: 24rem;
  background-size: cover;
  background-position: center;
  filter: var(--filter-photo);
  margin-bottom: 2rem;
}

.arm-body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
}
.arm-body p { margin-bottom: 1.2rem; }

.arm-contact {
  text-align: center;
  padding: 2rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.arm-contact a { display: block; margin: 0.4rem 0; color: var(--ink); }
.arm-contact a:hover { color: var(--gold); }

.arm-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ========== mobile ========== */
@media (max-width: 720px) {
  .shell, .arm-shell { padding: 1.5rem 1.2rem 1rem; }
  .header, .arm-header { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
  .meta, .arm-back { font-size: 0.85rem; }
  .trio { grid-template-columns: 1fr; gap: 1.5rem; }
  .arm-hero { height: 40vh; min-height: 18rem; }
  .arm-body { font-size: 1rem; padding: 0.5rem 0 1.5rem; }
}
