/* ScrewFast layout and design by Meara Shadowfax, adapted from the MIT-licensed Astro edition. */
:root {
  color-scheme: light;
  --ink: #212121;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #fff;
  --surface: #faf9f7;
  --warm: #fff8ec;
  --accent: #f97342;
  --accent-hover: #f15f2e;
  --accent-ink: #a43d20;
  --radius: 16px;
  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 3.25rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
::selection { color: var(--ink); background: #fdd875; }
h1, h2, h3 { margin: 0; line-height: 1.23; font-weight: 730; overflow-wrap: anywhere; }
p { margin: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  top: .6rem;
  left: .6rem;
  padding: .6rem 1rem;
  background: var(--paper);
  border-radius: .5rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; padding-block: 1rem .35rem; }
.header-inner {
  display: flex;
  align-items: center;
  gap: .85rem;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding: .65rem clamp(.85rem, 2.6vw, 1.9rem);
  border: 1px solid #f1e7d1;
  border-radius: 2.1rem;
  background: #fffbeb;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .67rem;
  min-width: 0;
  font-size: clamp(1rem, 2.25vw, 1.17rem);
  line-height: 1.35;
  font-weight: 780;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.brand-logo { max-width: min(12rem, 44vw); max-height: 2.4rem; object-fit: contain; }
.brand-mark { display: grid; gap: .17rem; flex: 0 0 1.55rem; transform: skewY(-14deg); }
.brand-mark i { display: block; height: .22rem; border-radius: .12rem; background: var(--accent-hover); }
.brand-mark i:nth-child(2) { width: .81em; }
.brand-mark i:nth-child(3) { width: .58em; }
.site-nav { display: flex; align-items: center; gap: .28rem clamp(.5rem, 1.3vw, 1rem); flex-wrap: wrap; }
.site-nav > a { display: block; padding: .55rem .28rem; font-size: .9375rem; font-weight: 625; text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--accent-ink); }
.menu-toggle {
  display: none;
  padding: .44rem .68rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.menu-icon { width: .95rem; height: .7rem; border-block: 1.5px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; inset: 45% 0 auto; border-top: 1.5px solid currentColor; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.7rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6.3vw, 6rem) clamp(2.8rem, 6.4vw, 5.4rem);
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); letter-spacing: -.035em; }
.eyebrow { margin-bottom: .58rem; font-size: .92rem; font-weight: 720; color: var(--accent-ink); overflow-wrap: anywhere; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.hero-summary, .intro { margin-top: .9rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.72; overflow-wrap: anywhere; }
.hero-summary { max-width: 34rem; }
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, .86fr);
  gap: .5rem;
  min-width: 0;
  aspect-ratio: 4067 / 2576;
}
.hero-photo { width: 100%; height: 100%; min-height: 0; border-radius: var(--radius); object-fit: cover; object-position: 50% 50%; background: var(--surface); }
.hero-mosaic { display: grid; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hero-tile { min-height: 0; background: #f2f1ee; border-radius: calc(var(--radius) - 3px); overflow: hidden; }
.hero-tile:nth-child(2) { background: #ffeecc; }
.hero-tile img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; mix-blend-mode: multiply; }
.hero-visual:has(.hero-photo):not(:has(.hero-tile)) { grid-template-columns: minmax(0, 1fr); }
.hero-visual:not(:has(.hero-photo)) { display: none; }

.actions { display: flex; align-items: flex-start; gap: .7rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.85rem;
  padding: .58rem 1.07rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-size: .96rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--accent); color: #21140b; }
.button-primary:hover { background: var(--accent-hover); color: #1a100a; }
.button-light { background: var(--paper); border-color: #d6d3d1; color: var(--ink); }
.button-light:hover { background: var(--surface); border-color: #a8a29e; }
.text-link { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

.block { padding-block: clamp(2.6rem, 6vw, 5.3rem); }
.block-tinted { background: var(--surface); }
.block-body { padding-bottom: clamp(2.7rem, 6vw, 5.5rem); }
.block-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.6rem; margin-bottom: 1.55rem; }
.block-head h2, .about-copy h2 { font-size: clamp(1.64rem, 3vw, 2.55rem); letter-spacing: -.025em; }
.block-head p, .about-copy p { margin-top: .6rem; color: var(--muted); overflow-wrap: anywhere; }
.about-copy .text-link { display: inline-block; margin-top: 1rem; }
.about-teaser, .about-page, .contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.45rem, 5.2vw, 4.2rem);
  align-items: center;
}
.about-page, .contact-layout { align-items: start; }
.about-teaser img, .about-page img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

.product-grid, .news-grid, .sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.6rem); }
.product-card, .news-card { min-width: 0; }
.product-link, .news-link { display: block; height: 100%; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.product-link { border: 1px solid var(--line); background: var(--paper); }
.product-link:hover { border-color: #e6a78b; }
.card-image { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f5f3; }
.card-image img { width: 100%; height: 100%; padding: .75rem; object-fit: contain; mix-blend-mode: multiply; }
.card-body { padding: 1.05rem 1.18rem 1.25rem; }
.taxonomy, .news-meta time { color: var(--accent-ink); font-size: .84rem; font-weight: 690; overflow-wrap: anywhere; }
.product-card h3, .news-card h3 { margin-top: .35rem; font-size: clamp(1.08rem, 1.75vw, 1.45rem); }
.product-card p, .news-card p { margin-top: .45rem; color: var(--muted); overflow-wrap: anywhere; }
.news-link { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 13.8rem; border: 1px solid var(--line); background: var(--surface); }
.news-link:hover { border-color: #e6a78b; }
.news-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .7rem; }
.news-card-content { padding: 1.1rem 1.2rem 1.2rem; width: 100%; }
.news-card-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.news-link:has(.news-card-image)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23, 23, 23, .96), rgba(23, 23, 23, .7) 48%, rgba(23, 23, 23, .19) 100%); }
.news-link:has(.news-card-image) h3 { color: #fff; }
.news-link:has(.news-card-image) p, .news-link:has(.news-card-image) .taxonomy, .news-link:has(.news-card-image) time { color: #fff1e8; }

.section-hero { padding: clamp(1.8rem, 4.5vw, 4.2rem) 0 clamp(1.35rem, 3.3vw, 3.15rem); }
.section-hero h1, .article h1, .detail-copy h1 { font-size: clamp(1.95rem, 4.05vw, 3.65rem); letter-spacing: -.035em; }
.section-hero p { max-width: 42rem; margin-top: .7rem; color: var(--muted); overflow-wrap: anywhere; }
.crumb { margin-block: .9rem 1.3rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.crumb a:hover { color: var(--accent-ink); }
.categories, .pagination, .product-sections { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.3rem; }
.categories a, .pagination a, .product-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .37rem .8rem;
  border: 1px solid var(--line);
  border-radius: .56rem;
  text-decoration: none;
  font-weight: 660;
}
.categories a[aria-current="page"], .categories a:hover, .pagination a:hover, .product-sections a:hover { background: var(--warm); border-color: #f1d8b7; color: var(--accent-ink); }
.pagination { justify-content: center; margin-block: 2rem 0; }
.empty { color: var(--muted); }
.product-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.6rem, 5.5vw, 4.5rem); padding-block: .55rem clamp(1.4rem, 4vw, 3.1rem); }
.detail-copy, .detail-image { min-width: 0; }
.detail-image > img { width: 100%; aspect-ratio: 4 / 3; padding: .8rem; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); gap: .5rem; margin-top: .6rem; }
.detail-gallery a { display: block; border: 1px solid var(--line); border-radius: .45rem; padding: .3rem; }
.detail-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-sections { padding-block: 1rem; border-block: 1px solid var(--line); }
.detail-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.data-section { padding: clamp(1rem, 3vw, 1.6rem); border-radius: var(--radius); background: var(--surface); }
.data-section p { margin-top: .5rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.product-description, .return-link { margin-top: 2rem; }
.article { max-width: 49rem; margin-inline: auto; }
.article-head { margin-bottom: 1.35rem; }
.article-head time { display: block; margin-top: .55rem; font-size: .91rem; color: var(--muted); }
.article-image { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.7rem; }
.article > .text-link { display: inline-block; margin-top: 1.5rem; }
.prose { min-width: 0; color: #404040; overflow-wrap: anywhere; }
.prose > * + * { margin-block-start: .95rem; }
.prose h2, .prose h3 { color: var(--ink); }
.prose h2 { font-size: clamp(1.32rem, 2.2vw, 1.85rem); }
.prose img, .prose video, .prose iframe { max-width: 100%; }
.prose img { border-radius: .65rem; }
.prose table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; }
.prose th, .prose td { padding: .45rem .6rem; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-inline-start: 1.3rem; }
.contact-card, .sitemap-group { min-width: 0; margin: 0; padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card:not(:has(div)) { display: none; }
.contact-card > div + div { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: .2rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.sitemap-grid { margin-block: 1.15rem 1.5rem; }
.sitemap-group h2 { font-size: 1.18rem; }
.sitemap-group ul { margin-bottom: 0; padding-inline-start: 1.18rem; }
.sitemap-group a { overflow-wrap: anywhere; }
.sitemap-group a:hover { color: var(--accent-ink); }

.site-footer { background: #f5f4f0; border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: start; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(1.65rem, 4.7vw, 3rem); }
.footer-brand p { margin-top: .55rem; color: var(--muted); }
.footer-nav, .footer-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; }
.footer-nav a, .footer-meta a { text-decoration: none; }
.footer-nav a:hover, .footer-meta a:hover { text-decoration: underline; }
.footer-meta { justify-content: space-between; border-top: 1px solid #dedbd6; padding-block: .8rem 1.15rem; color: var(--muted); font-size: .84rem; }

@media (max-width: 61rem) {
  .header-inner { border-radius: var(--radius); }
  .header-inner.has-menu .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .site-nav { flex-basis: 100%; }
  .header-inner.has-menu .site-nav:not(.is-open) { display: none; }
  .site-nav.is-open { flex-direction: column; align-items: stretch; border-top: 1px solid #f1e7d1; padding-top: .45rem; }
  .site-nav.is-open > a { min-height: 2.55rem; }
}

@media (max-width: 48rem) {
  .hero-inner, .about-teaser, .about-page, .contact-layout, .product-detail { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 1.35rem; }
  .about-teaser .about-copy { order: -1; }
  .product-grid, .news-grid, .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 31rem) {
  .product-grid, .news-grid, .sitemap-grid, .detail-data { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { gap: .35rem; }
  .hero-mosaic { gap: .35rem; }
  .site-header { padding-top: .65rem; }
  .header-inner { gap: .6rem; }
  .header-inner > .brand { max-width: calc(100% - 5rem); }
  .news-link { min-height: 12.2rem; }
}

.data-section p { white-space: pre-line; overflow-wrap: anywhere; }
.detail-image > img, .product-card img { object-fit: contain; background: #fffaf3; }
.company-facts div { display: grid; grid-template-columns: 5rem 1fr; gap: .6rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.company-facts dd { margin: 0; }
h1 { text-wrap: balance; }
.site-nav .account-link { flex: 0 0 auto; }
.scores-list { padding-inline-start: 1.45rem; }
.scores-list li { padding-block: .65rem; border-bottom: 1px solid var(--line); margin-block-end: .7rem; }
