@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600;6..96,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  /* Sherry's portfolio palette */
  --peach: #ffd8be;
  --slate: #577590;
  --delphinium: #6198ae;
  --bright-white: #f4f5f0;

  /* Accessible supporting tones derived from the core palette */
  --ink: #263944;
  --slate-dark: #3f5b70;
  --blue-soft: #dce9ed;
  --peach-soft: #ffeadc;
  --paper: #fffdf9;
  --line: rgba(87, 117, 144, 0.25);
  --shadow: 0 18px 50px rgba(63, 91, 112, 0.12);
  --display: "Bodoni Moda", "Bodoni 72", "Bodoni MT", Didot, serif;
  --body: "Libre Baskerville", Baskerville, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bright-white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--slate-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

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

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
}

h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--slate-dark);
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 42px;
  color: #425b67;
  font-size: 1.05rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  color: var(--slate-dark);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 26px;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--slate);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 11vw, 138px) 0;
  background:
    linear-gradient(90deg, var(--delphinium) 0 69%, var(--peach) 69% 100%);
}

.hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -105px;
  bottom: -150px;
  border: 1px solid rgba(87, 117, 144, 0.32);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.55fr);
  gap: clamp(42px, 8vw, 105px);
  align-items: center;
} /* Hero eyebrow: DEVELOPMENTAL AND QUANTITATIVE SCIENTIST  */
.hero .eyebrow {
  color: var(--peach);
}

/* Main hero heading */
.hero h1 {
  color: var(--bright-white);
}

.hero h1 em {
  color: var(--peach);
  font-weight: 500;
}

.hero-summary {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--bright-white);
  font-size: clamp(1rem, 2vw, 1.17rem);
}

.hero-mark {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  color: var(--bright-white);
  background: var(--slate);
  border: 12px solid rgba(244, 245, 240, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--slate), var(--shadow);
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.08em;
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 7px 13px;
  color: var(--slate-dark);
  background: rgba(255, 216, 190, 0.54);
  border: 1px solid rgba(87, 117, 144, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  min-height: 50px;
  padding: 12px 22px;
  color: var(--bright-white);
  background: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(63, 91, 112, 0.14);
  font-size: 0.85rem;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--bright-white);
  background: var(--slate-dark);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--slate-dark);
  background: transparent;
  border-color: var(--slate);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--peach);
}

.text-link {
  color: var(--slate-dark);
}

.text-link:hover {
  color: var(--delphinium);
}

.section {
  padding: clamp(74px, 10vw, 118px) 0;
}

.section.blue-band {
  color: var(--bright-white);
  background: var(--slate);
}

.section.blue-band h2,
.section.blue-band h3,
.section.blue-band .eyebrow,
.section.blue-band .section-intro {
  color: var(--bright-white);
}

.section.peach-band {
  background: var(--peach);
}

