@font-face {
  font-family: 'Ferma Yagod Text';
  src: url('fonts/FermaYagodText-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ferma Yagod Text';
  src: url('fonts/FermaYagodText-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #032050;
  --ink-faded: var(--brush-ink);
  --plum: #493765;
  --paper: #fcf9f5;
  --card: #fff;
  --lavender: #eae6f5;
  --leaf: #e1ebac;
  --leaf-dark: #3f4926;
  --line: #d7dad4;
  --focus: #674684;
  --sans: 'Ferma Yagod Text', system-ui, sans-serif;
  --wrap: 86rem;
  --gutter: clamp(1rem, 3.9vw, 4.5rem);
  --radius: 16px;
  --brush-ink: #2c4b7d;
  --brush-frame: url('brush-frame.webp');
  --grid-gap: clamp(.85rem, 1.65vw, 1.6rem);
}

.farm-link,
.home-field,
.home-feature,
.home-panel,
.card-link,
.about-photo img,
.haskap-topic,
.haskap-card,
.haskap-card-link {
  border-radius: var(--radius);
}

:where(.farm-link, .home-feature, .home-panel, .story, .card-link, .about-photo,
       .feature-photo, .product-photo, .haskap-topic, .haskap-card,
       .contact-panel, .faq, .order-band) {
  position: relative;
}

:where(.faq, .order-band) { border-radius: var(--radius); }

/* Rounded corners stay fixed while the brush stroke adapts to each panel. */
:where(.farm-link, .home-feature, .home-panel, .story, .card-link, .about-photo,
       .feature-photo, .product-photo, .haskap-topic, .haskap-card,
       .contact-panel, .faq, .order-band)::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--brush-ink);
  border-radius: var(--radius);
  border-image: var(--brush-frame) 54 / 18px stretch;
}

@media (forced-colors: active) {
  :root { --brush-frame: none; }
}

.card-image { border-radius: var(--radius) var(--radius) 0 0; }

.haskap-topic,
.haskap-card-link {
  overflow: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper) url('paper-light.webp') repeat;
  font: 400 1.125rem/1.55 var(--sans);
}
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3, :where(.card-title) { margin: 0; }
a { color: inherit; }
ul[role='list'] { list-style: none; padding: 0; margin: 0; }
::selection { color: var(--ink); background: var(--leaf); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 0; z-index: 20; padding: .75rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(.5rem); }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

