/* Colour palette */
:root {
  /* Primary: Warm brown */
  --color-wood-50: oklch(0.97 0.008 45);
  --color-wood-100: oklch(0.94 0.015 45);
  --color-wood-200: oklch(0.88 0.035 45);
  --color-wood-300: oklch(0.82 0.055 45);
  --color-wood-400: oklch(0.72 0.085 45);
  --color-wood-500: oklch(0.62 0.105 45);
  --color-wood-600: oklch(0.52 0.095 45);
  --color-wood-700: oklch(0.42 0.085 45);
  --color-wood-800: oklch(0.32 0.075 45);
  --color-wood-900: oklch(0.25 0.065 45);
  --color-wood-950: oklch(0.18 0.055 45);

  /* Secondary: Sage green */
  --color-sage-50: oklch(0.97 0.015 135);
  --color-sage-100: oklch(0.94 0.025 135);
  --color-sage-200: oklch(0.88 0.045 135);
  --color-sage-300: oklch(0.82 0.065 135);
  --color-sage-400: oklch(0.72 0.085 135);
  --color-sage-500: oklch(0.62 0.095 135);
  --color-sage-600: oklch(0.52 0.085 135);
  --color-sage-700: oklch(0.42 0.075 135);
  --color-sage-800: oklch(0.32 0.065 135);
  --color-sage-900: oklch(0.25 0.055 135);
  --color-sage-950: oklch(0.18 0.045 135);

  /* Neutral: Warm gray */
  --color-stone-50: oklch(0.985 0.001 106.423);
  --color-stone-100: oklch(0.97 0.001 106.424);
  --color-stone-200: oklch(0.923 0.003 48.717);
  --color-stone-300: oklch(0.869 0.005 56.366);
  --color-stone-400: oklch(0.709 0.01 56.259);
  --color-stone-500: oklch(0.553 0.013 58.071);
  --color-stone-600: oklch(0.444 0.011 73.639);
  --color-stone-700: oklch(0.374 0.01 67.558);
  --color-stone-800: oklch(0.268 0.007 34.298);
  --color-stone-900: oklch(0.216 0.006 56.043);
  --color-stone-950: oklch(0.147 0.004 49.25);

  /* Black and white */
  --color-black: #000;
  --color-white: #fff;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-stone-900);
    background-color: var(--color-stone-100);
}

html {
    scroll-behavior: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.site-header {
    margin-bottom: 3rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-wood-800);
    margin-bottom: 1rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 2rem 1rem 0;
    border: 4px solid var(--color-wood-400);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    float: left;
}

.intro-text {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--color-wood-700);
    text-decoration: underline;
    text-decoration-color: var(--color-wood-300);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

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

a:visited {
    color: var(--color-stone-600);
    text-decoration-color: var(--color-stone-400);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: var(--color-stone-50);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-stone-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.content-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-wood-800);
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-sage-400);
    padding-left: 1rem;
}

.section-anchor {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.section-anchor::after {
    content: "#";
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--color-sage-400);
}

.section-anchor:hover::after{
    opacity: 1;
}

.section-text {
    color: var(--color-stone-700);
    margin-bottom: 1rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* Special sections */
.personal-section {
    border-left: 4px solid var(--color-wood-400);
}

.researcher-section {
    border-left: 4px solid var(--color-sage-400);
}

.business-section {
    border-left: 4px solid var(--color-wood-500);
}

.education-section {
    border-left: 4px solid var(--color-sage-500);
}

.speaker-section {
    border-left: 4px solid var(--color-wood-600);
}

/* Research visual */
.research-visual {
    margin: 2rem 0;
    text-align: center;
}

.accent-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-attribution {
    font-size: 0.85rem;
    color: var(--color-stone-500);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Callout */
.resources-callout {
    background: linear-gradient(135deg, var(--color-sage-50) 0%, var(--color-sage-100) 100%);
    border: 1px solid var(--color-sage-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.callout-text {
    color: var(--color-stone-700);
    margin: 0;
}

/* Speaking table */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--color-stone-200);
}

.speaking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.table-header {
    background: linear-gradient(135deg, var(--color-sage-50) 0%, var(--color-sage-100) 100%);
}

.header-row th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-wood-800);
    border-bottom: 2px solid var(--color-wood-300);
    font-size: 0.9rem;
}

.speaking-row {
    border-bottom: 1px solid var(--color-stone-200);
    transition: background-color 0.2s ease;
}

.speaking-row:hover {
    background-color: var(--color-stone-50);
}

.speaking-row:last-child {
    border-bottom: none;
}

.speaking-row td {
    padding: 1rem 0.75rem;
    vertical-align: top;
    color: var(--color-stone-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

.year-cell {
    font-weight: 600;
    color: var(--color-wood-700);
    white-space: nowrap;
}

.type-cell {
    color: var(--color-sage-700);
    font-weight: 500;
    white-space: nowrap;
}

.title-cell {
    font-weight: 500;
    max-width: 300px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .site-header {
    padding: 1.5rem;
  }

  .site-title {
    font-size: 2rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .speaking-table {
    font-size: 0.8rem;
  }

  .header-row th,
  .speaking-row td {
    padding: 0.75rem 0.5rem;
  }
}