@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */

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

/* ─── Tokens ─────────────────────────────────────────────── */

:root {
  --color-text:    rgb(81, 90, 96);
  --color-accent:  rgb(65, 183, 171);
  --color-bg:      #fff;
  --font-family:   'Lato', Helvetica, sans-serif;
  --font-size:     18px;
  --font-weight:   300;
  --line-height:   1.6;
  --max-width:     950px;
  --gap:           15px;
}

/* ─── Base ───────────────────────────────────────────────── */

html {
  font-size: var(--font-size);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  line-height: var(--line-height);
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75em;
}

h1 { font-size: 28px; font-weight: 200; }
h2 { font-size: 20px; font-weight: 700; }

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Layout wrapper ─────────────────────────────────────── */

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* ─── Header / Nav ───────────────────────────────────────── */

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1rem;
}

.site-nav__logo {
  font-family: Avenir, sans-serif;
  font-size: 30px;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.site-nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
}

/* ─── Main content ───────────────────────────────────────── */

main {
  padding-top: 0;
  padding-bottom: 4rem;
}

/* ─── Home ───────────────────────────────────────────────── */

.home-known-for,
.home-exploring {
  margin-bottom: 3rem;
}

.home-known-for h1,
.home-exploring h2 {
  margin-bottom: 0.5em;
}

/* ─── Home headshot ──────────────────────────────────────── */

.home-headshot {
  margin-bottom: 2.5rem;
}

.home-headshot img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

/* ─── Work ───────────────────────────────────────────────── */

.work-intro {
  margin-bottom: 3rem;
}

.work-case-studies {
  margin-bottom: 3rem;
}

.case-study {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
}


.case-study__client {
  margin-bottom: 0.2em;
}

.case-study__role {
  font-size: 0.9rem;
  color: var(--color-accent);
  margin: 0 0 1em;
  font-weight: 400;
}

.case-study__images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.case-study__images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-credentials {
  padding-top: 2rem;
  border-top: 1px solid var(--color-accent);
}

/* ─── About images ───────────────────────────────────────── */

.about-headshot {
  margin-bottom: 2.5rem;
}

.about-headshot img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.about-work-image {
  margin-bottom: 2rem;
}

.about-work-image img {
  width: 100%;
}

/* ─── Article cover ──────────────────────────────────────── */

.article__hero {
  margin-bottom: 2rem;
}

.article__hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ─── Speaking photos ────────────────────────────────────── */

.speaking-photo {
  width: 100%;
  margin: 1.5rem 0;
}

/* ─── Speaking ───────────────────────────────────────────── */

.speaking-intro,
.speaking-workshops,
.speaking-talks {
  margin-bottom: 3rem;
}

/* ─── Writing ────────────────────────────────────────────── */

.writing-section {
  margin-bottom: 3.5rem;
}

.writing-section__heading {
  margin-bottom: 0.25em;
}

.writing-section__desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #888;
}

.writing-section__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-accent);
}

.writing-section__more:hover {
  text-decoration: underline;
}



.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.writing-list__item {
  padding: 0;
}

@media (max-width: 700px) {
  .writing-list {
    grid-template-columns: 1fr;
  }
}

.writing-list__item a {
  text-decoration: none;
  display: block;
}

.writing-list__item a:hover .writing-list__title {
  color: var(--color-accent);
}

.writing-list__title {
  font-size: 16px;
  font-weight: 400;
  display: block;
  margin-bottom: 0.25em;
}

.writing-list__date {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5em;
}

.writing-list__intro {
  margin: 0;
  font-size: 0.95rem;
}

.writing-list__empty {
  color: #999;
  font-style: italic;
}

/* ─── Article ────────────────────────────────────────────── */

.article {
  max-width: 680px;
}

.article__header {
  margin-bottom: 2rem;
}

.article__title {
  margin-bottom: 0.25em;
}

.article__date {
  font-size: 0.85rem;
}

.article__body {
  margin-bottom: 3rem;
}

.article__nav {
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.article__nav a {
  text-decoration: none;
}

.article__nav a:hover {
  color: var(--color-accent);
}

/* ─── Email capture ──────────────────────────────────────── */

.email-capture {
  border-top: 1px solid var(--color-accent);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.email-capture__inner {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.email-capture__heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
}

.email-capture__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-capture__form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.5em 0.75em;
  border: 1px solid #cdd1d4;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
}

.email-capture__form input[type="email"]:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.email-capture__form button {
  padding: 0.5em 1.25em;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.email-capture__form button:hover {
  background: rgb(50, 160, 148);
}

.email-capture__success {
  color: var(--color-accent);
  font-weight: 400;
}

.email-capture__notice,
.email-capture__error {
  font-weight: 400;
}

/* ─── About ──────────────────────────────────────────────── */

.about-intro,
.about-bio,
.about-education,
.about-making {
  margin-bottom: 3rem;
}

.about-making__instagram {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ─── Carousel ───────────────────────────────────────────── */

.carousel {
  margin-top: 1.5rem;
}

.carousel__track {
  position: relative;
}

.carousel__slide {
  display: none;
}

.carousel__slide--active {
  display: block;
}

.carousel__slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.carousel__btn {
  background: none;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.25em 0.75em;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.carousel__btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.carousel__count {
  font-size: 0.85rem;
  color: #999;
}

/* ─── Home making teaser ─────────────────────────────────── */

.home-making {
  margin-bottom: 3rem;
  padding-top: 2rem;
  font-size: 0.95rem;
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
  :root {
    --font-size: 16px;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav__links {
    gap: 1rem;
  }

}
