/* Page hierarchy and type shared by the homepage and its destinations. */
:root {
  --content-start-inset: clamp(36px, 5vw, 76px);
  /* The benchmark breadcrumb's text starts below its padded link edge. */
  --content-start-offset: calc(var(--content-start-inset) + 9px);
  --page-title: clamp(2.1rem, 3.65vw, 3.2rem);
  --section-title: clamp(1.65rem, 2.55vw, 2.25rem);
  --item-title: clamp(1.25rem, 1.75vw, 1.55rem);
  --page-reading: #5e584e;
  --project-card-paper: var(--content-paper);
}
.language-switch { border: 0; padding: 0; }
.language-switch:has(button[hidden]) { display: none; }
.language-switch [data-language-toggle] {
  border: 1px solid #cfc8b9; background: transparent; color: var(--ink);
  border-radius: 999px; font-size: 14px; min-width: 51px; min-height: 38px; padding: 5px 12px;
}
.language-switch [data-language-toggle]:hover { background: #eae4d7; border-color: #a79b87; }
#navigation > a { white-space: nowrap; }
#navigation > a[aria-current="page"] { color: #483e2f; text-decoration: underline; text-underline-offset: .38em; text-decoration-thickness: 1px; }
#navigation > a[aria-current="page"]::after { content: none; }
@media (min-width: 901px) {
  #navigation > a { font-size: 15px; }
}
@media (max-width: 900px) {
  .language-switch [data-language-toggle] { min-width: 47px; min-height: 44px; }
  html:not(.js) :is(.menu-toggle, .language-switch) { display: none; }
  html:not(.js) #navigation {
    display: flex; position: static; max-height: none; margin-left: auto; padding: 0;
    flex-direction: row; align-items: center; gap: 12px; background: transparent; border: 0;
  }
  html:not(.js) #navigation > a { font-size: 14px; padding: 0; }
}

