:root {
  --studio-paper: #f7f6ef;
  --studio-green: #202e24;
  --studio-muted: #566356;
  --studio-line: #d6dacf;
  --studio-lemon: #e6ef94;
  --studio-width: min(1460px, calc(100% - clamp(24px, 6vw, 96px)));
}

body {
  background: var(--studio-paper);
  color: var(--studio-green);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid #56704b;
  outline-offset: 3px;
}

.header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template: "brand nav tools" 72px / auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(12px, 2.3vw, 36px);
  height: auto;
  padding: 0 max(3vw, calc((100% - 1460px) / 2));
  border-bottom: 1px solid var(--studio-line);
  background: var(--studio-paper);
  box-shadow: none;
  backdrop-filter: none;
}

.header .brand {
  grid-area: brand;
  gap: 9px;
  color: var(--studio-green);
  font-size: clamp(15px, 1.45vw, 21px);
}

.header .brand-mark {
  width: 46px;
  height: 46px;
}

.header .brand small {
  margin-top: 3px;
  color: var(--studio-muted);
  font-size: 7px;
  letter-spacing: .105em;
}

.header .navigation {
  grid-area: nav;
  justify-content: center;
  gap: clamp(4px, 1vw, 16px);
  height: auto;
  min-width: 0;
}

.header .navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 5px;
  border-radius: 0;
  background: transparent;
  color: var(--studio-muted);
  box-shadow: none;
  font-size: 13px;
  white-space: nowrap;
}

.header .navigation a:hover,
.header .navigation a.active,
.header .navigation a[aria-current="page"] {
  background: transparent;
  color: var(--studio-green);
  box-shadow: none;
}

.header .navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  display: block;
  inset: auto 5px 5px;
  width: auto;
  height: 2px;
  border-radius: 1px;
  background: #7c9147;
  transform: none;
}

.header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.header-tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--studio-line);
  border-radius: 4px;
  background: transparent;
  color: var(--studio-green);
}

.header-tool:hover {
  border-color: var(--studio-green);
  background: var(--studio-lemon);
}

.header-tool svg {
  width: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
}

.header .header-tool.language-tool {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.header .customer-tool {
  width: auto;
  padding: 0 .65rem;
  border-color: #ccd684;
  background: #e7ef9b;
  color: #243325;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 420px) {
  .header .brand { font-size: 12px; gap: 4px; }
  .header .brand small { display: none; }
  .header .brand-mark { width: 31px; height: 31px; }
  .header .header-tools { gap: 4px; }
  .header .customer-tool { padding: 0 .45rem; }
}

.lemon-mascot {
  inset: auto 16px 14px auto;
  width: 52px;
  filter: drop-shadow(0 2px 5px #202e2426);
}

.lemon-mascot > span {
  display: none;
}

.page-shell,
.page-shell:has(.fabric-studio) {
  max-width: 1520px;
}

body:not(.is-home) .page-shell main {
  padding: clamp(21px, 3vw, 45px) max(3vw, 16px) 0;
}

.editorial-hero {
  --editorial-paper: #e8eadf;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  margin: 0 0 clamp(30px, 4vw, 60px);
  border-radius: 5px;
  background: var(--editorial-paper);
  color: var(--studio-green);
}

.editorial-cases,
.editorial-guide {
  --editorial-paper: #e4ebe8;
}

.editorial-ai {
  --editorial-paper: #eee8dd;
}

.editorial-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 64px);
}

.editorial-copy .editorial-label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.editorial-label i {
  width: 17px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.editorial-copy h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 3.4vw, 55px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.editorial-copy .editorial-desc {
  max-width: 33em;
  margin: 14px 0 0;
  color: var(--studio-muted);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.75;
}

.editorial-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
  min-height: clamp(215px, 24vw, 360px);
}

.editorial-single .editorial-photos {
  grid-template-columns: minmax(0, 1fr);
}

.editorial-photos figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d7dccf;
}

.editorial-photos figure::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #1321199c);
  pointer-events: none;
}

.editorial-photos img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center);
}

.editorial-photos figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 13px;
  color: #fff;
  font-size: clamp(10px, 1.05vw, 13px);
  font-weight: 600;
  line-height: 1.35;
}

.catalog-section .section-top h2 {
  color: var(--studio-green);
  font-size: clamp(23px, 2.8vw, 40px);
  letter-spacing: -.03em;
}

.catalog-section .section-top h2 span,
.catalog-section .result-line {
  color: var(--studio-muted);
}

.catalog-section .search-field {
  border: 1px solid var(--studio-line);
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: none;
}

.theme-filter .pill,
.english-filter button {
  min-height: 36px;
  border: 1px solid var(--studio-line);
  border-radius: 3px;
  background: transparent;
  color: var(--studio-muted);
  box-shadow: none;
}

.theme-filter .pill:hover,
.english-filter button:hover {
  border-color: #798e71;
  color: var(--studio-green);
}

.theme-filter .pill[aria-pressed="true"],
.english-filter button.active {
  border-color: var(--studio-green);
  background: var(--studio-green);
  color: #fffdf8;
}

