/* biocrops.net — static stylesheet */

/* ---------- Fonts (self-hosted Raleway, variable) ---------- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
:root {
  --accent: #ff5837;
  --ink: rgba(0, 0, 0, 0.9);
  --text: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.15);
  --paper: #f8f8f6;
  --link: #2f7d32;
  --gutter: 40px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Raleway", "Segoe UI", Arial, sans-serif;
  font-size: 17.2px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.ta-c { text-align: center; }
.ta-j { text-align: justify; }

/* ---------- Header ---------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
  padding: 0 76px;
}
.logo img { width: 144px; height: auto; }

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.7px;
  line-height: 50px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 16px 36px / 0 2px;
  transition: background-size 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background-size: calc(100% - 32px) 2px; }

.nav-toggle,
.nav-burger { display: none; }

/* ---------- Sections ---------- */
.section { padding: 60px var(--gutter); }
.wrap { max-width: 1060px; margin: 0 auto; }
.wrap.narrow { max-width: 895px; }
.wrap.narrow > hr,
.team > hr { margin-left: -82px; margin-right: -82px; }

.kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.48px;
  line-height: 1.5;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
}
.page-title {
  margin: 0 0 4px;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}
.page-title,
.kicker { overflow-wrap: anywhere; }

/* ---------- Home ---------- */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.page-home .site-nav a { color: #fff; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 150px 76px 80px;
  overflow: hidden;
  background: #1c2a1c;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: url("../img/hero.jpg") center / cover no-repeat;
  filter: blur(2px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.hero-inner { position: relative; z-index: 1; max-width: 944px; }
.hero h1 {
  margin: 0 0 42px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.btn {
  display: inline-block;
  min-width: 192px;
  padding: 15px 32px;
  font-size: 15.2px;
  font-weight: 500;
  letter-spacing: 0.456px;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: 5px;
  transition: background-color 0.2s;
}
.btn:hover { background: #e8472a; }

/* ---------- Goals (dark section) ---------- */
.section-dark {
  color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)),
    url("../img/goals-bg.jpg") center / cover no-repeat #111;
}
.section-dark .page-title { color: #fff; font-weight: 600; }
.section-dark .kicker { margin-top: 12px; }
.section-dark hr { border-top-color: rgba(255, 255, 255, 0.4); margin: 32px -82px; }
.section-dark p { margin: 0; }

/* ---------- Team ---------- */
.team .kicker { margin-bottom: 24px; }
.group-title {
  margin: 24px 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 12px -82px;
}
.member {
  width: 33.333%;
  max-width: 366px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.2s;
}
.member:hover img { opacity: 0.88; }
.member-name {
  display: block;
  margin-top: 15px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Person ---------- */
.person {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.person-photo { flex: 0 0 332px; padding-top: 8px; }
.person-photo img { width: 100%; }
.person-text { flex: 1; min-width: 0; }
.person-text p { margin: 0; }
.person-text p:first-child { margin-bottom: 16px; }
.person-text ul { margin: 0.5em 0; padding-left: 1.3em; }

/* ---------- Publications ---------- */
.pubs .page-title { margin-top: 40px; font-weight: 600; }
.pubs hr { margin: 44px 0 0; }
.year {
  margin: 56px 0 28px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.pubs p {
  margin: 0 0 28px;
  font-size: 16px;
  text-align: justify;
}
.pubs p a { color: var(--link); text-underline-offset: 2px; }
.pubs p a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { padding: 42px var(--gutter) 24px; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-main p { flex: 1; margin: 0; text-align: center; }
.footer-fni { width: 204px; flex: none; }
.footer-logo { width: 148px; flex: none; }
.footer-bottom {
  margin-top: 56px;
  font-size: 14px;
  text-align: right;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover,
.footer-bottom a[aria-current="true"] { color: var(--ink); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .header-inner { min-height: 90px; padding: 0 20px; position: relative; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: var(--ink); }
  .page-home .nav-burger span { background: #fff; }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a,
  .page-home .site-nav a { padding: 0 20px; color: var(--ink); background-position: 20px 38px; }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { background-size: 28px 2px; }

  .section { padding: 36px var(--gutter); }
  .wrap.narrow > hr,
  .team > hr,
  .section-dark hr { margin-left: 0; margin-right: 0; }

  .hero { padding: 120px 20px 60px; }
  .hero h1,
  .page-title { font-size: 34px; }
  .year { font-size: 32px; margin-top: 40px; }
  .group-title { font-size: 24px; }

  .team-grid { margin-left: -10px; margin-right: -10px; }
  .member { width: 50%; padding: 10px; }
  .member-name { font-size: 17px; }

  .person { flex-direction: column; gap: 24px; }
  .person-photo { flex: none; width: 100%; max-width: 332px; margin: 0 auto; }

  .ta-j,
  .pubs p { text-align: left; }

  .footer-main { flex-direction: column; gap: 24px; }
  .footer-bottom { margin-top: 32px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1,
  .page-title { font-size: 28px; }
  .member { width: 100%; max-width: 320px; }
}
