:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --ink: #17231f;
  --muted: #62706a;
  --line: #d9ddd7;
  --accent: #bd583e;
  --green: #214b3a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
.section-wrap,
.site-footer {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.05rem;
}

.profile-photo {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  margin-left: 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
}

.wordmark {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-role {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.65rem, 1.15vw, 1.1rem);
}

.site-header nav a,
.text-link,
.card-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav a:hover,
.card-link:hover {
  color: var(--accent);
}

.hero {
  padding-block: clamp(2.2rem, 4vw, 3.8rem) clamp(4rem, 8vw, 6rem);
}

.eyebrow,
.card-index {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 0.99;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.hero-actions,
.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.button-dark {
  background: var(--green);
  color: #fff;
}

.button-dark:hover {
  background: #153629;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-footnote {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.work-section,
.writing-section,
.publications-section,
.expertise-section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.featured-writing-grid,
.featured-publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.featured-writing-card,
.featured-publication-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 35%);
}

.featured-publication-card {
  display: flex;
  flex-direction: column;
}

.featured-publication-card > .publication-meta:last-child {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-size: 0.82rem;
}

.featured-writing-grid,
.featured-publication-grid {
  margin-top: 2rem;
}

.featured-writing-card h3,
.featured-publication-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.featured-writing-card > p:last-child,
.featured-publication-card > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-writing-card h3 a,
.featured-publication-card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.featured-writing-card h3 a:hover,
.featured-publication-card h3 a:hover {
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.about-intro h2,
.contact-section h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}

.section-intro {
  max-width: 310px;
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 35%);
}

.work-visual {
  display: block;
  width: 100%;
  height: 165px;
  margin-bottom: 1.25rem;
  background: #fff;
  object-fit: contain;
}

.card-index {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.work-card h3,
.expertise-grid h3,
.writing-group h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.work-card > p:not(.card-index) {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 650;
}

.card-links {
  gap: 0.75rem 1.25rem;
  margin-top: auto;
}

.writing-section .section-heading {
  margin-bottom: 0;
}

.more-writing,
.more-publications {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.more-writing summary,
.more-publications summary {
  padding-block: 1rem;
  color: var(--green);
  cursor: pointer;
  font-weight: 650;
  text-underline-offset: 4px;
}

.more-writing[open] .writing-grid {
  margin-top: 0;
  padding-bottom: 1.5rem;
}

.more-publications .publication-list {
  margin-top: 0;
  margin-bottom: 1rem;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.writing-group {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.writing-group ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.writing-group a {
  font-size: 0.9rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.writing-group a:hover,
.writing-index:hover {
  color: var(--accent);
}

.publications-section .section-heading {
  margin-bottom: 0;
}

.publication-list {
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.publication-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.publication-year {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.publication-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.publication-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.expertise-card {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 35%);
}

.expertise-card--ai {
  grid-column: 1 / -1;
  background: #e9eee9;
}

.expertise-card--ai p:not(.card-index) {
  max-width: 880px;
}

.expertise-card .card-index {
  margin-bottom: 1.8rem;
}

.expertise-card p:not(.card-index) {
  margin-bottom: 0;
  color: var(--muted);
}

.expertise-card p + p {
  margin-top: 0.75rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.about-intro > p:last-child {
  color: var(--muted);
}

.career-timeline > h3 {
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.career-item {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.career-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.career-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.career-heading span,
.career-role {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
}

.career-heading span {
  flex: 0 0 auto;
}

.career-role {
  margin: 0.2rem 0 0.5rem;
}

.career-item > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-section {
  width: 100%;
  padding: clamp(3rem, 8vw, 6rem) max(1.5rem, calc((100% - 1120px) / 2));
  background: var(--green);
  color: #fff;
}

.contact-section .eyebrow {
  color: #edaa8d;
}

.contact-section h2 {
  max-width: 720px;
  margin-bottom: 1rem;
}

.contact-section > p:not(.eyebrow) {
  color: #d4dfd8;
}

.contact-form {
  display: grid;
  max-width: 760px;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #6f8a7b;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:disabled,
.form-field textarea:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.contact-form .button {
  justify-self: start;
}

.contact-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-note {
  max-width: 620px;
  margin: 0;
  color: #d4dfd8;
  font-size: 0.82rem;
}

.contact-alternative {
  margin-top: 1.5rem;
}

.contact-alternative a {
  color: #fff;
  font-weight: 650;
  text-underline-offset: 4px;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
}

.social-button {
  gap: 0.55rem;
  border-color: var(--line);
}

.social-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: background-color 160ms ease, color 160ms ease;
}

.social-link:hover {
  background: var(--green);
  color: var(--paper);
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

@media (max-width: 1000px) {
  .site-header {
    min-height: 68px;
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
    padding-block: 0.8rem;
  }

  .brand-lockup {
    width: 100%;
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-role {
    white-space: normal;
  }

  .site-header nav {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 1.1rem;
    overflow-x: auto;
  }

  .site-header nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-wrap,
  .site-footer {
    width: min(100% - 2rem, 1120px);
  }

  .site-header {
    min-height: 68px;
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
    padding-block: 0.8rem;
  }

  .site-header nav {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 1.1rem;
    overflow-x: auto;
  }

  .site-header nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .brand-role {
    white-space: normal;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 1.25rem;
  }

  .work-grid,
  .writing-grid,
  .expertise-grid,
  .featured-writing-grid,
  .featured-publication-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 360px;
  }

  .work-visual {
    height: 190px;
  }

  .publication-item {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .publication-title {
    font-size: 1.05rem;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding-inline: 1rem;
  }
}

@media (max-width: 430px) {
  .site-header nav {
    gap: 0.9rem;
  }

  .site-header nav a {
    font-size: 0.7rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