.hero h1, html[lang="en"] .hero h1 { font-size: clamp(34px, 4.35vw, 58px); }
.reading-copy { font-size: clamp(27px, 2.65vw, 37px); }
.story-heading h2 { font-size: var(--section-title); }
.story-copy h3, html[lang="en"] .story-copy h3 { font-size: clamp(23px, 2.35vw, 32px); }
#work .offering-copy h3 { font-size: var(--section-title); margin-bottom: 16px; letter-spacing: -.024em; }
#work .offering-copy > p { max-width: 34em; }
.project-shortcuts, .project-notes { list-style: none; padding: 0; margin: 0; }
.project-shortcuts {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px;
  color: #63513b; font-size: 15px; line-height: 1.5;
}
.project-notes {
  display: grid; gap: 9px; margin-top: 24px; width: 100%;
  container: project-list / inline-size;
}
:where(.project-notes, .project-list) .project-card {
  display: grid; align-items: center; border: 1px solid #d6cdbb; border-radius: 9px;
  background: var(--project-card-paper); color: #372f26; text-decoration: none;
}
.project-card-art {
  display: grid; place-items: center;
  width: 100%; min-width: 0; aspect-ratio: 3 / 2;
}
.project-card-art > .catalog-illustration { display: block; width: 100%; height: 100%; min-height: 0; }
.project-notes .project-card {
  grid-template-columns: clamp(90px, 18cqi, 138px) minmax(0, 1fr) auto;
  gap: clamp(16px, 3cqi, 24px);
  padding: 11px clamp(16px, 3cqi, 24px) 11px 11px; min-height: 100px;
}
.project-notes .project-card-art { aspect-ratio: 1.618; }
.project-notes .project-card-copy { display: grid; gap: 5px; }
.project-notes .project-name {
  font: var(--heading-weight) clamp(18px, 2.6cqi, 21px)/1.24 var(--font-heading); overflow-wrap: anywhere;
}
.project-notes .project-note {
  font: 400 clamp(14px, 2cqi, 16px)/1.45 var(--font-chinese-body); color: #62594c; overflow-wrap: anywhere;
}
:where(.project-notes, .project-list) .project-arrow { color: #6b5439; font: 400 19px/1 system-ui, sans-serif; }
:where(.project-notes, .project-list) a.project-card:focus-visible { outline: 2px solid #826a4b; outline-offset: 2px; }
@media (hover: hover) {
  :where(.project-notes, .project-list) a.project-card:hover { border-color: #827868; }
  :where(.project-notes, .project-list) a.project-card:hover .project-arrow { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: no-preference) {
  :where(.project-notes, .project-list) a.project-card { transition: border-color .16s ease; }
  :where(.project-notes, .project-list) .project-arrow { transition: transform .16s ease; }
}
@container project-list (max-width: 520px) {
  html[lang="en"] .project-notes .project-card { min-height: 104px; }
}
@container project-list (max-width: 445px) {
  .project-notes .project-card {
    grid-template-columns: clamp(68px, 22cqi, 92px) minmax(0, 1fr) auto;
    align-content:center; gap:8px 12px;
    min-height:clamp(120px, calc(13.6cqi + 77px), 135px);
    padding:12px 14px;
  }
  .project-notes .project-card-art { grid-column:1; grid-row:1; }
  .project-notes .project-card-copy { display:contents; }
  .project-notes .project-name { grid-column:2 / -1; grid-row:1; }
  .project-notes .project-note { grid-column:1 / 3; grid-row:2; }
  .project-notes .project-arrow { grid-column:3; grid-row:2; justify-self:end; }
  html[lang="en"] .project-notes .project-card { min-height:142px; }
}
@media (max-width: 360px) and (max-height: 640px) {
  .project-shortcuts { column-gap: 14px; margin-top: 0; }
}
.contact-strip .footer-copy h2 { font-size: clamp(19px, 1.65vw, 22px); }
@media (max-width: 600px) {
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(32px, 8.2vw, 40px); }
  .reading-copy { font-size: clamp(23px, 6.2vw, 29px); }
  .story-heading h2 { font-size: clamp(23px, 6vw, 29px); }
  .story-copy h3, html[lang="en"] .story-copy h3 { font-size: clamp(21px, 5.4vw, 25px); }
}

/* A direct overview link sits beside the native category disclosure. */
.nav-products { display: flex; position: relative; align-items: center; }
.nav-products-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.nav-products .nav-content { position: static; }
.nav-content-toggle {
  font: inherit;
  cursor: pointer;
  list-style: none;
  width: 27px; min-height: 44px; padding: 0; justify-content: center;
}
.nav-content-toggle::-webkit-details-marker { display: none; }
.nav-content-chevron {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.nav-content[open] .nav-content-chevron { transform: translateY(2px) rotate(225deg); }
.nav-products.is-active .nav-products-link,
.nav-content-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
@media (min-width: 901px) {
  #navigation .nav-products-link { padding: 8px 0; font-size: 15px; }
}
@media (max-width: 900px) {
  .js .nav-products { display: block; }
  .js .nav-products-link {
    position: absolute; inset: 0 48px auto 0; height: 48px; padding: 0 12px; font-size: 16px;
  }
  .js .nav-content-toggle { display: flex; margin-left: auto; width: 48px; min-height: 48px; }
  html:not(.js) #navigation { overflow: visible; }
  html:not(.js) .nav-products-link { padding: 0; min-width: 44px; justify-content: center; font-size: 14px; }
  html:not(.js) .nav-content-toggle { width: 44px; }
  html:not(.js) .nav-content-menu { position: absolute; top: 100%; left: auto; right: 0; }
}

:root {
  --page-prose: Georgia, 'Songti SC', STSong, 'Noto Serif CJK SC', SimSun, serif;
}
:is(.company-page, .contact-page, .product-document) main :is(p, li, dd) {
  font-family: var(--page-prose);
}
.contact-meta .contact-copyright {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .015em;
}
.contact-page .contact-page-main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: calc(var(--header-height) + 48px) clamp(48px, 9vh, 100px);
}
.contact-page .contact-page-intro, .contact-page .contact-card-grid {
  width: min(100%, 40rem);
}
.contact-page .contact-page-intro {
  margin-bottom: clamp(26px, 4vw, 46px);
}
.contact-page .contact-page-intro h1 { font-size: clamp(38px, 4.4vw, 62px); }
.contact-page .contact-page-intro p { max-width: 38em; text-wrap: pretty; }
.contact-page .contact-card-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
}
.email-card {
  --email-left-inset: 0px;
  --email-right-inset: 0px;
  --email-hover-opacity: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: clamp(88px, 8vw, 112px);
  padding: 16px var(--email-right-inset) 16px var(--email-left-inset);
  border-block: 1px solid #cfc7b7;
  color: var(--ink);
  transition: padding .4s ease;
}
.email-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1px 0;
  border-radius: 4px;
  background: #fffdf7;
  box-shadow: 0 9px 15px rgba(67, 52, 28, .09);
  opacity: var(--email-hover-opacity);
  transition: opacity .35s ease;
}
.email-row-arrow {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #8c5c34;
  opacity: var(--email-hover-opacity);
  transition: opacity .4s ease;
}
.email-caption { margin: 0; color: #62594b; font-size: clamp(15px, 1.3vw, 18px); }
.email-value { display: flex; align-items: center; justify-self: end; gap: 8px; min-width: 0; }
#contact-email-address {
  font: 400 18px/1.45 var(--page-prose);
  overflow-wrap: anywhere;
  user-select: all;
}
.email-copy-icon { flex: none; color: #716657; }
.email-card:has(.email-copy-action[hidden]) .email-copy-icon { display: none; }
.email-copy-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: copy;
}
.email-copy-action:focus-visible { outline: 2px solid #76624a; outline-offset: 3px; }
.email-card:has(.email-copy-action:is(:active,:focus-visible)) {
  --email-left-inset: 44px;
  --email-right-inset: 14px;
  --email-hover-opacity: 1;
}
@media (hover: hover) {
  .email-card:has(.email-copy-action:hover) {
    --email-left-inset: 44px;
    --email-right-inset: 14px;
    --email-hover-opacity: 1;
  }
}
.email-contact #copy-status {
  display: block;
  margin-top: 9px;
  min-height: 1.5em;
  color: #65513a;
  font-size: 14px;
  line-height: 1.5;
  text-align: end;
}
@media (max-width: 440px) {
  .email-card { grid-template-columns: 1fr; align-content: center; gap: 4px; }
  .email-value { justify-self: start; }
  .email-row-arrow { left: 9px; width: 15px; }
  .email-card:has(.email-copy-action:is(:active,:focus-visible)) { --email-left-inset: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .email-card, .email-card::before, .email-row-arrow { transition: none; }
}
