/* AgroGuardAI — restrained editorial research design */

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --paper-deep: #eeece4;
  --surface: #fffefa;
  --ink: #1b2720;
  --ink-soft: #3c4940;
  --muted: #687269;
  --green: #315d43;
  --green-deep: #203d2d;
  --rust: #a66b50;
  --line: #d8d9d0;
  --line-light: rgba(255, 255, 255, .22);
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --container: 1160px;
  --header-height: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { color: var(--green-deep); background: #dce5d8; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-160%);
  background: var(--green-deep);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 239, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 16px; font-weight: 700; letter-spacing: -.045em; }

.nav-wrap { display: flex; align-items: center; gap: 34px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a,
.nav-contact {
  color: #58635b;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease;
}
.main-nav a:hover,
.nav-contact:hover { color: var(--green); }

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg { display: block; width: 20px; height: 24px; overflow: visible; }
.menu-toggle circle { fill: currentColor; }

/* Hero */

.hero { padding: 94px 0 86px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: clamp(48px, 7.4vw, 96px);
}

.hero-copy { min-width: 0; }

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 27px;
  height: 1px;
  background: var(--rust);
}
.eyebrow-separator { color: #a1a399; }

.hero h1 {
  max-width: 650px;
  margin: 26px 0 22px;
  font-family: var(--serif);
  font-size: clamp(60px, 6.6vw, 82px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 em { color: var(--green); font-weight: 400; }

.hero-lede {
  max-width: 540px;
  margin: 0;
  color: #5f6b62;
  font-size: 15px;
  line-height: 1.9;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4e5c52;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s ease, gap .2s var(--ease);
}
.text-link:hover { gap: 13px; color: var(--green-deep); }
.text-link-primary { color: var(--green); }

.hero-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #778076;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .025em;
}
.status-rule { width: 18px; height: 1px; background: var(--rust); }

.hero-figure {
  min-width: 0;
  margin: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--paper-deep);
}
.hero-figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #72796f;
  font-size: 9px;
  line-height: 1.5;
}
.hero-figure figcaption span:first-child {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .12em;
}
.hero-figure figcaption span:last-child { text-align: right; }

/* Central research question */

.thesis-section {
  padding: 37px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.thesis-grid {
  display: grid;
  grid-template-columns: .72fr 1.7fr .88fr;
  align-items: start;
  gap: 38px;
}

.thesis-label {
  margin: 5px 0 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.thesis-statement {
  max-width: 670px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 39px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.thesis-statement em { color: var(--green); font-weight: 400; }
.thesis-note {
  max-width: 260px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

/* Research focus */

.section { padding: 108px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1.12fr .78fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 54px;
}

.section-kicker { margin-bottom: 18px; }
.section-kicker span { color: var(--rust); }

.section-heading h2,
.challenge-copy h2,
.field-heading h2,
.integrity-copy h2,
.contact-layout h2 {
  max-width: 660px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.8vw, 61px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.03;
}

.section-description {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.research-list { border-top: 1px solid var(--line); }

.research-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(220px, .78fr);
  align-items: start;
  gap: 28px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.row-number {
  padding-top: 5px;
  color: var(--rust);
  font-family: var(--serif);
  font-size: 20px;
}
.row-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.row-title p {
  max-width: 490px;
  margin: 9px 0 0;
  color: #727a70;
  font-size: 12px;
  line-height: 1.75;
}
.row-detail {
  max-width: 390px;
  margin: 4px 0 0;
  color: #59655c;
  font-size: 12px;
  line-height: 1.85;
}

/* Why the work matters */

.challenge-section {
  padding: 88px 0 92px;
  background: var(--green-deep);
  color: #fffefa;
}

.challenge-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: start;
  gap: clamp(54px, 8vw, 112px);
}

.section-kicker-light { color: #c6d6c4; }
.section-kicker-light span { color: #d2a18a; }

.challenge-copy h2 {
  max-width: 440px;
  margin-top: 22px;
  color: #fffefa;
  font-size: clamp(43px, 5vw, 62px);
}
.challenge-copy > p:not(.section-kicker) {
  max-width: 440px;
  margin: 19px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.9;
}

.challenge-list { border-top: 1px solid var(--line-light); }
.challenge-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 17px;
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--line-light);
}
.challenge-item > span {
  padding-top: 2px;
  color: #d2a18a;
  font-family: var(--serif);
  font-size: 17px;
}
.challenge-item p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.8;
}
.challenge-item strong { color: #fffefa; font-weight: 600; }

/* Research approach */

.approach-section { padding-bottom: 104px; }
.approach-list { border-top: 1px solid var(--line); }
.approach-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 120px;
  align-items: start;
  gap: 28px;
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--line);
}
.approach-number {
  color: var(--rust);
  font-family: var(--serif);
  font-size: 22px;
}
.approach-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.approach-item p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}
.approach-tag {
  padding-top: 6px;
  color: #788176;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: right;
}

/* Field learning */

.field-section {
  padding: 100px 0 105px;
  background: var(--paper-deep);
}
.field-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(54px, 9vw, 126px);
}
.field-heading h2 { max-width: 500px; font-size: clamp(40px, 4.5vw, 56px); }
.field-heading > p:not(.section-kicker) {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.field-story {
  padding-top: 29px;
  border-top: 1px solid #cfd1c6;
}
.field-story blockquote {
  margin: 0 0 23px;
  padding-left: 20px;
  border-left: 2px solid var(--rust);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.22;
}
.field-story > p {
  margin: 0 0 14px;
  color: #59655c;
  font-size: 12px;
  line-height: 1.9;
}
.field-story .text-link { margin-top: 15px; }

/* Research status and limitations */

.integrity-section {
  padding: 65px 0 68px;
  border-bottom: 1px solid var(--line);
}
.integrity-layout {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  align-items: start;
  gap: 60px;
}
.integrity-layout > .section-kicker { margin-top: 9px; }
.integrity-copy h2 { max-width: 680px; font-size: clamp(35px, 3.8vw, 47px); }
.integrity-copy > p {
  max-width: 840px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}
.integrity-copy .integrity-caution {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--green-deep);
  font-weight: 600;
}

