@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #1a1a1f;
  --ink-soft: #2a2a32;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #f5f0e6;
  --muted: #8a8794;
  --line: rgba(201, 162, 39, 0.35);
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

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

/* Top bar */
.topbar {
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 1.5rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a { color: var(--gold-light); font-weight: 500; }

/* Header */
.site-head {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.head-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
}

.logo-link img { width: 44px; height: 44px; }

.logo-link strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.logo-link span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
}

.nav-panel { display: flex; align-items: center; gap: 0.25rem; }

.nav-panel a {
  color: rgba(245, 240, 230, 0.75);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-panel a:hover,
.nav-panel a.active {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.nav-cta {
  margin-left: 0.5rem;
  background: var(--gold) !important;
  color: var(--ink) !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

/* Hero */
.hero-dark {
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 78vh;
}

.hero-text {
  padding: 4rem 1.5rem 4rem max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text .tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-text .desc {
  color: rgba(245, 240, 230, 0.78);
  max-width: 34rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.hero-mail {
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-mail a { color: var(--gold-light); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }

.btn-ghost {
  border-color: rgba(245, 240, 230, 0.4);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(245, 240, 230, 0.08); color: var(--cream); }

.hero-img {
  position: relative;
  min-height: 360px;
}

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

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, transparent 28%);
}

/* Gold rule band */
.rule-band {
  background: var(--gold);
  color: var(--ink);
  padding: 1.25rem 1.5rem;
}

.rule-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.rule-inner strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
}

.rule-inner span { font-size: 0.82rem; font-weight: 500; }

/* Sections */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-dark {
  background: var(--ink-soft);
  color: var(--cream);
}

.section-dark a { color: var(--gold-light); }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-dark .lead { color: rgba(245, 240, 230, 0.7); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bento-item {
  background: var(--cream);
  padding: 2rem;
}

.section-dark .bento-item { background: var(--ink); }

.bento-item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.bento-item p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-dark .bento-item p { color: rgba(245, 240, 230, 0.65); }

.bento-mail { font-size: 0.85rem; font-weight: 600; }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border: 1px solid var(--line);
}

.facts {
  list-style: none;
  margin-top: 1.5rem;
}

.facts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.95rem;
}

.facts li::before {
  content: '—';
  color: var(--gold);
  margin-right: 0.6rem;
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.founder-grid img { border: 3px solid var(--gold); }

.founder-grid blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-light);
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.contact-block p { margin-bottom: 0.75rem; }

.contact-block .email-lg {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0;
}

form { display: grid; gap: 1rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(26, 26, 31, 0.2);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
}

textarea { min-height: 140px; resize: vertical; }

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Page header */
.page-banner {
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-banner p { color: rgba(245, 240, 230, 0.75); max-width: 560px; margin: 0 auto 1rem; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1rem; color: var(--muted); }

.timeline { margin: 2rem 0; border-left: 2px solid var(--gold); padding-left: 1.5rem; }

.timeline div { margin-bottom: 1.5rem; }

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

/* Footer */
.site-foot {
  background: var(--ink);
  color: rgba(245, 240, 230, 0.7);
  padding: 3rem 1.5rem 2rem;
}

.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-foot h4 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.foot-links a {
  display: block;
  color: rgba(245, 240, 230, 0.65);
  padding: 0.2rem 0;
  font-size: 0.9rem;
}

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

.foot-mail { color: var(--gold-light); font-weight: 600; word-break: break-all; }

.foot-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .hero-dark, .split, .contact-grid, .founder-grid, .foot-grid, .bento { grid-template-columns: 1fr; }
  .hero-img { min-height: 280px; order: -1; }
  .hero-img::after { background: linear-gradient(180deg, transparent 50%, var(--ink) 100%); }
  .rule-inner { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    background: var(--ink-soft);
    padding: 0.5rem;
    border: 1px solid var(--line);
    min-width: 240px;
  }
  .nav-panel.open { display: flex; }
  .site-head { position: relative; }
}

@media (max-width: 520px) {
  .rule-inner { grid-template-columns: 1fr; }
}