.seasonal-picks,
.ai-explainer {
  border: 1px solid var(--studio-line);
  border-radius: 5px;
  background: #eeefe6;
  box-shadow: none;
}

.seasonal-preview-card,
.seasonal-themes button {
  border-radius: 4px;
}

.case-grid .catalog-tile,
.product-grid .catalog-tile,
#english-view .catalog-tile {
  border-color: var(--studio-line);
  border-radius: 5px;
  background: #fffdf8;
  box-shadow: none;
}

.case-grid .catalog-tile > .catalog-tile-cover,
.product-grid .catalog-tile > .catalog-tile-cover {
  border-color: var(--studio-line);
  background: #edece4;
}

.case-grid .catalog-tile h3,
.product-grid .catalog-tile h3,
#english-view .catalog-tile h3 {
  color: var(--studio-green);
}

.catalog-tile-facts {
  border-color: var(--studio-line);
}

.catalog-tile-facts dt,
.catalog-tile-facts dd {
  color: var(--studio-muted);
}

.quote-button,
.catalog-pagination button {
  border-color: var(--studio-line);
  border-radius: 4px;
}

.quote-button {
  background: var(--studio-lemon);
  color: var(--studio-green);
}

.quote-button:hover {
  background: #dce988;
}

.catalog-pagination button[aria-current="page"] {
  border-color: var(--studio-green);
  background: var(--studio-green);
  color: #fff;
}

.detail-dialog,
.quote-dialog,
.global-search-dialog {
  border-color: var(--studio-line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--studio-green);
}

body.is-home .home-faq {
  width: var(--studio-width);
  margin: clamp(48px, 7vw, 104px) auto 0;
  padding: clamp(23px, 4vw, 60px) 0 clamp(40px, 7vw, 94px);
  border-top: 1px solid var(--studio-line);
  background: transparent;
  color: var(--studio-green);
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(20px, 4vw, 72px);
  max-width: none;
}

.faq-heading {
  grid-row: 1 / 3;
}

.faq-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(29px, 3.8vw, 54px);
  letter-spacing: -.04em;
}

.faq-heading p {
  color: var(--studio-muted);
  font-size: 14px;
}

.faq-tabs,
.faq-list {
  grid-column: 2;
}

.faq-tabs button {
  border-color: var(--studio-line);
  border-radius: 4px;
  color: var(--studio-green);
}

.faq-tabs button[aria-selected="true"] {
  border-color: var(--studio-green);
  background: var(--studio-green);
  color: #fffdf8;
}

.faq-list {
  border-color: var(--studio-line);
  border-radius: 4px;
  background: #fffdf8;
}

.faq-list summary {
  color: var(--studio-green);
}

.faq-list details[open] summary span {
  background: var(--studio-lemon);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  margin: clamp(42px, 5vw, 70px) 0 0;
  padding: clamp(24px, 4vw, 56px);
  border: 0;
  border-radius: 5px 5px 0 0;
  background: var(--studio-green);
  color: #d8dfd2;
  font-size: 12px;
}

body.is-home .footer {
  margin: 0;
  padding-inline: max(3vw, calc((100% - 1460px) / 2));
  border-radius: 0;
}

.footer .footer-brand,
.footer .footer-links a {
  color: #fffdf8;
}

.footer .footer-brand {
  width: fit-content;
  font-size: 17px;
  font-weight: 650;
}

.footer .footer-brand i {
  display: block;
  margin: 4px 0 0;
  color: #bec9b8;
  font-size: 9px;
  font-style: normal;
  letter-spacing: .09em;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  line-height: 1.5;
}

.footer .footer-links a:hover {
  color: var(--studio-lemon);
}

.footer .footer-note {
  grid-column: 1 / -1;
  padding-top: 13px;
  border-top: 1px solid #ffffff2e;
  color: #c2cdbf;
}

@media (max-width: 1100px) {
  .header {
    grid-template: "brand tools" 60px "nav nav" 43px / minmax(0, 1fr) auto;
  }

  .header .navigation {
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 780px) {
  .editorial-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-copy {
    padding: 21px 19px;
  }

  .editorial-copy .editorial-label {
    margin-bottom: 8px;
  }

  .editorial-copy .editorial-desc {
    margin-top: 8px;
  }

  .editorial-photos {
    min-height: clamp(140px, 38vw, 240px);
  }

  .editorial-photos figcaption {
    padding: 9px;
  }

  .faq-inner {
    display: block;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header .brand {
    gap: 5px;
  }

  .header .brand-mark {
    width: 39px;
    height: 40px;
  }

  .header .navigation {
    gap: 7px;
    scrollbar-width: thin;
    scrollbar-color: #a8b09f transparent;
  }

  .header .navigation a {
    font-size: 12px;
  }

  .header-tool {
    width: 36px;
    height: 36px;
  }

  .lemon-mascot {
    inset: auto 10px 10px auto;
    width: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-links a,
  .home-case-caption > span {
    transition: none;
  }
}
