:root {
  --bg: #f6f8f3;
  --surface: #ffffff;
  --surface-soft: #f9fbf6;
  --line: #dde5d7;
  --line-strong: #c8d6be;
  --text: #111827;
  --muted: #647066;
  --green: #247536;
  --green-dark: #14542a;
  --green-soft: #e6f2df;
  --yellow: #ffc400;
  --amber: #c57a00;
  --danger: #b42318;
  --shadow: 0 14px 38px rgba(24, 43, 30, .10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 0 8vw;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 3px;
  width: 36px;
  height: 36px;
  transform: rotate(22deg);
}

.brand-mark span {
  width: 10px;
  height: 14px;
  background: var(--yellow);
  border-radius: 9px 9px 5px 5px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(5) {
  background: #f6b400;
}

.brand-text {
  color: var(--green);
  font-size: 2rem;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--text);
  font-weight: 600;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 34px);
  color: #222b35;
  font-weight: 700;
  font-size: .95rem;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--green);
  border-color: var(--green);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-button,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.price-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  color: #17120a;
  background: var(--yellow);
  border: 1px solid #e7ae00;
  border-radius: var(--radius);
  font-weight: 800;
}

.search-panel {
  position: sticky;
  top: 72px;
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(240px, 720px);
  gap: 14px;
  align-items: center;
  padding: 14px 8vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-panel label {
  font-weight: 800;
}

.search-panel input,
.newsletter-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

main {
  padding: 24px 8vw 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.10) 72%),
    url("../img/hero-field.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 44px 44px 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 14px 0 0;
  color: #253044;
  font-size: 1.1rem;
  font-weight: 600;
}

.quick-grid {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-card,
.tool-card,
.popular-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(24, 43, 30, .08);
}

.quick-card strong,
.tool-card strong,
.popular-item strong {
  display: block;
  font-size: .97rem;
  line-height: 1.22;
}

.quick-card small,
.tool-card small,
.popular-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.tile-icon,
.metric-icon,
.mail-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius);
}

.metric-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.metric-icon.amber,
.mail-icon {
  color: var(--amber);
  background: #fff3c4;
}

.arrow-icon {
  color: var(--green);
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.metric-panel,
.today-panel,
.section-block,
.newsletter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(24, 43, 30, .05);
}

.metric-panel,
.today-panel {
  padding: 24px;
}

.today-panel {
  border-color: #ebc766;
  background: linear-gradient(180deg, #fffdfa, #fff8e5);
}

.panel-heading,
.section-header,
.variety-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-heading h2,
.section-header h2,
.newsletter-panel h2,
.site-footer h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.price-value {
  margin: 12px 0 0;
  color: #101827;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.price-value span {
  font-size: .48em;
}

.price-change {
  margin: 10px 0 4px;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.region-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.region-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.today-panel h3 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.today-panel p {
  color: #475168;
}

.text-link,
.small-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, .86fr);
  gap: 22px;
  margin-top: 22px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.section-block {
  padding: 18px;
}

.section-block.tight {
  padding: 16px;
}

.section-header {
  margin-bottom: 14px;
}

.section-header.compact {
  align-items: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  color: #29313d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.variety-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.variety-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.variety-body {
  padding: 14px;
}

.variety-card h3,
.media-card h3,
.article-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.variety-title-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.producer-badge {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-align: right;
}

.type-badge {
  display: inline-flex;
  margin: 12px 0;
  padding: 3px 8px;
  color: #4c5b4f;
  background: #edf2ea;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trait-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.trait-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.trait-list dt {
  color: #4d5a63;
  font-size: .86rem;
}

.trait-list dd {
  margin: 0;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
}

.rating {
  display: inline-flex;
  gap: 4px;
}

.rating-dot {
  width: 8px;
  height: 8px;
  background: #d7ded1;
  border-radius: 50%;
}

.rating-dot.is-active {
  background: #5c9f19;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card,
.popular-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

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

.media-card,
.article-card {
  min-width: 0;
}

.thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(22, 45, 28, .76);
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  color: #fff;
  background: rgba(17, 24, 39, .82);
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 800;
}

.media-card h3 {
  margin-top: 10px;
}

.media-card p,
.article-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.article-grid {
  display: grid;
  gap: 12px;
}

.article-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.article-card img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
}

.popular-list {
  display: grid;
  gap: 10px;
}

.popular-item {
  min-height: 68px;
  padding: 10px;
  box-shadow: none;
}

.popular-item > .icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius);
}

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

.partner-logo {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 10px;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.newsletter-panel {
  padding: 22px;
  border-color: #ebc766;
  background: linear-gradient(180deg, #fffdfa, #fff8e5);
}

.newsletter-panel p {
  color: #475168;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0;
}

.newsletter-form button {
  min-height: 46px;
  padding: 0 24px;
  background: var(--yellow);
  border: 1px solid #e7ae00;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.flash {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 700;
}

.flash.success {
  color: var(--green-dark);
  background: var(--green-soft);
}

.flash.error {
  color: var(--danger);
  background: #fff0ef;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  color: #4d5a63;
  font-size: .85rem;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, .6fr));
  gap: 28px;
  margin-top: 28px;
  padding: 30px 8vw;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.site-footer h2 {
  font-size: .9rem;
}

.site-footer a {
  color: #4d5a63;
  font-size: .92rem;
}

.footer-brand .brand-text {
  font-size: 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.is-search-hidden {
  display: none !important;
}

.tool-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  color: #fff;
  background: #17251b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.access-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(246,248,243,.98), rgba(246,248,243,.82) 48%, rgba(246,248,243,.28)),
    url("../img/hero-field.png") center / cover no-repeat;
}

.access-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.access-card {
  width: min(520px, 100%);
  padding: 30px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.access-brand {
  margin-bottom: 24px;
}

.access-card h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.12;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  color: #303a46;
  font-weight: 800;
}

.access-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.access-form button {
  min-height: 48px;
  padding: 0 18px;
  color: #17120a;
  background: var(--yellow);
  border: 1px solid #e7ae00;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.access-error {
  margin: 0;
  padding: 10px 12px;
  color: var(--danger);
  background: #fff0ef;
  border-radius: var(--radius);
  font-weight: 800;
}

@media (max-width: 1320px) {
  .site-header {
    padding: 0 4vw;
  }

  main,
  .site-footer,
  .search-panel {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .hero-shell,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 74px;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    justify-self: end;
  }

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

  .content-split,
  .hero-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 64px;
    gap: 10px;
  }

  .brand-text {
    font-size: 1.55rem;
  }

  .brand-mark {
    grid-template-columns: repeat(3, 8px);
    width: 29px;
    height: 29px;
    gap: 2px;
  }

  .brand-mark span {
    width: 8px;
    height: 12px;
  }

  .price-button span {
    display: none;
  }

  .search-panel {
    top: 64px;
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 14px;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-media {
    opacity: .55;
  }

  .hero-content {
    padding: 28px 20px 16px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .quick-grid {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .portal-grid,
  .main-column,
  .side-column {
    gap: 14px;
  }

  .section-block,
  .metric-panel,
  .today-panel,
  .newsletter-panel {
    padding: 14px;
  }

  .panel-heading,
  .section-header,
  .variety-title-row {
    flex-direction: column;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .variety-grid,
  .tool-grid,
  .media-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .article-card img {
    width: 92px;
    height: 70px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
