:root {
  --paper: #f4f0e8;
  --ink: #1c1a16;
  --studio-navy: #1f2a44;
  --ps-gold: #ccaa6c;
  --muted: #6e6860;
  --line: #ddd6cb;
  --card: #fffcf7;
  --accent: #2f4a4e;
  --photo: #8a8178;
  --font-studio: Fraunces, "Noto Serif TC", serif;
  --font-ps: Fraunces, "Noto Serif TC", serif;
  --pa-cream: #e5dacc;
  --font-pa: Fraunces, "Noto Serif TC", serif;
  --ps-pink: #ea648f;
  --ps-green: #3ea76a;
  --ps-yellow: #e5b933;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap > main {
  flex: 1 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-studio);
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--studio-navy);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.top-end {
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.1rem 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}

.lang-switch .lang-dot {
  color: var(--line);
}

.hero {
  padding: 3.4rem 0 2.4rem;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-studio);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero p {
  margin: 0.85rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding-bottom: 2.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4.2;
  height: auto;
  min-height: 0;
  padding: 1rem 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}

.card-media {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.card-cover {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(28, 26, 22, 0.16);
}

.kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  flex: 0 0 auto;
}

.card h2 {
  margin: 0.18rem 0 0;
  font-family: Fraunces, "Noto Serif TC", serif;
  font-size: 1.28rem;
  font-weight: 550;
  position: relative;
  flex: 0 0 auto;
}

.card p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  position: relative;
  flex: 0 0 auto;
}

.card .cta {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  flex: 0 0 auto;
}

.card-pa {
  background: #0d0c0b;
  border-color: #2a2622;
  color: var(--pa-cream);
}

.card-pa .kicker {
  color: var(--pa-cream);
}

.card-pa p,
.card-pa .cta {
  color: #cfc6b8;
  font-family: "Source Sans 3", "Noto Sans TC", sans-serif;
  font-weight: 500;
}

.card-ps {
  background: var(--ps-green);
  border: none;
  color: #fff;
  padding: 0;
}

.card-ps .blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.card-ps .blob-pink {
  width: 13.2rem;
  height: 13.2rem;
  background: var(--ps-pink);
  top: -6.6rem;
  left: -6.6rem;
}

.card-ps .blob-yellow {
  width: 13.5rem;
  height: 13.5rem;
  background: var(--ps-yellow);
  right: -4.7rem;
  bottom: -2.15rem;
}

.ps-badge {
  position: absolute;
  z-index: 2;
  top: 1.45rem;
  left: 1.55rem;
  width: 6.55rem;
  height: 6.55rem;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(20, 40, 28, 0.18);
}

.ps-badge img {
  width: 5.4rem;
  height: 5.4rem;
  display: block;
}

.card-ps .ps-copy {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10.2rem 1rem 0.4rem;
  position: relative;
  z-index: 1;
}

.card-ps .kicker,
.card-ps h2,
.card-ps p,
.card-ps .cta {
  position: relative;
  z-index: 1;
}

.card-ps .kicker {
  color: #fff;
}