/* Collaboration and footer */

.contact-section { padding: 78px 0 82px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
}
.contact-layout h2 { font-size: clamp(39px, 4.1vw, 53px); }
.contact-copy p {
  max-width: 520px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.site-footer {
  padding: 28px 0 20px;
  background: #e9e9e1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #d2d4ca;
}
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-size: 14px; }
.footer-description { color: #737b71; font-size: 10px; }
.footer-email {
  justify-self: end;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 14px;
  color: #858a80;
  font-size: 9px;
}
.footer-bottom a { color: #657267; font-weight: 600; }
.footer-bottom a:hover { color: var(--green); }

/* Responsive layout */

@media (max-width: 980px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr); gap: 40px; }
  .hero h1 { font-size: clamp(54px, 6.8vw, 70px); }
  .thesis-grid { grid-template-columns: .72fr 1.5fr; gap: 22px 32px; }
  .thesis-note { grid-column: 2; max-width: 480px; }
  .section-heading { gap: 38px; }
  .challenge-layout { gap: 48px; }
  .field-layout { gap: 48px; }
}

@media (max-width: 720px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 40px); }

  .menu-toggle { display: grid; }
  .nav-wrap {
    position: absolute;
    z-index: 1001;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    padding: 22px max(20px, calc((100vw - var(--container)) / 2)) 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(245, 244, 239, .99);
    box-shadow: 0 14px 26px rgba(27, 39, 32, .09);
    -webkit-overflow-scrolling: touch;
  }
  .nav-wrap.is-open { display: flex; }
  .menu-toggle[aria-expanded="true"] { border-color: #aeb8a9; background: var(--paper-deep); }
  .main-nav { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-contact { padding: 10px 0 2px; font-size: 13px; }

  .hero { padding: 64px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { max-width: 620px; margin: 22px 0 17px; font-size: clamp(52px, 10.5vw, 69px); }
  .hero-lede { max-width: 590px; font-size: 14px; }
  .hero-status { margin-top: 30px; }
  .hero-figure { width: min(100%, 560px); }
  .hero-figure img { max-height: 420px; }

  .thesis-section { padding: 29px 0 32px; }
  .thesis-grid { grid-template-columns: 1fr; gap: 12px; }
  .thesis-statement { max-width: 620px; font-size: 31px; }
  .thesis-note { grid-column: auto; max-width: 540px; margin-top: 2px; }

  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 34px; }
  .section-heading h2,
  .field-heading h2 { font-size: clamp(39px, 8.8vw, 52px); }
  .research-row { grid-template-columns: 34px 1fr; gap: 10px 16px; padding: 22px 0 24px; }
  .row-number { padding-top: 4px; font-size: 18px; }
  .row-title h3 { font-size: 25px; }
  .row-detail { grid-column: 2; max-width: 560px; margin-top: 0; }

  .challenge-section { padding: 72px 0; }
  .challenge-layout { grid-template-columns: 1fr; gap: 37px; }
  .challenge-copy h2 { max-width: 540px; font-size: clamp(45px, 9.5vw, 54px); }
  .challenge-copy > p:not(.section-kicker) { max-width: 600px; }
  .challenge-item { grid-template-columns: 30px 1fr; gap: 12px; }

  .approach-section { padding-bottom: 78px; }
  .approach-item { grid-template-columns: 34px 1fr; gap: 10px 16px; padding: 22px 0; }
  .approach-number { font-size: 19px; }
  .approach-item h3 { font-size: 22px; }
  .approach-tag { grid-column: 2; padding-top: 0; text-align: left; }

  .field-section { padding: 75px 0; }
  .field-layout { grid-template-columns: 1fr; gap: 34px; }
  .field-story { padding-top: 24px; }

  .integrity-section { padding: 50px 0; }
  .integrity-layout { grid-template-columns: 1fr; gap: 12px; }
  .integrity-copy h2 { font-size: 39px; }

  .contact-section { padding: 64px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 22px; }
  .contact-layout h2 { font-size: 44px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-description { grid-column: 1; grid-row: 2; }
  .footer-email { grid-column: 2; grid-row: 2; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .brand span { font-size: 15px; }
  .hero h1 { font-size: clamp(47px, 11.8vw, 56px); }
  .eyebrow { gap: 7px; font-size: 9px; letter-spacing: .09em; }
  .hero-links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-figure figcaption { flex-direction: column; gap: 5px; }
  .hero-figure figcaption span:last-child { text-align: left; }
  .thesis-statement { font-size: 28px; }
  .challenge-copy h2 { font-size: 45px; }
  .integrity-copy h2 { font-size: 35px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-description,
  .footer-email { grid-column: 1; grid-row: auto; justify-self: start; }
  .footer-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Custom not-found page */

.not-found {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  padding: 76px 0 100px;
}
.not-found-content { max-width: 720px; }
.not-found-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.not-found-code::before { width: 28px; height: 1px; background: var(--rust); content: ""; }
.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.not-found p {
  max-width: 510px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.not-found .text-link { margin-top: 26px; }