h1, h2, h3, :where(.card-title) { font-weight: 700; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.625rem, 5.65vw, 5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); }
h3, :where(.card-title) { font-size: clamp(1.275rem, 1.9vw, 1.8rem); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.275rem); line-height: 1.55; max-width: 39rem; }
.text-link { color: var(--ink); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: .26em; }
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  padding: .55rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button:hover { background: var(--plum); border-color: var(--plum); }
.button--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--small { min-height: 2.75rem; padding-inline: .95rem; font-size: .9375rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: clamp(1rem, 2.2vw, 1.85rem);
}
.brand { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; }
.brand-wordmark { width: clamp(10.75rem, 19vw, 17rem); height: auto; }
.header-row > .button { grid-column: 2; grid-row: 1; justify-self: end; }
.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 2.8vw, 2.75rem);
  margin-top: .75rem;
}
.site-nav a {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding-block: .35rem;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--ink); }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  padding-block: var(--grid-gap);
}
.home-field { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 70% 66%; }
.farm-link { display: grid; min-width: 0; text-decoration: none; }
.farm-link-label { position: absolute; inset: auto auto 1rem 1rem; gap: .65rem; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.farm-link:hover .farm-link-label, .farm-link:focus-visible .farm-link-label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.home-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(18rem, 28vw, 26rem);
  padding: clamp(1.5rem, 3.7vw, 3.8rem);
  background: var(--leaf);
}
.home-feature h1 { font-size: clamp(3.125rem, 5.35vw, 5rem); line-height: .99; max-width: 9ch; text-wrap: balance; }
.home-feature p { max-width: 30ch; margin-top: 1rem; line-height: 1.45; }
.feature-link {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: .75rem;
  min-height: 3rem;
  margin-top: clamp(1.5rem, 2.8vw, 2.75rem);
  font-weight: 500;
  text-decoration: none;
}
.arrow-disc { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--paper); }
.feature-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.feature-link:hover .arrow-disc { background-color: var(--plum); }
.section { padding-block: clamp(2.65rem, 5.3vw, 4.75rem); }
.section-tight { padding-block: clamp(2rem, 4.2vw, 3.65rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: .75rem 1.5rem; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.section-heading .text-link { flex: none; padding-block: .2rem; }
.catalog-empty p { max-width: 40rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-image { overflow: hidden; background: var(--lavender); }
.card-image img { aspect-ratio: 1.65; object-fit: cover; transition: transform .24s ease-out; }
.card-link:hover .card-image img { transform: scale(1.025); }
.card-body { padding: .95rem .85rem 1.1rem; flex: 1; }
.card-body p { margin-top: .4rem; font-size: 1.0625rem; overflow-wrap: anywhere; }
.card-title { text-underline-offset: .18em; }
.card-link:hover .card-title { text-decoration: underline; }
.card-meta, .product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; }
.card-meta { margin-top: .42rem; font-size: 1rem; }
.card-meta strong, .product-meta strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.card-meta strong { font-size: 1.3125rem; line-height: 1.2; }
.tag {
  display: inline-block;
  max-width: 100%;
  padding: .22rem .58rem;
  border-radius: .125rem;
  background: var(--leaf);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}
.tag--soon { background: var(--lavender); }
.tag--out { background: var(--paper); }

.story { overflow: hidden; border-radius: var(--radius); background: var(--lavender); }
.story img { height: clamp(14rem, 25vw, 22rem); object-fit: cover; object-position: 50% 66%; }
.story--berry { color: var(--paper); background: var(--plum); }
.story--berry img { object-position: 55% 50%; }
.story--berry .text-link { color: var(--paper); }
.story--berry .text-link:hover { color: var(--leaf); }
.story--berry :focus-visible { outline-color: var(--leaf); }
.story-copy { display: grid; gap: .75rem; padding: clamp(1.25rem, 3.6vw, 2.55rem); }
.story-copy p { max-width: 32rem; }
.story-copy a { justify-self: start; }

.feature, .product-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1.6rem, 5vw, 5rem); }
.feature-photo img, .product-image { border-radius: var(--radius); object-fit: cover; background: var(--lavender); }
.feature-photo img { aspect-ratio: 1.55; object-position: 50% 68%; }
.feature-text .lead { margin-top: .9rem; }
.feature-text .cluster { margin-top: 1.25rem; }

