:root {
  color-scheme: light;
  --paper: #fff9f7;
  --blush: #fcf0f1;
  --rose: #f6e5e8;
  --ink: #39282c;
  --muted: #6f565b;
  --accent: #783f52;
  --accent-dark: #5a2b3b;
  --border: #e8cdd1;
  --header-height: 78px;
  --heading-font: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --body-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.75 var(--body-font);
}

h1,
h2,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
iframe {
  display: block;
  max-width: 100%;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
}

.wrap {
  width: min(1240px, 100% - clamp(32px, 8vw, 120px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--paper);
  /* background: white; */
  background: linear-gradient(to right, white, var(--paper));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 64px);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: clamp(53px, 5vw, 69px);
  height: auto;
  border-radius: 2px;
}

.brand-text {
  display: grid;
  line-height: 1.35;
}

.brand-name {
  font: 700 clamp(1rem, 1.5vw, 1.2rem)/1.35 var(--heading-font);
  letter-spacing: 0.085em;
}

.brand-en {
  color: var(--muted);
  font:
    600 clamp(0.82rem, 1.2vw, 0.95rem)/1.2 "Cormorant Garamond",
    Georgia,
    serif;
  letter-spacing: 0.046em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.35vw, 32px);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nav-contact {
  min-width: 96px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--accent);
  text-align: center;
}

.nav-contact:hover {
  background: var(--blush);
}
.menu-toggle {
  display: none;
}

.hero {
  padding: clamp(14px, 2.2vw, 30px) 0 0;
  background: var(--blush);
}

.hero-frame {
  overflow: hidden;
  background: #f7e5ce;
  box-shadow: 0 12px 40px #722c4610;
}

.hero-frame img {
  width: 100%;
  height: auto;
}

.store-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  padding-block: 21px 24px;
  text-align: center;
}

.store-strip > div {
  padding: 0 12px;
}
.store-strip > div + div {
  border-inline-start: 1px solid var(--border);
}

.store-strip dt,
.contact-details dt {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.store-strip dd {
  margin-top: 3px;
  font-size: 0.9rem;
}

.store-strip a,
.contact-details a {
  text-decoration: none;
}
.store-strip a:hover,
.contact-details a:hover {
  text-decoration: underline;
}
.hours {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.store-strip .hours:not(a),
.contact-details .hours {
  margin-inline-start: 0.3em;
}

.section {
  padding-block: clamp(44px, 6.6vw, 95px);
}
.collection {
  padding-top: clamp(36px, 4.3vw, 62px);
}

h2 {
  font: 600 clamp(1.75rem, 3vw, 2.65rem)/1.35 var(--heading-font);
  letter-spacing: 0.09em;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 24px;
}

.text-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration-color: var(--border);
  text-underline-offset: 0.4em;
}

.text-link:hover {
  text-decoration-color: currentColor;
}
.text-link span {
  margin-inline-start: 0.3em;
}

.button {
  min-height: 42px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}

.button:hover {
  background: var(--blush);
  border-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * clamp(13px, 2vw, 29px)) / 4);
  gap: clamp(13px, 2vw, 29px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--rose);
  padding: 5px 3px 16px;
}

.product-grid > li {
  min-width: 0;
  scroll-snap-align: start;
}

.product-category + .product-category {
  margin-top: clamp(28px, 4vw, 48px);
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.category-heading h3 {
  margin: 0;
  font: 600 clamp(1.25rem, 2.2vw, 1.65rem)/1.5 var(--heading-font);
  letter-spacing: 0.08em;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.gallery-controls button {
  min-width: 44px;
  font-size: 1.15rem;
}
.gallery-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.product-card {
  display: block;
  text-decoration: none;
  background: #fffcfa;
  border: 1px solid var(--border);
}

.product-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--blush);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}
.product-card:hover {
  border-color: var(--accent);
}

.product-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.zoom-icon {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.zoom-icon::before,
.zoom-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: currentColor;
  content: "";
}

