/* Banano 24 — Herborist distribution: Cosmax structure, Herborist green palette, centred top bar, one vertical Chinese word per page. */

@font-face {
  font-family: "Karla";
  src: url("/assets/fonts/karla-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC Banano";
  src: url("/assets/fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: block;
  unicode-range: U+4E13, U+4E1A, U+4F19, U+4F34, U+54C1, U+5986, U+5B89, U+5EFA, U+5FBD, U+6C5F, U+6D59, U+6E2F, U+724C, U+798F, U+7CFB, U+7F8E, U+8054, U+897F, U+9999;
}

:root {
  --white: #ffffff;
  --porcelain: #f6f4ee;
  --mist: #eaefe7;
  --champagne: #c8b98a;
  --gold: #b39a5f;
  --sage: #8a945f;
  --green: #2d5a3d;
  --jade: #3d7358;
  --deep: #1c3524;
  --ink: #17231b;
  --muted: #506055;
  --on-deep: #d9e2d6;
  --line: rgba(28, 53, 36, 0.14);
  --line-strong: rgba(28, 53, 36, 0.32);
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --cjk: "Noto Serif SC Banano", "Songti SC", "STSong", "SimSun", serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 1280px;
  --content: min(var(--wrap), 100% - 2 * var(--gutter));
  --pad: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--sage) var(--mist);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--green);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--deep);
  color: var(--white);
}

.skip:focus {
  top: 1rem;
  left: 1rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  transition: box-shadow 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: 0 8px 24px -14px rgba(23, 35, 27, 0.3);
}

.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.4rem;
}

/* Logo: filled banana leaf beside the name */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}

.logo-leaf {
  width: auto;
  height: 1.55rem;
}

.leaf-blade {
  fill: var(--green);
}

.leaf-stem {
  stroke: var(--green);
}

.leaf-vein {
  stroke: var(--white);
}

.brand-name {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 0.3rem clamp(1.4rem, 3vw, 2.8rem);
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}

.nav a {
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: border-color 0.25s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

@media (max-width: 860px) {
  .header-row {
    gap: 0.6rem;
    padding-top: 1rem;
  }


  .nav {
    gap: 0.15rem 1rem;
    padding-block: 0.45rem;
  }

  .logo-leaf {
    height: 1.25rem;
  }

  .brand-name {
    font-size: 1.85rem;
  }

  .nav a {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

/* Type */

.title {
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.title strong {
  font-weight: 600;
  color: var(--green);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.lede {
  max-width: 42ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.prose p {
  max-width: 62ch;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.prose .statement {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}

.more {
  margin-top: 1.75rem;
}

/* Actions */

.arrow {
  flex: none;
  width: 1.1em;
  height: 0.7em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.35s var(--ease);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.7rem;
  border: 0;
  background: linear-gradient(-75deg, var(--deep) 0%, var(--green) 55%, var(--jade) 100%);
  background-size: 180% 100%;
  background-position: 0 0;
  color: var(--white);
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.6s var(--ease);
}

.btn:hover {
  background-position: 100% 0;
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(4px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: border-color 0.25s;
}

.link:hover {
  border-bottom-color: var(--green);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2rem;
  margin-top: 2.25rem;
}

/* Hero photograph and the intro panel that rises over it */

.hero-photo {
  overflow: hidden;
  background: var(--mist);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.hero-photo--launch img {
  object-position: 50% 78%;
}

.hero-photo--china-white img {
  object-position: 50% 45%;
}

.hero-photo--hall img {
  object-position: 50% 55%;
}

.hero-photo--dendrobium img {
  object-position: 50% 62%;
}

@media (max-width: 760px) {
  .hero-photo img {
    aspect-ratio: 4 / 3;
  }
}

.intro {
  position: relative;
  z-index: 2;
  padding-top: clamp(1rem, 2.5vw, 2rem);
}

.intro-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--mist);
}

.intro-box .lede {
  margin-top: 1.5rem;
}

.crumbs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--green);
}

.ticks {
  margin-top: 2rem;
}

.ticks li {
  position: relative;
  max-width: 60ch;
  padding-left: 1.5rem;
  color: var(--muted);
}

.ticks li + li {
  margin-top: 0.85rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: var(--green);
}

.ticks strong {
  font-weight: 600;
  color: var(--ink);
}

/* The vertical Chinese word */

.word {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  align-self: start;
  gap: 0.55rem;
}

.word .cjk {
  font-family: var(--cjk);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  color: var(--deep);
}

.word .pinyin {
  padding-top: 0.4em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  color: var(--muted);
}

@media (max-width: 700px) {
  .intro-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-box .word {
    order: -1;
    justify-self: end;
  }

  .word .cjk {
    font-size: 3.4rem;
  }
}

/* Sections */

.section {
  padding-block: var(--pad);
}

.section--mist {
  background: var(--mist);
}

.section--porcelain {
  background: var(--porcelain);
}

.section--deep {
  background: var(--deep);
  color: var(--white);
}

.section--deep h2,
.section--deep h3 {
  color: var(--white);
}

.section--deep .prose p,
.section--deep .head p {
  color: var(--on-deep);
}

.section--deep .prose .statement {
  color: var(--white);
}

.section--deep .link {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.section--deep .link:hover {
  border-bottom-color: var(--white);
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.head p {
  max-width: 52ch;
  color: var(--muted);
}

@media (max-width: 820px) {
  .head {
    grid-template-columns: 1fr;
  }
}

/* Photograph bleeding to the page edge beside a text column */

.bleed {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--content) * 0.44))
    minmax(0, calc(var(--content) * 0.56))
    minmax(var(--gutter), 1fr);
  align-items: center;
}

.bleed-text {
  grid-column: 2;
  padding-block: var(--pad);
  padding-right: clamp(2rem, 5vw, 5rem);
}

.bleed-text h2 {
  margin-bottom: 1.5rem;
}

.bleed-photo {
  grid-column: 3 / 5;
  align-self: stretch;
  overflow: hidden;
}

.bleed-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(340px, 42vw, 640px);
  object-fit: cover;
}

.bleed--reverse {
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--content) * 0.56))
    minmax(0, calc(var(--content) * 0.44))
    minmax(var(--gutter), 1fr);
}

