:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --canvas: #fffdf9;
  --ink: #27392f;
  --green: #264535;
  --dark: #203a2e;
  --muted: #5d685d;
  --brick: #a44634;
  --line: #d9ddd0;
  --sage: #e9eee2;
  --gutter: clamp(1.25rem, 4.45vw, 4.5rem);
  --header-height: 4.75rem;
  --serif: "Songti SC", STSong, "Noto Serif CJK SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.75; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { color: var(--dark); background: #f4d6bd; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 5px; }

.wrap {
  width: min(79rem, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  color: white;
  background: var(--green);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid #e3e2d6;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .7rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand img { flex: 0 0 auto; }
.brand-wordmark { display: grid; gap: .28rem; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: .045em; }
.brand-english { font-family: Georgia, serif; font-size: .67rem; font-weight: 700; letter-spacing: .11em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 3.1rem);
  font-size: .938rem;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  color: #536055;
}

.main-nav a:hover, .main-nav a[aria-current] { color: var(--green); }
.main-nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 .24rem;
  height: 2px;
  border-radius: 1px;
  background: var(--brick);
  content: "";
}

.main-nav .mobile-guide { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .48rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .38rem;
  font-size: .938rem;
  font-weight: 600;
  line-height: 1.45;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.button--outline { color: var(--green); border-color: #a5b2a4; background: transparent; }
.button--outline:hover { background: var(--sage); border-color: var(--green); }
.button--primary { min-height: 3.35rem; color: white; background: var(--green); padding-inline: 1.6rem; }
.button--primary:hover { background: #183227; }
.header-guide { justify-self: end; }
.menu-toggle { display: none; }

.hero {
  padding-block: clamp(2.35rem, 3.8vw, 3.55rem) clamp(3.1rem, 4.45vw, 4.15rem);
  background: var(--paper);
  border-bottom: 1px solid #e6e4d9;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.75rem, 4.1vw, 4rem);
}

.hero-kicker, .section-label {
  color: var(--brick);
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .12em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.05rem;
}

.hero-kicker::before {
  width: 1.75rem;
  height: .25rem;
  background: repeating-linear-gradient(110deg, var(--brick) 0 2px, transparent 2px 5px);
  content: "";
}

.hero h1, .collection h2, .story h2, .gifts h2, .detail-copy h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.16;
}

.hero h1 {
  font-size: clamp(2.65rem, 4.65vw, 4.65rem);
  letter-spacing: -.055em;
  line-height: 1.18;
}

.hero h1 span { display: block; color: var(--brick); }

.hero-description {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.37vw, 1.13rem);
  line-height: 1.85;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.45rem; margin-top: 1.65rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #9aa997;
  text-underline-offset: .35em;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.text-link:hover { color: var(--brick); text-decoration-color: currentColor; }

.hero-art {
  position: relative;
  margin: 0 .62rem .64rem 0;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  inset: .7rem -.64rem -.64rem .7rem;
  z-index: -1;
  border: 1px solid #b1bbab;
  border-radius: 5.25rem .55rem .55rem .55rem;
  content: "";
}

.hero-art-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.48;
  border-radius: 5.25rem .55rem .55rem .55rem;
  background: #fae5ce;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform .35s ease;
}

.hero-art-link:hover img, .story-photo:hover img { transform: scale(1.025); }

.hero-caption {
  position: absolute;
  inset: auto auto 1.3rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .45rem .75rem .45rem .9rem;
  border: 1px solid #faf3e4;
  border-radius: .28rem;
  color: var(--dark);
  background: var(--paper);
  font-size: .86rem;
  font-weight: 650;
}

.plus-icon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.plus-icon::before, .plus-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}
.plus-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.collection { padding-block: clamp(3rem, 4.3vw, 4.1rem) clamp(3.5rem, 5.6vw, 5.7rem); }
.collection-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .65rem 1rem; }
.collection h2, .gifts h2 { font-size: clamp(2.05rem, 3.6vw, 3.25rem); letter-spacing: -.035em; }
.work-count { color: var(--muted); font-size: .875rem; }

.collection-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 1rem;
  margin-block: 1.35rem 1.35rem;
}

