/* ========================================================================
   siamakseyfi.com — shared stylesheet
   Used by all pages. Changing a value here updates every page.
   ======================================================================== */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #F1F5F9;
  --text: #0F172A;
  --text-soft: #475569;
  --text-muted: #64748B;
  --accent: #0C4A6E;
  --accent-hover: #075985;
  --accent-soft: #E0F2FE;
  --gold: #A16207;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

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

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 0; }
  .nav-links a.active::after { display: none; }
}

/* ---------- Layout ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

@media (max-width: 820px) {
  .container, .container-narrow { padding: 48px 24px 72px; }
}

/* ---------- About / home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 64px;
  align-items: center;
  padding: 24px 0 48px;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-title {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 60ch;
}

.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-portrait {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 88px;
  color: var(--accent);
  letter-spacing: -0.04em;
  background: var(--border-soft);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 12px 0 32px;
  }
  .hero-portrait {
    width: 150px;
    height: 150px;
    justify-self: start;
    order: -1;
  }
  .hero-portrait-fallback { font-size: 56px; }
}

/* ---------- Social icons ---------- */
.social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.social-icon svg { width: 18px; height: 18px; }

.social-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ---------- CTA buttons ---------- */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--border-soft);
  color: var(--text);
}

.btn svg { width: 15px; height: 15px; }

/* ---------- Section label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- About content ---------- */
.about-content {
  max-width: 68ch;
  margin-top: 48px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.about-content p strong { color: var(--text); font-weight: 600; }

.about-content p:last-child { margin-bottom: 0; }

/* ---------- Quick facts grid ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.fact {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.15s ease;
}

.fact:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow);
}

.fact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fact-value {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
}

.fact-value-secondary {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .facts-grid { grid-template-columns: 1fr; }
}

/* ---------- Sub-page header ---------- */
.page-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-title {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.page-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 64ch;
}

/* ---------- Placeholder panel ---------- */
.placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 16px;
}

.placeholder-icon svg { width: 24px; height: 24px; }

.placeholder h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.placeholder p {
  font-size: 14px;
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Typography ---------- */
h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}

h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

p { color: var(--text-soft); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer { flex-direction: column; gap: 10px; padding: 24px; }
}

::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