.about-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: clamp(1.6rem, 5vw, 5rem); }
.info-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(1.25rem, 5vw, 5rem); }
.home-panel {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: clamp(1.25rem, 3.6vw, 2.55rem);
  background: var(--card);
  overflow-wrap: anywhere;
}
.home-faq { grid-column: 1 / -1; gap: var(--grid-gap); }
.home-faq .faq { padding: 0; }
.home-faq .faq::after { content: none; }
.home-contacts { background: var(--leaf); }
.home-contacts .button { justify-self: start; }
.faq { padding: .2rem .9rem; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; min-height: 3.35rem; padding: .76rem .1rem; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: .56rem; height: .56rem; border-inline-end: 1.5px solid var(--plum); border-block-end: 1.5px solid var(--plum); transform: rotate(45deg); margin-right: .4rem; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { margin: 0 1.8rem 1rem 0; }
.faq details:target { scroll-margin-block: 2rem; }
.faq details:target summary { text-decoration: underline; text-underline-offset: .22em; }

.order-band {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto clamp(1.25rem, 3.2vw, 2.5rem);
  background: var(--leaf);
}
.order-band .wrap { width: auto; margin-inline: clamp(1rem, 3.9vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.15rem 2rem; }
.order-band p { margin-top: .55rem; max-width: 36rem; }
.order-band .button { flex: none; }

.site-footer { border-top: 1px solid var(--line); padding-block: 2.25rem; }
.site-footer .brand-wordmark { width: 11rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; }
.footer-nav .text-link { font-size: .9375rem; }
.footer-note { margin-top: 1rem; font-size: .9375rem; }

.page-head { padding-block: clamp(1.8rem, 3.3vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1, .product-copy h1 { font-size: clamp(2.525rem, 6.3vw, 5.25rem); }
.page-head .lead { margin-top: .85rem; }
.catalog-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-block: var(--grid-gap);
}
.catalog-tiles .home-field { height: auto; aspect-ratio: 16 / 9; object-position: center; }
.catalog-tiles #seedlings .home-field { object-position: 50% 66%; }
.catalog-section + .catalog-section, .catalog-order { margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.catalog-order { margin-bottom: 0; }
.bread { margin-bottom: 1.4rem; font-size: .9375rem; }
.bread ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; list-style: none; margin: 0; padding: 0; }
.bread li + li::before { content: '/'; margin-right: .55rem; }
.bread a { text-underline-offset: .22em; }
.product-image { aspect-ratio: 1.25; }
.product-copy { min-width: 0; }
.product-copy .lead, .product-copy .cluster, .product-note { margin-top: 1rem; }
.product-meta { margin-top: .85rem; }
.product-meta strong { font-size: clamp(1.375rem, 2.25vw, 1.95rem); }
.product-description { margin-top: 1.3rem; overflow-wrap: anywhere; }
.prose { max-width: 42rem; }
.prose h2, .prose h3 { margin-bottom: .7rem; }
.prose p + p { margin-top: .8rem; }
.contact-panel { padding: clamp(1.15rem, 3.4vw, 2.5rem); background: var(--lavender); border-radius: var(--radius); overflow-wrap: anywhere; }
.contact-panel p + p { margin-top: .65rem; }
.contact-qr {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  max-width: 100%;
}
.contact-qr img { width: 9.25rem; max-width: 100%; }
.order-steps { margin: .85rem 0 0; padding-left: 1.35rem; }
.order-steps li { padding-left: .25rem; }
.order-steps li + li { margin-top: .55rem; }

@media (max-width: 46rem) {
  .site-nav { justify-content: flex-start; gap: 0 1.25rem; }
  .site-nav a { font-size: 1.0625rem; }
  .home-grid { --grid-gap: .625rem; grid-template-columns: minmax(0, 1fr); }
  .home-field { height: auto; aspect-ratio: 2.2; }
  .catalog-tiles { grid-template-columns: minmax(0, 1fr); }
  .catalog-tiles .home-field { aspect-ratio: 2.2; }
  .home-grid :is(.home-feature, .home-panel, .story-copy) { padding: 1rem; }
  .home-grid :is(.home-panel, .story-copy) { gap: .5rem; }
  .home-feature { min-height: 0; }
  .home-feature h1 { font-size: clamp(2rem, 7.25vw, 3rem); max-width: none; }
  .home-feature p { margin-top: .5rem; max-width: 42ch; }
  .feature-link { margin-top: .625rem; min-height: 2.75rem; }
  .arrow-disc { width: 2.75rem; height: 2.75rem; }
  .home-grid h2 { font-size: clamp(1.5rem, 4.65vw, 1.875rem); }
  .home-grid .story img { height: auto; max-height: 12rem; aspect-ratio: 2.25; }
  .home-grid :is(.story-copy .text-link, .home-news-link) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .home-grid .home-faq { gap: var(--grid-gap); }
  .home-faq .faq summary { min-height: 2.75rem; padding-block: .4rem; }
  .home-grid .news-preview {
    grid-template-columns: clamp(4rem, 19%, 6.5rem) minmax(0, 1fr);
    padding-block: .5rem;
  }
  .home-grid .news-list li:first-child .news-preview { padding-top: 0; }
  .home-contacts .prose p + p { margin-top: .5rem; }
  .feature, .product-grid, .info-grid, .about-story { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-meta { align-items: flex-start; }
  .card-image img { aspect-ratio: 1.22; }
  .product-copy { grid-row: 1; }
  .product-image { aspect-ratio: 1.5; }
}
@media (max-width: 34rem) {
  .header-row { gap: .375rem .75rem; padding-block: .5rem; }
  .header-row .brand-wordmark { width: clamp(7.5rem, 37vw, 10.75rem); }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(6.25rem, 1fr);
    gap: .375rem;
    margin-top: 0;
  }
  .site-nav a {
    justify-content: center;
    min-height: 2.75rem;
    padding: .2rem .125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .site-nav a[aria-current] { background: var(--leaf); }
  .site-nav a:focus-visible { outline-offset: -2px; }
  .header-row > .button { padding-inline: .75rem; }
  .home-grid .home-field { aspect-ratio: 2.8; }
  .home-grid .farm-link-label { inset: auto auto .65rem .65rem; }
  .home-grid .story {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
    align-items: start;
  }
  .home-grid .story img {
    align-self: stretch;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    contain: size;
  }
  .home-grid .story-copy { gap: .25rem; padding: .75rem .85rem .5rem; }
  .home-grid .story-copy p { font-size: 1rem; line-height: 1.4; }
  .card-body { padding-top: .7rem; }
  .card-meta { flex-direction: column; gap: .35rem; }
  .card-body p { font-size: 1rem; }
  .story img { height: auto; aspect-ratio: 1.6; }
  .order-band .wrap { align-items: flex-start; flex-direction: column; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Page about blue honeysuckle */
.haskap :is(h2, h3, details[id]) { scroll-margin-block: 1.25rem; }
.haskap-intro { padding-bottom: 0; }
.haskap-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.1rem 2rem;
  margin-bottom: clamp(1.25rem, 3.2vw, 2.75rem);
}
.haskap-heading .lead { margin-top: .75rem; max-width: 46rem; }
.haskap-shop { display: grid; justify-items: start; gap: .75rem; }
.haskap-shop .product-meta { margin-top: 0; }
.haskap-topics {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  grid-template-areas: 'varieties faq' 'varieties articles';
  grid-template-rows: 1fr .72fr;
  gap: .45rem;
}
.haskap-topic {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.haskap-topic--varieties { grid-area: varieties; color: var(--paper); background: var(--plum); }
.haskap-topic--varieties:focus-visible { outline-offset: -4px; outline-color: var(--leaf); }
.haskap-topic--faq { grid-area: faq; background: var(--leaf); }
.haskap-topic--articles { grid-area: articles; background: var(--lavender); }
.haskap-topic-photo { overflow: hidden; }
.haskap-topic-photo img {
  aspect-ratio: 2.65;
  object-fit: cover;
  object-position: center 63%;
  transition: transform .48s cubic-bezier(.16, 1, .3, 1);
}
.haskap-topic-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .75rem;
  padding: clamp(1rem, 2.35vw, 2rem);
  font-size: clamp(1.3rem, 2.75vw, 2.45rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.haskap-topic-caption > span:first-child { max-width: 25ch; text-wrap: balance; }
.haskap-arrow {
  display: grid;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color .18s, color .18s;
}
.haskap-arrow::before {
  content: '';
  width: .56rem;
  height: .56rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.1rem) rotate(45deg);
  transition: transform .2s ease-out;
}
.haskap-topic--varieties .haskap-arrow { background: var(--paper); color: var(--ink); }
.haskap-topic--articles .haskap-arrow { transform: rotate(-90deg); }
.haskap-topic:is(:hover, :focus-visible) .haskap-topic-caption > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
.haskap-topic:is(:hover, :focus-visible) .haskap-topic-photo img { transform: scale(1.035); }
.haskap-topic:is(:hover, :focus-visible) .haskap-arrow::before { transform: translateY(.1rem) rotate(45deg); }
.haskap-questions { padding-top: clamp(2.65rem, 5.3vw, 4.75rem); }
.haskap .faq summary::after { transition: transform .2s ease-out; }

.haskap-varieties { background: var(--lavender); }
.haskap-image-note { font-size: 1rem; color: var(--ink-faded); }
.haskap-origin-filter { margin-block: 1.5rem 2rem; }
.haskap-origin-filter p { margin-bottom: .5rem; font-weight: 700; }
.haskap-origin-filter ul { gap: .5rem; }
.haskap-origin-filter a { background: var(--paper); border-color: var(--ink); }
.haskap-origin-filter a:is(:hover, [aria-current]) { background: var(--ink); color: var(--paper); }
.haskap-origin-filter a[aria-current] { font-weight: 700; }
.haskap-country + .haskap-country { margin-top: clamp(2.65rem, 5.3vw, 4.75rem); }
.haskap-country > h3 { margin-bottom: 1rem; }
.haskap-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: var(--grid-gap);
}
.haskap-card { min-width: 0; background: var(--card); scroll-margin-block: 1.25rem; }
.haskap-card-link { display: block; text-decoration: none; }
.haskap-berry-photo { aspect-ratio: 4 / 3; object-fit: cover; background: var(--leaf); }
.haskap-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  padding: .65rem .8rem .75rem;
  min-height: 4.65rem;
}
.haskap-card-name { min-width: 0; overflow-wrap: anywhere; font-weight: 700; line-height: 1.15; }
.haskap-card-label::after {
  content: '';
  flex: 0 0 .45rem;
  height: .45rem;
  margin-inline-end: .15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.haskap-card-link:is(:hover, :focus-visible) .haskap-card-name { text-decoration: underline; text-underline-offset: .18em; }
.haskap-nursery { margin-top: 1.75rem; }
.haskap-variety h1 { margin-bottom: clamp(1.25rem, 3.2vw, 2.5rem); }
.haskap-variety .product-grid { align-items: start; }
.haskap-variety .haskap-berry-photo { border-radius: var(--radius); }
.haskap-variety figcaption { margin-top: .5rem; }
.haskap-variety-copy dl { display: grid; gap: .75rem; margin: 0; }
.haskap-variety-copy dt { font-weight: 700; }
.haskap-variety-copy dd { margin: 0; }
.haskap-variety-copy > p { margin-top: 1rem; }
.haskap-sources { margin-top: 1.4rem; }
.haskap-sources h2 { font-size: 1.125rem; margin-bottom: .35rem; letter-spacing: normal; }
.haskap-sources ul { margin: 0; padding-inline-start: 1.25rem; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .haskap .faq details[open] p { animation: haskap-expand .24s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes haskap-expand {
    from { opacity: .65; transform: translateY(-.2rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 63rem) {
  .haskap-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .haskap-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'varieties varieties' 'faq articles';
    grid-template-rows: auto auto;
  }
  .haskap-topic-caption { align-items: center; flex: 1; }
  .haskap-topic-photo img { aspect-ratio: 1.85; }
  .haskap-topic-caption { font-size: clamp(1.15rem, 4vw, 1.65rem); }
  .haskap-topic--varieties .haskap-topic-caption { font-size: clamp(1.25rem, 4.65vw, 1.9rem); }
  .haskap-arrow { width: 2.25rem; height: 2.25rem; }
}
@media (max-width: 36rem) {
  .haskap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .haskap-topic-caption { padding: .8rem .7rem; gap: .35rem; }
}
@media (max-width: 22rem) {
  .haskap-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .haskap-topic:is(:hover, :focus-visible) .haskap-topic-photo img { transform: none; }
}

/* News */
html:has(#news:target) { scroll-behavior: auto; }
#news { scroll-margin-block-start: .75rem; }
.home-news-link { justify-self: start; padding-block: .35rem; }
.news-archive .wrap { max-width: 56rem; }
.news-archive h1 { margin-bottom: clamp(1.15rem, 3vw, 2rem); }
.news-list li + li { border-top: 1px solid var(--line); }
.news-preview {
  display: grid;
  grid-template-columns: clamp(4.5rem, 24%, 8.75rem) minmax(0, 1fr);
  align-items: start;
  gap: var(--grid-gap);
  padding-block: .85rem;
  color: var(--ink);
  text-decoration: none;
}
.news-list li:last-child .news-preview { padding-bottom: 0; }
.news-preview img, .news-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--lavender);
}
.news-preview img { object-fit: cover; }
.news-gallery img { object-fit: contain; }
.news-preview time, .news-detail-header time {
  display: block;
  color: var(--ink-faded);
  font-size: .9375rem;
  line-height: 1.3;
}
.news-preview-title {
  margin-top: .2rem;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.news-preview:is(:hover, :focus-visible) .news-preview-title { text-decoration-thickness: 2px; }
.news-preview p { margin-top: .4rem; font-size: 1rem; line-height: 1.45; }
.news-detail h1 { max-width: 24ch; text-wrap: balance; }
.news-detail-header time { margin-top: .65rem; }
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.6rem, 5vw, 5rem);
  margin-top: clamp(1.35rem, 3.2vw, 2.5rem);
}
.news-detail-copy { overflow-wrap: anywhere; }
.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.news-gallery figure:first-child { grid-column: 1 / -1; }
.news-gallery figcaption { color: var(--ink-faded); font-size: 1rem; }
@media (max-width: 46rem) {
  .news-detail-layout { grid-template-columns: minmax(0, 1fr); gap: var(--grid-gap); }
}

/* Haskap articles */
.haskap-article-index > .wrap { max-width: 55rem; }
.haskap-article-index h1 {
  margin-block: .85rem clamp(1.15rem, 3vw, 2rem);
  font-size: clamp(1.8375rem, 3.955vw, 3.5rem);
}
.haskap-article-list { display: grid; gap: var(--grid-gap); }
.haskap-article-preview { display: grid; align-items: center; }
.haskap-article-preview > img {
  width: 50%;
  justify-self: center;
  margin-block-start: 1rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--lavender);
}
.haskap-article-preview-copy { padding: clamp(1rem, 2.35vw, 2rem); }
.haskap-article-preview h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.haskap-article-preview:is(:hover, :focus-visible) h2 { text-decoration-thickness: 2px; }
.haskap-article-preview p { margin-top: .45rem; }
@media (min-width: 41rem) {
  .haskap-article-preview:has(> img) { grid-template-columns: minmax(0, 1fr) minmax(0, 5fr); }
  .haskap-article-preview > img { width: 100%; margin-block-start: 0; }
}
.haskap-article > .wrap { max-width: 55rem; }
.haskap-article h1 {
  max-width: 25ch;
  margin-block: .85rem 1.2rem;
  font-size: clamp(1.575rem, 3.39vw, 3rem);
  text-wrap: balance;
}
.haskap-article h2 {
  margin-block: clamp(2rem, 5vw, 3.25rem) .65rem;
  font-size: clamp(1.125rem, 2.1vw, 1.8rem);
}
.haskap-article :is(p, h2, ul, .faq) { max-width: 42rem; }
.haskap-article p + p { margin-top: .8rem; }
.haskap-article :is(ul, ol) { padding-inline-start: 1.35rem; }
.haskap-article li + li { margin-top: .55rem; }
.haskap-article .faq { margin-top: 1.65rem; }

.haskap-article-table {
  overflow-x: auto;
  margin-top: .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.haskap-article-table table {
  width: 100%;
  min-width: 38rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.haskap-article-table thead { background: var(--lavender); }
.haskap-article-table thead th:nth-child(1) { width: 17%; }
.haskap-article-table thead th:nth-child(2) { width: 22%; }
.haskap-article-table thead th:nth-child(3) { width: 17%; }
.haskap-article-table :is(th, td) {
  padding: .65rem .75rem;
  text-align: start;
  vertical-align: top;
}
.haskap-article-table tbody tr { border-top: 1px solid var(--line); }
.haskap-article-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.haskap-article-table a:focus-visible { outline-offset: 2px; }

.haskap-article-table-hint { display: none; }
@media (max-width: 41rem) {
  .haskap-article p.haskap-article-table-hint {
    display: block;
    margin-top: .55rem;
    color: var(--ink-faded);
    font-size: 1rem;
  }
}