.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter {
  min-height: 2.75rem;
  padding: .39rem .88rem;
  border: 1px solid var(--line);
  border-radius: 5rem;
  color: var(--green);
  background: transparent;
  font-size: .875rem;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.filter:hover { border-color: #809583; background: var(--sage); }
.filter[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }

.search-box {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  width: min(100%, 13.5rem);
  padding-inline: .8rem;
  border: 1px solid var(--line);
  border-radius: .38rem;
  color: var(--muted);
}

.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-icon {
  position: relative;
  width: .79rem;
  height: .79rem;
  margin-right: .2rem;
  flex: 0 0 auto;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  inset: auto -.38rem -.19rem auto;
  width: .43rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transform: rotate(48deg);
}

.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.65rem 1.2rem; }
.work-card { min-width: 0; }
.work-card-link { display: block; height: 100%; border-radius: .5rem; }
.work-image {
  overflow: hidden;
  aspect-ratio: 1.24;
  border-radius: .48rem;
  background: #f7e7d7;
}
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-image--portrait img { object-fit: contain; }
.work-card-link:hover .work-image img { transform: scale(1.045); }
.work-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem .1rem .75rem;
  border-bottom: 1px solid var(--line);
}
.work-category { margin-bottom: .17rem; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.work-caption h3 { color: var(--green); font-size: 1.05rem; line-height: 1.48; }
.card-plus {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.work-card-link:hover .card-plus { color: white; background: var(--green); border-color: var(--green); }
.collection-actions { display: flex; justify-content: center; }
#load-more { margin-top: 2rem; }
.empty-state { padding: 2.75rem 1rem; border: 1px dashed #aab5a7; text-align: center; }
.empty-state button { margin-top: .85rem; }

.story { padding-block: clamp(3rem, 5.65vw, 5.7rem); background: var(--sage); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr); align-items: center; gap: clamp(2rem, 6vw, 6.3rem); }
.story-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.48;
  border-radius: .55rem .55rem 4.8rem .55rem;
  background: #f9e6d3;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; transition: transform .3s ease; }
.story h2 { margin-top: .8rem; font-size: clamp(2.5rem, 4.35vw, 4rem); letter-spacing: -.045em; }
.story-copy > p:not(.section-label) { max-width: 26rem; margin-top: 1.05rem; color: #46584a; line-height: 1.9; }
.story-copy .text-link { margin-top: .75rem; }

.gifts { padding-block: clamp(3.25rem, 6.6vw, 6.4rem); background: var(--paper); }
.gifts-layout { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: clamp(1.5rem, 7vw, 7rem); }
.gifts h2 { margin-block: .7rem .9rem; }
.gift-intro { max-width: 22rem; color: var(--muted); }
.gift-list { border-top: 1px solid #c7cdbd; }
.gift-list li { border-bottom: 1px solid #c7cdbd; }
.gift-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem .15rem;
}
.gift-list strong { display: block; margin-bottom: .22rem; color: var(--green); font-size: 1.12rem; }
.gift-list a > span:first-child > span { color: var(--muted); }
.gift-list a:hover strong { color: var(--brick); }
.gift-category { color: var(--green); font-size: .875rem; font-weight: 650; white-space: nowrap; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #8fa18e; }

.site-footer { padding-block: 1.9rem; color: #f7f2e8; background: var(--dark); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; color: #e0e8df; font-size: .9rem; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-contact { display: grid; justify-self: end; text-align: right; }
.footer-contact-label { color: #e0e8df; font-size: .9rem; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #f7f2e8;
  font-size: 1.2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: #9cbaaa;
  text-underline-offset: .3em;
}
.footer-phone:hover { color: #ffe2c0; text-decoration-color: currentColor; }
.site-footer a:focus-visible { outline-color: #ffe2c0; }

html:has(.work-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.work-dialog {
  width: min(59rem, 100% - 2rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: .8rem;
  color: var(--ink);
  background: var(--canvas);
  box-shadow: 0 1rem 4rem #16291d38;
}
.work-dialog::backdrop { background: #182d24a3; }
.detail-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.detail-gallery { padding: 1.1rem; background: var(--paper); }
.detail-image {
  overflow: hidden;
  aspect-ratio: 1.1;
  max-height: 61vh;
  border-radius: .45rem;
  background: #f5e5d6;
}
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { align-self: center; padding: 3.5rem 2.65rem; }
.detail-copy h2 { margin-block: .65rem .85rem; font-size: clamp(1.8rem, 3.8vw, 2.65rem); line-height: 1.25; }
#detail-description { color: var(--muted); line-height: 1.9; }
.detail-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 1;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #bbc6b8;
  border-radius: 50%;
  color: var(--green);
  background: var(--canvas);
}
.detail-close:hover { background: var(--sage); }
.detail-close .plus-icon { transform: rotate(45deg); }
.thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.thumbnail {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--canvas);
}
.thumbnail[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.thumbnail:hover { border-color: var(--green); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: .22rem; }

@media (max-width: 990px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 830px) {
  .collection-tools { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.2rem); }
  .hero-description br { display: none; }
}

@media (max-width: 760px) {
  :root { --header-height: 4.2rem; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-guide { display: none; }
  .menu-toggle {
    display: inline-flex;
    gap: .5rem;
    padding-inline: .7rem;
    color: var(--green);
    background: transparent;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    width: 1rem;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
  .menu-icon::before { top: -.34rem; }
  .menu-icon::after { top: .34rem; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    gap: 0;
    padding: .4rem var(--gutter) .8rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 .5rem .8rem #203a2e0d;
  }
  .main-nav[data-open="true"] { display: grid; }
  .main-nav .mobile-guide { display: flex; }
  .main-nav a { min-height: 2.85rem; padding-inline: .5rem; }
  .main-nav a[aria-current]::after { inset: .53rem auto .53rem 0; width: 2px; height: auto; }
  .hero-layout, .story-layout, .gifts-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 2rem; }
  .hero h1 { font-size: clamp(2.55rem, 7.4vw, 4rem); }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-art-link, .hero-art::before { border-top-left-radius: 3.75rem; }
  .hero-caption { inset: auto auto .85rem .85rem; }
  .story-layout { gap: 1.6rem; }
  .story-photo { grid-row: 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .footer-contact { justify-self: start; text-align: left; }
}

@media (max-width: 560px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .8rem; }
  .work-caption { align-items: flex-start; padding-top: .6rem; }
  .work-caption h3 { font-size: .98rem; }
  .card-plus { width: 1.65rem; height: 1.65rem; }
  .filter { padding-inline: .65rem; }
  .search-box { width: 100%; }
  .gift-list a { flex-wrap: wrap; gap: .4rem 1rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { padding: .75rem; }
  .detail-image { max-height: 46vh; }
  .detail-copy { padding: 1.4rem 1.3rem 1.75rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .hero h1 { font-size: 2.18rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .work-caption { gap: .28rem; }
}

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