.section.soft-blue-band {
  background: var(--blue-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading p {
  margin-bottom: 5px;
}

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

.project-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: var(--bright-white);
  background: rgba(255, 255, 255, 0.08);
  border-top: 8px solid var(--peach);
  box-shadow: 0 16px 42px rgba(33, 55, 68, 0.16);
}

.project-card:nth-child(2) {
  border-top-color: var(--delphinium);
}

.project-card:nth-child(3) {
  border-top-color: var(--slate-dark);
}

.project-number {
  display: block;
  margin-bottom: 35px;
  color: var(--peach);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card p {
  color: var(--bright-white);
  font-size: 0.92rem;
}

.project-card .meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 245, 240, 0.25);
  color: rgba(244, 245, 240, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-card .text-link {
  margin-top: 16px;
  justify-content: flex-start;
  font-size: 0.86rem;
  color: var(--bright-white);
}

.project-card .unavailable {
  color: var(--peach);
  cursor: default;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
}

.pull-quote {
  margin: 0;
  padding: 30px 0 30px 28px;
  color: var(--slate-dark);
  border-left: 7px solid var(--peach);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.65rem);
  line-height: 1.18;
}

.method-grid,
.implication-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-card,
.implication-card,
.metric-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.method-card h3,
.implication-card h3 {
  font-size: 1.36rem;
}

.method-card p,
.implication-card p,
.metric-card p {
  margin-bottom: 0;
  color: #425b67;
  font-size: 0.9rem;
}

.publication-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list li {
  padding: 22px 24px;
  background: rgba(244, 245, 240, 0.88);
  border-left: 6px solid var(--slate);
}

.publication-list li:nth-child(even) {
  border-left-color: var(--peach);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding: clamp(34px, 6vw, 62px);
  color: var(--bright-white);
  background: var(--slate-dark);
}

.contact-panel h2,
.contact-panel .eyebrow {
  color: var(--bright-white);
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-panel a {
  color: var(--peach);
  font-weight: 700;
}

footer {
  padding: 28px 24px;
  color: var(--bright-white);
  background: #314959;
  font-size: 0.78rem;
  text-align: center;
}

/* Case-study pages */
.case-hero {
  padding: clamp(66px, 9vw, 112px) 0 82px;
  background:
    linear-gradient(90deg, var(--slate) 0 74%, var(--peach) 74% 100%);
}

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--bright-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.case-hero .eyebrow,
.case-hero h1,
.case-summary {
  color: var(--bright-white);
}

.case-hero h1 {
  max-width: 960px;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.case-summary {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.snapshot-wrap {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  background: var(--bright-white);
  box-shadow: var(--shadow);
}

.snapshot div {
  padding: 25px;
  border-right: 1px solid var(--line);
}

.snapshot div:last-child {
  border-right: 0;
}

.snapshot dt {
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.case-section {
  padding: clamp(68px, 9vw, 104px) 0;
}

.case-section + .case-section {
  border-top: 1px solid var(--line);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.4fr) minmax(0, 1.1fr);
  gap: clamp(35px, 7vw, 95px);
}

.case-kicker {
  position: sticky;
  top: 112px;
  align-self: start;
  color: var(--slate);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-content {
  max-width: 820px;
}

.case-content > p:last-child,
.case-content > ul:last-child {
  margin-bottom: 0;
}

.question-list,
.role-list,
.measure-list {
  padding-left: 1.2rem;
}

.question-list li,
.role-list li,
.measure-list li {
  margin-bottom: 12px;
  padding-left: 6px;
}

.research-question {
  margin: 32px 0 0;
  padding: 28px;
  background: var(--peach);
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
}

.metric-grid {
  margin-top: 32px;
}

.metric-card {
  border-top: 7px solid var(--delphinium);
}

.metric-card:nth-child(2) {
  border-top-color: var(--peach);
}

.metric-card:nth-child(3) {
  border-top-color: var(--slate);
}

.metric-number {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-dark);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-block {
  margin-top: 35px;
  padding: clamp(28px, 5vw, 48px);
  color: var(--bright-white);
  background: var(--slate-dark);
}

.insight-block p {
  margin-bottom: 0;
  color: var(--bright-white);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  line-height: 1.25;
}

.theory-panel {
  padding: clamp(30px, 5vw, 50px);
  background: var(--blue-soft);
  border-left: 10px solid var(--delphinium);
}

.theory-panel p:last-child {
  margin-bottom: 0;
}

.application-section {
  background: var(--peach-soft);
}

.implication-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.implication-card {
  border-top: 6px solid var(--slate);
}

.implication-card:nth-child(even) {
  border-top-color: var(--delphinium);
}

.impact-measures {
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--bright-white);
  border-left: 7px solid var(--peach);
}

.impact-measures p:last-child {
  margin-bottom: 0;
}

.next-study {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.next-study > div {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.case-end {
  padding: 55px 0;
  background: var(--slate);
  text-align: center;
}

.case-end a {
  color: var(--bright-white);
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, var(--bright-white) 0 76%, var(--peach) 76% 100%);
  }

  .hero-grid,
  .section-heading,
  .two-column,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-summary {
    margin-inline: auto;
  }

  .tag-list,
  .actions {
    justify-content: center;
  }

  .hero-mark {
    width: 230px;
  }

  .work-grid,
  .method-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot div:nth-child(2) {
    border-right: 0;
  }

  .snapshot div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(100% - 30px, 1180px);
  }

  .nav-inner {
    min-height: auto;
    padding: 15px 0;
    flex-direction: column;
    gap: 13px;
  }

  .nav-links {
    justify-content: center;
    gap: 7px 14px;
  }

  .nav-links a {
    font-size: 0.66rem;
  }

  .hero {
    padding-top: 62px;
  }

  .actions .button {
    width: 100%;
  }

  .section-heading {
    gap: 10px;
  }

  .case-hero {
    background: var(--slate);
  }

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

  .snapshot div,
  .snapshot div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot div:last-child {
    border-bottom: 0;
  }

  .case-layout,
  .implication-grid,
  .next-study {
    grid-template-columns: 1fr;
  }

  .case-kicker {
    position: static;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Discussion / comments area */

.discussion-section {
  background: var(--blue-soft);
}

.discussion-section h2 {
  color: var(--ink);
}

.discussion-section .eyebrow {
  color: var(--slate-dark);
}

.discussion-section .section-intro {
  color: #425b67;
  max-width: 760px;
}

.giscus {
  margin-top: 32px;
  padding: 28px;
  background: var(--paper);
  border-top: 7px solid var(--peach);
}

/* Professional development discussion / Q&A */

.discussion-section {
  background: var(--blue-soft);
}

.discussion-section h2 {
  color: var(--ink);
}

.discussion-section .eyebrow {
  color: var(--slate-dark);
}

.discussion-section .section-intro {
  max-width: 820px;
  color: #425b67;
}

.giscus-comments {
  margin-top: 40px;
  padding: 28px;
  background: var(--paper);
  border-top: 7px solid var(--peach);
  box-shadow: var(--shadow);
}

.giscus-comments iframe {
  width: 100% !important;
}


/* =========================================
   CONTACT + INQUIRY FORM
   ========================================= */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 70px;
  align-items: start;
}

.contact-copy h2,
.contact-copy p {
  color: var(--off-white);
}

.contact-copy .eyebrow {
  color: var(--warm-beige);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 36px;
}

.contact-links a {
  color: var(--peach);
  font-weight: 700;
}


/* Inquiry box */

.inquiry-box {
  padding: 30px;
  background: var(--paper);
  border-top: 8px solid var(--peach);
}

.inquiry-box .eyebrow {
  color: var(--slate-dark);
}

.inquiry-box h3 {
  margin-bottom: 24px;
  color: var(--ink);
}


/* Form */

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inquiry-form label {
  color: var(--slate-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 13px 14px;

  color: var(--ink);
  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 2px;

  font-family: var(--body);
  font-size: 0.86rem;
}

.inquiry-form textarea {
  min-height: 140px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--slate);
  outline: 3px solid rgba(97, 152, 174, 0.18);
}

.inquiry-submit {
  width: fit-content;
  margin-top: 6px;
  cursor: pointer;
}


/* Mobile */

@media (max-width: 900px) {
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}