.zoom-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.button-outline {
  color: var(--accent);
}
.button-outline span {
  margin-inline-start: 0.35em;
}

.about {
  padding-block: clamp(30px, 5vw, 72px);
  background: var(--rose);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
}

.shop-photo {
  padding: clamp(7px, 1vw, 14px);
  border: 1px solid #d5aeb8;
}

.shop-photo img {
  width: 100%;
  height: auto;
}

.about-copy h2 {
  margin-bottom: clamp(14px, 2vw, 25px);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.about-copy p {
  max-width: 38em;
  color: var(--muted);
  line-height: 1.9;
}

.about-copy p + p {
  margin-top: 12px;
}
.services {
  text-align: center;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.services-list li {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 123px;
  flex: 1 1 123px;
  max-width: 185px;
  padding: 14px 7px;
  background: var(--blush);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

.services-list img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(29%) sepia(14%) saturate(2454%)
    hue-rotate(295deg) brightness(93%) contrast(82%);
}

.feed {
  padding-block: clamp(30px, 4vw, 62px);
  border-block: 1px solid var(--border);
}

.contact {
  background: var(--blush);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
}

.contact-details {
  margin-block: 21px;
}
.contact-details > div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.contact-details dt {
  padding-top: 0.28em;
}
.parking {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 7px;
  padding: 5px 10px;
  color: var(--accent-dark);
  background: var(--paper);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  text-decoration: none;
}

.social-list a:hover {
  border-color: var(--accent);
}
.social-list img {
  object-fit: contain;
}
.contact-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.store-map {
  width: 100%;
  background: var(--rose);
}

.site-footer {
  padding-block: 18px;
  background: var(--rose);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 20px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 65px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    align-self: center;
    min-height: 42px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--blush);
    border-radius: 2px;
    color: var(--accent);
    font-size: 0.85rem;
  }

  .menu-icon {
    width: 15px;
    height: 10px;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px
      no-repeat;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 13px;
    padding-block: 8px 13px;
    border-top: 1px solid var(--border);
  }

  .menu-toggle:not([hidden])[aria-expanded="false"] + .site-nav {
    display: none;
  }

  .site-nav a {
    min-height: 44px;
    padding: 9px 8px;
  }
  .site-nav .nav-contact {
    text-align: start;
  }
  .services-list li {
    flex-basis: 110px;
  }
}

@media (max-width: 680px) {
  .store-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 12px 0;
  }
  .store-strip > div:nth-child(2) {
    grid-area: 2 / 1 / 3 / -1;
    margin-top: 9px;
    padding-block: 8px;
    border-inline: 0;
    border-top: 1px solid var(--border);
  }
  .store-strip > div {
    padding-inline: 4px;
  }
  .store-strip dd {
    margin-top: 1px;
    font-size: 0.82rem;
  }
  .store-strip .hours:not(a) {
    display: block;
    margin: 0;
  }
  .store-strip > div:last-child {
    grid-area: 1 / 2;
  }
  .product-grid {
    grid-auto-columns: calc((100% - clamp(13px, 2vw, 29px)) / 2);
  }
  .product-label {
    padding: 9px 10px;
    font-size: 0.85rem;
  }
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-copy {
    grid-row: 1;
  }
  .services-list li {
    flex: 0 1 calc((100% - 20px) / 3);
    min-height: 106px;
  }
  .store-map {
    height: 290px;
  }
}

@media (max-width: 390px) {
  .services-list li {
    flex-basis: calc((100% - 10px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-photo img {
    transition: none;
  }
}

.collection-heading {
  align-items: center;
}

.market-cta {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--accent-dark);
  border-radius: 5px;
  color: white;
  background: var(--accent);
  box-shadow: 0 4px 12px #783f5224;
  text-decoration: none;
}

.market-cta:hover,
.post-original:hover {
  background: var(--accent-dark);
}
.market-cta img {
  border-radius: 5px;
}
.market-cta strong {
  display: block;
  font-size: 0.97rem;
  line-height: 1.4;
}
.market-cta strong + span {
  color: #fce8ee;
  font-size: 0.81rem;
}
.market-arrow {
  margin-inline-start: clamp(8px, 1.7vw, 22px);
  font-size: 1.2rem;
}

.fancybox-bg {
  background: #29181e;
}
.fancybox-caption {
  font-family: var(--body-font);
}
/* Let jQuery receive the button click instead of the nested SVG path. */
.fancybox-button * {
  pointer-events: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.15vw, 28px);
}

.post-card {
  min-width: 0;
}

.post-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fffcfa;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.post-link:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px #783f521f;
}