.bleed--reverse .bleed-photo {
  grid-row: 1;
  grid-column: 1 / 3;
}

.bleed--reverse .bleed-text {
  grid-row: 1;
  grid-column: 3;
  padding-right: 0;
  padding-left: clamp(2rem, 5vw, 5rem);
}

.bleed-photo .fit-left {
  object-position: 0% 50%;
}

.bleed-photo .fit-right {
  object-position: 100% 50%;
}

.bleed-photo .fit-contain {
  object-fit: contain;
  background: var(--deep);
}

@media (max-width: 900px) {
  .bleed,
  .bleed--reverse {
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  }

  .bleed .bleed-photo,
  .bleed--reverse .bleed-photo {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .bleed-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .bleed .bleed-text,
  .bleed--reverse .bleed-text {
    grid-row: 2;
    grid-column: 2;
    padding: clamp(2.5rem, 8vw, 3.5rem) 0 var(--pad);
  }
}

/* Herborist and its four provinces */

.brand-logo {
  width: clamp(150px, 16vw, 200px);
  margin-bottom: 1.75rem;
}

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(1.5rem, 3.5vw, 3rem);
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.region {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.45rem;
}

.region .cjk {
  font-family: var(--cjk);
  font-size: clamp(2.6rem, 4.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  color: var(--white);
}

.region .pinyin {
  padding-top: 0.35em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  color: var(--on-deep);
}

/* Herborist gallery: a packed grid of the brand's own photography */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 240px);
  grid-auto-flow: row dense;
  gap: 8px;
}

.gallery figure {
  overflow: hidden;
  background: var(--mist);
}

.gallery .g-wide {
  grid-column: span 2;
}

.gallery .g-tall {
  grid-row: span 2;
}

.gallery .g-big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 42vw;
  }
}

/* Services as a bento: a deep block opens each group, services on mist, photographs break the rhythm */

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

.bento-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 250px;
  padding: 1.8rem;
  background: var(--deep);
  color: var(--white);
}

.bento-group h3 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--white);
}

.bento-group p {
  max-width: 24ch;
  font-size: 0.95rem;
  color: var(--on-deep);
}

.bento-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.7rem;
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  scroll-margin-top: 160px;
  transition: background-color 0.5s var(--ease);
}

.bento-item h3 {
  color: var(--green);
  transition: color 0.5s var(--ease);
}

.bento-item ul {
  color: var(--muted);
  transition: color 0.5s var(--ease);
}

.bento-item li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bento-item li + li {
  margin-top: 0.35rem;
}

