/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1rem; color: var(--color-ink); background: var(--color-surface); }
img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Theme tokens === */
:root, [data-theme="light"] {
  --content: 1200px;
  --color-ink: #1a1410;
  --color-ink-soft: #6b5e52;
  --color-ink-faint: #a89888;
  --color-ink-inverse: #f5f0e6;
  --color-line: #e0d8cc;
  --color-surface: #faf7f2;
  --color-surface-2: #f3ede4;
}

/* === Tailwind-style utilities === */

/* Display */
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex/Grid */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-px { gap: 1px; }

/* Sizing */
.min-h-screen { min-height: 100vh; }
.max-w-xl { max-width: 36rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.shrink-0 { flex-shrink: 0; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Color utilities with CSS vars */
.text-\[var\(--color-ink-soft\)\] { color: var(--color-ink-soft); }
.text-\[var\(--color-ink-faint\)\] { color: var(--color-ink-faint); }
.text-\[var\(--color-ink\)\] { color: var(--color-ink); }
.text-\[var\(--color-ink-inverse\)\] { color: var(--color-ink-inverse); }

/* Layout */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-\[var\(--color-line\)\] { border-color: var(--color-line); }
.rounded-2xl { border-radius: 1rem; }

/* Background */
.bg-\[var\(--color-surface-2\)\] { background-color: var(--color-surface-2); }

/* Opacity */
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Space */
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Transition */
.transition { transition-property: color, background-color, border-color, opacity; transition-duration: 200ms; }

/* Responsive: md = 768px */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:inline-flex { display: inline-flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-32 { padding-bottom: 8rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:p-7 { padding: 1.75rem; }
  .md\:p-9 { padding: 2.25rem; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
}

/* Small breakpoint */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Hover states */
.hover\:text-\[var\(--color-ink\)\]:hover { color: var(--color-ink); }

/* Arbitrary padding values used inline with pb-24, pb-32 */
.pb-24 { padding-bottom: 6rem; }

/* === Custom component styles === */

/* Seal – circular monogram */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-ink-soft);
  flex-shrink: 0;
}

/* Eyebrow – small caps label */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Display – heading type */
.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.display em {
  font-style: italic;
  font-weight: 400;
}

/* Tag – small pill label */
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink-soft);
}

/* Buttons */
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--color-ink);
  color: var(--color-ink-inverse);
  border: none;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-ink:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--color-ink); }

/* Envelope / message card */
.envelope {
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: 1rem;
}

/* Dotted rule */
.dotted-rule {
  border: none;
  border-top: 1.5px dotted var(--color-line);
}

/* Handwritten accent */
.handwritten {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-ink-soft);
}

/* Pricing tiers */
.tier {
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-surface);
}
.tier.is-featured {
  background: var(--color-ink);
  color: var(--color-ink-inverse);
  border-color: transparent;
}
.tier.is-featured .display {
  color: var(--color-ink-inverse);
}
.tier.is-featured .eyebrow {
  color: rgba(245, 240, 230, 0.6);
}

/* Tier divider */
.tier-line {
  border: none;
  border-top: 1px solid var(--color-line);
}
.tier.is-featured .tier-line {
  border-color: rgba(245, 240, 230, 0.15);
}

/* Fade-up entrance */
.fade-up {
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Text color utilities for inverse context */
.text-\[var\(--color-ink-inverse\)\]\/70 { color: rgba(245, 240, 230, 0.7); }