.card-ps h2 {
  font-family: var(--font-ps);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card-ps .ps-desc,
.card-ps .ps-soon {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.card-ps .ps-desc {
  margin-top: 0.4rem;
}

.card-ps .ps-soon {
  margin-top: 0.18rem;
}

.card-ps p,
.card-ps .cta {
  color: #f4fff8;
}

.card-ps .cta {
  margin: auto 1rem 1.1rem;
}

.card-books {
  background: #fff;
  border: 2px solid var(--studio-navy);
  box-shadow: 0 10px 28px rgba(31, 42, 68, 0.14);
  color: #1a2433;
}

.card-books .card-media {
  background: #e8dfd0;
  border-radius: 12px;
}

.card-books .kicker {
  color: var(--ps-green);
  margin-top: 0;
}

.card-books h2 {
  margin-top: 0.18rem;
}

.card-books p {
  margin-top: 0.35rem;
  color: #5b6570;
}

.card-books .cta {
  margin-top: 0.7rem;
  color: #1a2433;
}

.page-cover {
  width: min(340px, 100%);
  height: auto;
  display: block;
  margin: 1.2rem 0 0;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(28, 26, 22, 0.16);
}

.cover-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.2rem;
  align-items: start;
}

.cover-pair .page-cover {
  width: 100%;
  margin-top: 0;
}

.book-byline {
  margin-top: 1rem;
}

.book-byline + .book-byline {
  margin-top: 0.25rem;
}

.page p.book-local {
  margin-top: 0.4rem;
}

.photo-door {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin: 0 0 3.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.photo-door .label {
  font-size: 0.95rem;
  color: var(--photo);
}

.photo-door .go {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  line-height: 1;
}

.ig-link::before {
  content: "";
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.2' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12.2' r='4.1' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.15' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.2' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12.2' r='4.1' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.15' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.page {
  padding: 2.6rem 0 3.5rem;
  max-width: 40rem;
}

.page h1 {
  margin: 0;
  font-family: var(--font-studio);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 550;
}

.ps-name {
  font-family: var(--font-ps);
  font-weight: 650;
}

.lede {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-contact .lede {
  margin-top: 2.1rem;
}

.page.page-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3.25rem;
  width: 100%;
  max-width: none;
}

.contact-copy {
  flex: 1 1 20rem;
  max-width: 26rem;
}

.contact-seal {
  flex: 0 0 auto;
  width: min(24rem, 46vw);
  height: auto;
  display: block;
}

.page h2 {
  margin: 2rem 0 0;
  font-family: Fraunces, "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 550;
}

.page p,
.page li {
  color: var(--ink);
}

.page p {
  margin: 0.85rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--card);
}

.meta {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--ink);
  font-size: 0.98rem;
}

.page ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

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

.listing-cats {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.listing-cats li + li {
  margin-top: 0.65rem;
}

.listing-cats a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  text-decoration: none;
}

.listing-cats a:hover {
  border-color: var(--ink);
}

.listing-cats strong {
  display: block;
  font-size: 1.02rem;
}

.listing-cats span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 1.15rem 0 0;
}

.contact-list strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
}

.contact-list a,
.contact-list span {
  color: var(--muted);
}

.contact-list .ig-link {
  margin-top: 0.2rem;
}

.page-photo {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.85rem;
}

.page-photo .meta {
  margin-top: auto;
  padding-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.foot {
  padding: 1.8rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.95rem;
}

.foot-sep {
  color: var(--muted);
  user-select: none;
}

.foot-nav a {
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--ink);
}

.foot p {
  margin: 0.35rem 0 0;
}

.foot .legal {
  margin-top: 1.55rem;
  max-width: none;
}

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

  .page-contact {
    flex-direction: column;
  }

  .contact-copy {
    max-width: none;
  }

  .contact-seal {
    width: min(100%, 20rem);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1080px, calc(100% - 1.6rem));
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .top-end {
    width: 100%;
    justify-content: space-between;
  }
}

/* Coming soon (public door until full hub) */
.page-soon {
  background: linear-gradient(180deg, #f8f4ec 0%, var(--paper) 42%);
}

.wrap-soon {
  min-height: 100vh;
  justify-content: space-between;
}

.top-soon {
  border-bottom: none;
  padding-top: 1.6rem;
}

.soon-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
  max-width: 36rem;
}

.soon-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-studio);
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.12;
  color: var(--studio-navy);
  font-weight: 650;
}

.soon-lede {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34ch;
}

.soon-contact {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.soon-contact p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.soon-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.soon-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.soon-contact a {
  font-weight: 600;
  color: var(--studio-navy);
  text-decoration: none;
}

.soon-contact a:hover {
  text-decoration: underline;
}

.soon-contact-list {
  gap: 1.25rem;
}

.soon-contact-list .contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.soon-contact-list .contact-list li {
  display: grid;
  gap: 0.2rem;
}

.soon-contact-list .contact-list strong {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.soon-contact-list .contact-list a {
  font-weight: 600;
  color: var(--studio-navy);
  text-decoration: none;
}

.soon-back {
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.soon-back:hover {
  color: var(--studio-navy);
  text-decoration: underline;
}

.foot-soon {
  padding-bottom: 1.5rem;
}

.foot-soon .legal {
  margin-top: 0;
}