.post-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rose);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-cover-poster img {
  object-fit: contain;
}
.post-link:hover .post-cover img {
  transform: scale(1.035);
}

.post-illustration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.post-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(14px, 2vw, 22px);
}

.post-card-copy time,
.post-dialog-copy time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.065em;
}

.post-card-copy h3 {
  margin: 6px 0 8px;
  font: 700 clamp(1.05rem, 1.7vw, 1.34rem)/1.55 var(--heading-font);
}

.post-card-copy p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.post-more {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

.post-more span {
  display: inline-block;
  margin-inline-start: 0.4em;
}
.post-link:hover .post-more {
  text-decoration: underline;
}

.post-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: min(92dvh, 800px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 78px #2c151b3d;
}

.post-dialog::backdrop {
  background: #2c151bc9;
}
html:has(.post-dialog[open]) {
  overflow: hidden;
}

.post-dialog-top {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.post-dialog-top form {
  display: flex;
  justify-content: flex-end;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--blush);
  color: var(--accent-dark);
  font-size: 1.6rem;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--accent);
}

.post-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.post-dialog-media {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 320px;
  padding: clamp(10px, 2.5vw, 24px);
  background: var(--rose);
}

.post-dialog-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(65dvh, 590px);
  object-fit: contain;
}

.post-dialog-media figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}

.post-dialog-copy {
  align-self: center;
  padding: clamp(20px, 4vw, 42px);
}

.post-dialog-copy h2 {
  margin: 7px 0 14px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.post-dialog-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.post-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.quick-links {
  position: fixed;
  z-index: 4;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: 77px;
  overflow: hidden;
  border: 1px solid #dcbec4;
  border-radius: 9px;
  background: var(--paper);
  color: var(--accent-dark);
  box-shadow: 0 6px 24px #5a2b3b29;
}

.quick-links a {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 3px;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.quick-links a + a {
  border-top: 1px solid var(--border);
}
.quick-links a:hover {
  background: var(--rose);
}
.quick-links a:focus-visible {
  outline-offset: -3px;
}
.quick-links .quick-yahoo {
  background: #f5ebfb;
  color: #4b1c83;
}
.quick-links .quick-yahoo:hover {
  background: #eaddf7;
}
.quick-links img {
  object-fit: contain;
  border-radius: 4px;
}
.quick-links .quick-icon-line {
  filter: brightness(0) saturate(100%) invert(26%) sepia(24%) saturate(1372%)
    hue-rotate(296deg) brightness(97%) contrast(90%);
}

@media (max-width: 1420px) {
  html {
    scroll-padding-bottom: 90px;
  }
  .site-footer {
    padding-bottom: calc(83px + env(safe-area-inset-bottom));
  }
  .quick-links {
    flex-direction: row;
    width: auto;
    max-width: calc(100% - 20px);
  }
  .quick-links a {
    min-width: 64px;
    min-height: 52px;
    padding: 5px 6px;
  }
  .quick-links a + a {
    border-top: 0;
    border-inline-start: 1px solid var(--border);
  }
  .quick-links img {
    width: 22px;
    height: 22px;
  }
}

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

@media (max-width: 580px) {
  .post-grid,
  .post-dialog-layout {
    grid-template-columns: 1fr;
  }
  .post-dialog-media {
    min-height: 0;
  }
  .post-dialog-media img {
    max-height: min(45dvh, 390px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-link,
  .post-cover img {
    transition: none;
  }
}
