/* ==========================================================================
   1. Custom Properties
   ========================================================================== */

:root {
  --color-cream: #faf6f0;
  --color-warm-white: #fefcf9;
  --color-sand: #e8ddd0;
  --color-terracotta: #c4704b;
  --color-terracotta-dark: #a85a38;
  --color-bark: #3d2c22;
  --color-charcoal: #2c2420;
  --color-sage: #5e7351;
  --color-sage-light: #e8ede4; /* reserved for future use */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --container-max: 72rem;
  --content-max: 42rem;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--color-terracotta-dark);
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.page {
  padding: var(--space-xl) var(--space-md);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-bark);
  margin-bottom: var(--space-lg);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.page-intro {
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  max-width: 32rem;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.site-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-sand);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-bark);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-terracotta);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-bark);
  text-decoration: none;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

/* ==========================================================================
   5. Hero (Home)
   ========================================================================== */

.hero {
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-terracotta);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-bark);
  margin-bottom: var(--space-lg);
}

.hero-intro {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 36rem;
}

/* ==========================================================================
   6. Home Sections
   ========================================================================== */

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

.home-section .page {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-bark);
  margin-bottom: var(--space-lg);
}

.ventures {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.venture {
  background: var(--color-warm-white);
  border: 1px solid var(--color-sand);
  border-radius: 12px;
  padding: var(--space-lg);
}

.venture-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-bark);
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   7. Blog
   ========================================================================== */

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

.blog-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-sand);
}

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

.blog-item:last-child {
  border-bottom: none;
}

.blog-item-date {
  font-size: 0.875rem;
  color: var(--color-sage);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-item-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.blog-item-title a {
  color: var(--color-bark);
  text-decoration: none;
}

.blog-item-title a:hover {
  color: var(--color-terracotta);
}

.blog-item-excerpt {
  margin-top: var(--space-sm);
  line-height: 1.7;
}

/* ==========================================================================
   8. Post
   ========================================================================== */

.post-header {
  margin-bottom: var(--space-xl);
}

.post-date {
  font-size: 0.875rem;
  color: var(--color-sage);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-bark);
  margin-top: var(--space-sm);
}

.post-subtitle {
  font-size: 1.15rem;
  color: var(--color-terracotta);
  margin-top: var(--space-sm);
}

.post-body p {
  margin-bottom: var(--space-md);
}

.post-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-sand);
}

/* ==========================================================================
   9. Resume
   ========================================================================== */

.resume-meta {
  font-size: 1rem;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
}

.resume-section {
  margin-bottom: var(--space-2xl);
}

.resume-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-sand);
}

.resume-entry {
  margin-bottom: var(--space-xl);
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry-header {
  display: flex;
  flex-direction: column;
}

.resume-role {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-bark);
}

.resume-dates {
  font-size: 0.9rem;
  color: var(--color-sage);
  font-weight: 500;
}

.resume-company {
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.resume-downloads {
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.resume-summary {
  margin-bottom: var(--space-md);
}

.resume-bullets {
  list-style: none;
  padding: 0;
}

.resume-bullets li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: var(--space-sm);
}

.resume-bullets li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--color-terracotta);
}

/* ==========================================================================
   10. Contact
   ========================================================================== */

.contact-links {
  margin-top: var(--space-lg);
}

.contact-links p {
  margin-bottom: var(--space-md);
}

/* Contact form styles reserved for future use */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-bark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--color-sand);
  border-radius: 8px;
  background: var(--color-warm-white);
  color: var(--color-charcoal);
  transition: border-color 0.2s var(--ease-out);
}

/* Uses :focus (not :focus-visible) so inputs always show focus state on click */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.12); /* terracotta at 12% opacity */
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

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

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-sage);
}

/* ==========================================================================
   12. Shared Components
   ========================================================================== */

.btn {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  color: white;
}

.cta-btn {
  margin-top: var(--space-md);
}

.deliver-list dt {
  font-weight: 700;
  color: var(--color-bark);
  margin-top: var(--space-md);
}

.deliver-list dt:first-child {
  margin-top: 0;
}

.deliver-list dd {
  margin-left: 0;
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   13. Accessibility & Motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* ==========================================================================
   14. Responsive — Tablet (600px+)
   ========================================================================== */

@media (min-width: 600px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .page {
    padding: var(--space-xl) var(--space-lg);
  }

  .site-header {
    padding: var(--space-lg) 0;
  }

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-list {
    gap: var(--space-lg);
  }

  .hero {
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  }

  .resume-entry-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .btn {
    display: inline-block;
    width: auto;
  }

  .ventures {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* ==========================================================================
   15. Responsive — Desktop (900px+)
   ========================================================================== */

@media (min-width: 900px) {
  .container {
    max-width: var(--container-max);
    margin: 0 auto;
  }

  .page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 6rem var(--space-lg) var(--space-2xl);
  }
}
