/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --accent:        #3ecb8e;
  --accent-dark:   #2fad77;
  --text:          #e2e2e0;
  --text-muted:    #888;
  --text-dim:      #555;
  --bg:            #0c0d0f;
  --bg-surface:    #141517;
  --bg-elevated:   #1a1c1f;
  --border:        #242628;
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 720px;
  --wide-width:    1080px;
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--wide-width);
}

/* ============================================================
   Typography
   ============================================================ */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

p {
  margin-top: 1rem;
}

p:first-child {
  margin-top: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

ul, ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.5rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ============================================================
   Header
   ============================================================ */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

nav .nav-cta {
  background: var(--accent);
  color: #0c0d0f;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

nav .nav-cta:hover {
  background: var(--accent-dark);
  color: #0c0d0f;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 8rem;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: var(--text);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0c0d0f;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  background: var(--accent-dark);
  color: #0c0d0f;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn--outline:hover {
  border-color: var(--text-muted);
  background: transparent;
  color: #fff;
}

/* ============================================================
   Home — Hero
   ============================================================ */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero h1 {
  max-width: 640px;
}

.hero .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 560px;
  color: var(--text-muted);
}

.hero .cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   Home — Capabilities
   ============================================================ */
.capabilities {
  padding: 6rem 0;
}

.capabilities-header {
  margin-bottom: 3.5rem;
}

.capabilities-header h2 {
  max-width: 480px;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.tile {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tile-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}

.tile-content h3 {
  margin-bottom: 0.5rem;
}

.tile-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   Interior page header
   ============================================================ */
.page-header {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  max-width: 680px;
  margin-top: 1.25rem;
}

/* Availability indicator — edit text in services.html */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.availability::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* ============================================================
   Services page
   ============================================================ */
.services-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.services-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.services-section h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.services-section > p + p {
  margin-top: 1rem;
}

.pricing-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 2rem 2rem;
  margin: 2rem 0;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.price-detail {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.week-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
}

.week-list li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  align-items: start;
}

.week-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.services-section .cta {
  margin-top: 1.5rem;
}

/* ============================================================
   About
   ============================================================ */
.about-body {
  padding: 3.5rem 0 1rem;
  max-width: 660px;
}

.about-body p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-body p + p {
  margin-top: 1.5rem;
}

.about-body .about-highlight {
  color: var(--text);
}

.about-body .cta {
  margin-top: 2.5rem;
}

/* ============================================================
   Writing
   ============================================================ */
.writing-body {
  padding: 3.5rem 0;
}

.writing-placeholder {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-body {
  padding: 3.5rem 0;
  max-width: 520px;
}

.contact-body > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-top: 1.5rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #e05252;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background: var(--bg-elevated);
  color: var(--text);
}

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

.field-error {
  display: none;
  font-size: 0.8125rem;
  color: #e05252;
  margin-top: 0.35rem;
}

.form-actions {
  margin-top: 2rem;
}

.form-message {
  display: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-message.success {
  display: block;
  color: var(--accent);
}

.form-message.error {
  display: block;
  color: #e05252;
}

/* ============================================================
   Legal
   ============================================================ */
.legal-body {
  padding: 3.5rem 0 5rem;
  max-width: 660px;
}

.legal-body h2 {
  font-size: 1.0625rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-body p + p {
  margin-top: 1rem;
}

.legal-date {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .tile-grid {
    border-top: none;
  }

  .tile {
    border-top: 1px solid var(--border);
    border-bottom: none;
  }

  .tile:last-child {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 4rem 0 4rem;
  }

  nav {
    gap: 1.25rem;
  }

  nav a {
    font-size: 0.8125rem;
  }

  nav .nav-cta {
    display: none;
  }

  .tile {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .week-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .pricing-block {
    padding: 1.25rem 1.25rem;
  }

  footer {
    margin-top: 5rem;
  }
}
