/* ============================================
   Professional Portfolio Styles
   Modern, clean, minimal design
   ============================================ */

:root {
  /* Colors */
  --brand-primary: #a31a55;
  --brand-accent: #8b0000;

  --text-primary: #0a0a0a;
  --text-body: #1a1a1a;
  --text-muted: #5a6573;

  --bg-page: rgba(239, 239, 234, 0.95);
  --bg-content: rgba(239, 239, 234, 0.95);
  --bg-subtle: #fafafa;

  --border-color: #dee2e6;
  --border-light: #e9ecef;

  /* Layout */
  --max-width: 720px;
  --container-padding: 24px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line-height-body: 1.7;
  --line-height-heading: 1.3;
}

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

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--line-height-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px 0;
  line-height: var(--line-height-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  margin: 0 0 16px 0;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

em {
  font-style: italic;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul,
ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

blockquote {
  margin: 0 0 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--brand-primary);
  background: var(--bg-subtle);
  font-style: italic;
  color: var(--text-body);
}

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

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

main {
  background: var(--bg-content);
  min-height: 70vh;
  padding: 48px 0;
}

.section {
  padding: 40px 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 64px;
  gap: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-initials {
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

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

.brand-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-link:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  position: relative;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.nav-toggle:hover {
  background: var(--bg-subtle);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-list a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-list a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--bg-subtle);
  font-weight: 600;
  position: relative;
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
}

/* Mobile Navigation */
@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 12px 0;
    min-height: 56px;
  }

  .brand-initials {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .brand-link {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 52px;
    background: var(--bg-content);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 10px 14px;
  }

  .nav-list a[aria-current="page"]::after {
    bottom: auto;
    right: 8px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
  }
}

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

.hero {
  padding-top: 64px;
}

.quote {
  margin: 0 0 40px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand-primary);
  background: var(--bg-subtle);
  font-style: italic;
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.6;
}

.hero-intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.hero-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
  margin-top: 0;
}

.lead {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.6;
}

.mission-statement,
.portfolio-navigation {
  margin-top: 48px;
}

.mission-statement h2,
.portfolio-navigation h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-image {
    max-width: 160px;
    margin: 0 auto;
  }

  .quote {
    font-size: 16px;
    padding: 16px 20px;
  }
}

/* ============================================
   Cards
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-content);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 12px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Contact page cards - wider layout */
.cards-contact {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
  .cards-contact {
    grid-template-columns: 1fr;
  }
}

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

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
  border: 1px solid var(--brand-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--brand-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

/* ============================================
   Forms
   ============================================ */

.form {
  display: grid;
  gap: 16px;
}

.form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--text-primary);
}

.form input,
.form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-body);
  font-family: var(--font-family);
  font-size: 15px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(163, 26, 85, 0.1);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-help {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.btn-submit {
  background: var(--brand-primary);
  color: white;
  border: 1px solid var(--brand-primary);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* ============================================
   Tabs
   ============================================ */

.tabs {
  margin-top: 24px;
}

.tab-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.tab-list [role="tab"] {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.tab-list [role="tab"]:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  border-radius: 6px 6px 0 0;
}

.tab-list [role="tab"][aria-selected="true"] {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 600;
}

.tab-panels {
  padding: 24px 0;
}

/* ============================================
   Timeline (Resume)
   ============================================ */

.timeline {
  position: relative;
  padding-left: 0;
  margin-top: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 140px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border-color);
}

.timeline .item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 32px;
}

.timeline .item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: 134px;
  top: 24px;
  width: 13px;
  height: 13px;
  background: var(--brand-primary);
  border: 3px solid var(--bg-content);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border-color);
  z-index: 2;
}

.timeline .when {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  text-align: right;
  padding-right: 32px;
  padding-top: 20px;
}

.timeline .what {
  padding-top: 16px;
}

.timeline .what strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline .what .muted,
.timeline .what p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .timeline::before {
    left: 100px;
  }

  .timeline .item {
    grid-template-columns: 100px 1fr;
    gap: 24px;
  }

  .timeline .item::before {
    left: 94px;
  }

  .timeline .when {
    font-size: 13px;
    padding-right: 24px;
  }
}

/* ============================================
   Prose (Biography, Philosophy)
   ============================================ */

.prose {
  max-width: 680px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  margin-bottom: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose .image-right {
  float: right;
  margin: 8px 0 16px 24px;
  max-width: 40%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prose .image-left {
  float: left;
  margin: 8px 24px 16px 0;
  max-width: 40%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prose .caption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 600px) {

  .prose .image-right,
  .prose .image-left {
    float: none;
    margin: 16px auto;
    max-width: 100%;
    display: block;
  }
}

/* ============================================
   Link Lists
   ============================================ */

.link-list {
  list-style: disc;
  padding-left: 24px;
}

.link-list li {
  margin-bottom: 12px;
}

.link-list a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 500;
}

.link-list a:hover {
  color: var(--brand-accent);
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}

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

.site-footer {
  background: var(--bg-content);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: 64px;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ============================================
   Callout
   ============================================ */

.callout {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-primary);
  border-radius: 6px;
}

.callout h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.callout p {
  margin-bottom: 0;
}

/* ============================================
   Utility Classes
   ============================================ */

.eyebrow {
  color: var(--brand-primary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

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