.bento-item li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 1px;
  background: currentColor;
}

.bento-item .arrow {
  margin-top: auto;
  color: var(--green);
  transition: color 0.5s var(--ease), transform 0.35s var(--ease);
}

a.bento-item:hover {
  background: var(--jade);
}

a.bento-item:hover h3,
a.bento-item:hover ul,
a.bento-item:hover .arrow {
  color: var(--white);
}

a.bento-item:hover .arrow {
  transform: translateX(4px);
}

.bento-photo {
  grid-column: span 2;
  min-height: 250px;
  overflow: hidden;
}

.bento-photo--single {
  grid-column: span 1;
}

.bento-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.bento-photo:hover img {
  transform: scale(1.04);
}

@media (max-width: 991px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-group {
    min-height: 0;
  }

  .bento-photo,
  .bento-photo--single {
    grid-column: auto;
    min-height: 220px;
  }
}

/* Logo strip that drifts, and the brand wall */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: drift 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(2.5rem, 5vw, 4.5rem);
}

.marquee img {
  width: 150px;
  height: 60px;
  object-fit: contain;
}

.marquee li .name {
  font-size: 1.05rem;
  white-space: nowrap;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.wall li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 92px;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}

.wall img {
  width: 100%;
  max-width: 150px;
  height: auto;
}



.name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--deep);
}

.logo-name {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 640px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .name {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    width: auto;
    animation: none;
  }

  .marquee ul {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
    row-gap: 1.5rem;
  }

  .marquee ul[aria-hidden="true"] {
    display: none;
  }
}

/* Expertise detail */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line-strong);
}

.detail:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.detail > div > p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.detail-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.detail-items article {
  scroll-margin-top: 160px;
}

.detail-items h3 {
  margin-bottom: 0.6rem;
  color: var(--green);
}

.detail-items p {
  font-size: 1rem;
  color: var(--muted);
}

.detail-items p + p {
  margin-top: 0.75rem;
}

.detail-items .caps {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}

@media (max-width: 820px) {
  .detail,
  .detail-items {
    grid-template-columns: 1fr;
  }
}

/* Company */

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 0;
}

.route li {
  display: flex;
  align-items: center;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--white);
}

.route li + li::before {
  content: "";
  width: clamp(1.5rem, 3vw, 2.75rem);
  height: 1px;
  margin-inline: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

.locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.locations > div {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--mist);
}

.locations h3 {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

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

@media (max-width: 700px) {
  .locations {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.footer {
  padding-block: clamp(2.75rem, 5vw, 3.75rem) 1.5rem;
  background: var(--deep);
  color: var(--on-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 1fr;
  gap: 2rem;
}

.footer .logo {
  color: var(--white);
}

.footer .leaf-blade {
  fill: var(--champagne);
}

.footer .leaf-stem {
  stroke: var(--champagne);
}

.footer .leaf-vein {
  stroke: var(--deep);
}

.foot-label {
  margin-bottom: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
}

.footer p,
.footer a {
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal p {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal */

.legal {
  max-width: 70ch;
}

.legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1rem;
}

.legal h2:first-child {
  margin-top: 0;
}

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

.legal a {
  color: var(--green);
}

/* The one authored moment: the photograph settles and the panel rises over it */

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: settle 1.8s var(--ease) both;
  }

  .intro-box {
    animation: rise 1s 0.15s var(--ease) both;
  }

  @keyframes settle {
    from {
      transform: scale(1.06);
    }
  }

  @keyframes rise {
    from {
      transform: translateY(28px);
    }
  }
}

.head--top {
  align-items: start;
}

@media (prefers-reduced-motion: reduce) {
  .bento-item,
  .bento-item h3,
  .bento-item ul,
  .bento-item .arrow,
  .bento-photo img,
  .gallery img {
    transition: none;
  }

  .gallery figure:hover img,
  .bento-photo:hover img,
  a.bento-item:hover .arrow {
    transform: none;
  }
}

/* Simplified Chinese pages: Latin in Karla, Chinese in the reader's system face */

html[lang="zh-Hans"] {
  --sans: "Karla", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

html[lang="zh-Hans"] body {
  line-height: 1.8;
}

html[lang="zh-Hans"] .title {
  letter-spacing: 0.02em;
  line-height: 1.25;
}

html[lang="zh-Hans"] h2 {
  letter-spacing: 0.08em;
}
