:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fcfbfa; /* Very subtle warm cream/grey */
  --text: #1a1a1a;
  --text-light: #555555;
  --primary: #0a0f1c; /* Deep, extremely dark navy/black */
  --border: #e6e6e6;
  --focus: #d1b48c; /* Subtle, muted gold for accents if needed, or keep stark */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 1.25rem;
  font-family: "Libre Baskerville", serif;
  font-weight: 400; /* Unbolded serifs look much more luxurious */
  color: var(--text);
  line-height: 1.2;
}

p {
  margin: 0 0 1.5rem;
  color: var(--text-light);
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Libre Baskerville", serif;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

.brand-logo {
  width: 100%;
  height: 100%;
}

.logo-book {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

.logo-spine {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
}

.logo-pages {
  fill: none;
  stroke: var(--text-light);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.logo-accent {
  fill: var(--primary);
}

/* Typography Utilities */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 8rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  margin-bottom: 4rem;
}

/* Hero */
.hero {
  padding: 10rem 0 8rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 900px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw + 1rem, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 3.5rem;
  color: var(--text-light);
}

/* Roster / Capabilities Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 6rem;
}

.service-item {
  border-top: 1px solid var(--primary);
  padding-top: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Subjects */
.subjects-container {
  max-width: 1000px;
}

.subject-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subject-list li {
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

/* Consultation Form */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
}

.consult-info {
  max-width: 500px;
}

.consult-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-row {
  position: relative;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231a1a1a%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0px center;
  padding-right: 20px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1.25rem 3rem;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid var(--primary);
  font-weight: 600;
  border-radius: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.form-status {
  min-height: 1.1em;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.form-status.success {
  color: #1a4f36;
}

.form-status.error {
  color: #8c2323;
}

/* Footer */
.site-footer {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 0;
  }
  .hero {
    padding: 6rem 0 4rem;
    min-height: auto;
  }
  .hero-copy h1 {
    font-size: 2.5rem;
  }
  .roster-grid,
  .consult-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
