/* ========================================
   True and Useful — Global Styles
   ======================================== */

:root {
  /* Colors — Light */
  --color-bg: #faf9f7;
  --color-bg-alt: #f2f0eb;
  --color-text: #141414;
  --color-text-muted: #555;
  --color-accent: #1a472a;
  --color-accent-hover: #0f2d1a;
  --color-border: #e0ddd6;
  --color-blockquote-bg: #f5f4f0;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  /* Layout */
  --container-max: 640px;
  --line-length: 60ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f0f0e;
    --color-bg-alt: #171715;
    --color-text: #ebe9e4;
    --color-text-muted: #8a8880;
    --color-accent: #6db567;
    --color-accent-hover: #8fcf89;
    --color-border: #252420;
    --color-blockquote-bg: #151513;
  }
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-lg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: 'liga' 1, 'kern' 1;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.375rem, 1.125rem + 1vw, 1.625rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

p {
  max-width: var(--line-length);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--color-text);
}

/* ========================================
   Layout Utilities
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Text Utilities
   ======================================== */

.muted {
  color: var(--color-text-muted);
}

.label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.lead {
  font-size: clamp(1.1875rem, 1.0625rem + 0.5vw, 1.3125rem);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ========================================
   Site Wordmark
   ======================================== */

.wordmark {
  display: block;
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

.wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.wordmark:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .wordmark {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 100;
    margin-bottom: 0;
  }
  
  .wordmark span {
    font-size: 0.625rem;
  }
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .lead {
  margin-bottom: 0;
}

/* ========================================
   Content Blocks
   ======================================== */

.prose > * + * {
  margin-top: var(--space-sm);
}

.prose > * + h2,
.prose > * + h3 {
  margin-top: var(--space-lg);
}

/* ========================================
   Work Items
   ======================================== */

.work-list {
  list-style: none;
}

.work-item {
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.work-item:first-child {
  padding-top: 0;
}

.work-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.work-item h3 {
  margin-bottom: 0.25rem;
}

.work-item h3 a {
  text-decoration-color: var(--color-accent);
}

.work-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-size: 0.9375em;
}

.work-item .tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  padding: 0.2em 0.6em;
  border-radius: 2px;
  margin-left: 0.5em;
  vertical-align: middle;
}

/* ========================================
   Testimonials / Blockquotes
   ======================================== */

.testimonials {
  display: grid;
  gap: var(--space-md);
}

blockquote {
  background: var(--color-blockquote-bg);
  border-left: 2px solid var(--color-accent);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  margin: 0;
  font-style: italic;
}

blockquote p {
  margin-bottom: var(--space-xs);
  font-size: 1.0625em;
}

blockquote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--color-text-muted);
}

blockquote cite::before {
  content: '— ';
}

/* ========================================
   FAQ / Questions
   ======================================== */

.faq-list {
  list-style: none;
}

.faq-item {
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.faq-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ========================================
   Team / Founders
   ======================================== */

.team-member {
  margin-bottom: var(--space-sm);
}

.team-member:last-of-type {
  margin-bottom: 0;
}

.team-member h3 {
  display: inline;
  font-weight: 500;
  margin-right: var(--space-xs);
}

.team-member .links {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.team-member .links a {
  color: var(--color-text-muted);
}

.team-member .links a:hover {
  color: var(--color-text);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--color-accent);
  padding: 0.8em 1.6em;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

@media (prefers-color-scheme: dark) {
  .btn {
    color: #0f0f0e;
  }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  max-width: none;
  margin-bottom: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 640px) {
  .hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
  }
  
  .section {
    padding-block: var(--space-2xl);
  }
}

@media (min-width: 900px) {
  .wordmark {
    top: var(--space-xl);
    left: var(--space-xl);
  }
}
