:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --paper: #ffffff;
  --ink: #2a2520;
  --ink-soft: #5a5048;
  --ink-mute: #8a7e72;
  --line: #e6dfd2;
  --indigo: #1a3a52;
  --indigo-deep: #0f2536;
  --gold: #b08d57;
  --akane: #b14a4a;
  --shadow-sm: 0 1px 2px rgba(40, 30, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(40, 30, 20, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max: 1080px;
  --pad: clamp(16px, 4vw, 32px);
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
}

/* ----------------- Header ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.site-header__brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fbf6e8;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.brand-mark--small {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-text__sub {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}

.site-nav a:hover {
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--ink);
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0;
  }
  .site-nav a {
    padding: 8px 8px;
    font-size: 13px;
  }
  .brand-text__sub {
    display: none;
  }
}

/* ----------------- Hero ----------------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 80px) var(--pad) clamp(32px, 6vw, 56px);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(26, 58, 82, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.hero__avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 220deg,
      #f5d96a,
      #ee8a3a,
      #d6336c,
      #8a3aa1,
      #1a3a52,
      #f5d96a
    );
  padding: 4px;
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}

.hero__avatar-disc {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  color: var(--indigo-deep);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  letter-spacing: 0;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 4px;
  color: var(--ink);
}

.hero__subtitle {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin: 0 0 24px;
  text-transform: none;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  margin: 0 auto 24px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 480px;
}

.hero__stats > div {
  text-align: center;
}

.hero__stats dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.hero__bio {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--indigo);
  color: #fbf6e8;
}

.btn--primary:hover {
  background: var(--indigo-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--ink-mute);
}

/* ----------------- Banner ----------------- */
.banner {
  padding: clamp(36px, 8vw, 72px) var(--pad);
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.banner__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.banner__eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 12px;
}

.banner__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  color: var(--ink);
}

.banner__lead {
  margin: 0;
  color: var(--ink-soft);
  line-height: 2;
  font-size: 15px;
}

/* ----------------- Section heads ----------------- */
.section-head {
  margin: 0 0 24px;
}

.section-head--center {
  text-align: center;
}

.section-head__eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0 0 8px;
}

.section-head__title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(22px, 3.6vw, 28px);
  margin: 0 0 8px;
  color: var(--ink);
}

.section-head__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

/* ----------------- Gallery ----------------- */
.gallery {
  padding: clamp(40px, 8vw, 72px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 720px) {
  .gallery__grid {
    gap: 8px;
  }
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile a,
.tile > img {
  display: block;
  width: 100%;
  height: 100%;
}

.tile a {
  position: relative;
}

.tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tile:hover a::after {
  opacity: 0;
}

.gallery__more {
  text-align: center;
  margin: 32px 0 0;
}

/* ----------------- Lightbox ----------------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  color: #fbf6e8;
}

.lightbox::backdrop {
  background: rgba(20, 16, 12, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 250, 240, 0.95);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.lightbox__close:hover {
  transform: scale(1.05);
  background: #fff;
}

.link-arrow {
  font-family: var(--serif);
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-mute);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--indigo);
  border-color: var(--indigo);
  text-decoration: none;
}

/* ----------------- About ----------------- */
.about {
  padding: clamp(48px, 9vw, 96px) var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__inner {
  max-width: 680px;
  margin: 0 auto;
}

.about__body {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.1;
}

.about__body p + p {
  margin-top: 1.2em;
}

/* ----------------- Access ----------------- */
.access {
  padding: clamp(48px, 9vw, 96px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.access__inner {
  max-width: 680px;
  margin: 0 auto;
}

.access__map {
  margin: 0 0 24px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .access__map {
    aspect-ratio: 4 / 3;
  }
}

.access__list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
  margin: 0 0 28px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.access__list > div {
  display: contents;
}

.access__list dt {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding-top: 2px;
}

.access__list dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

@media (max-width: 480px) {
  .access__list {
    grid-template-columns: 84px 1fr;
    padding: 18px;
  }
}

/* ----------------- Footer ----------------- */
.site-footer {
  margin-top: 24px;
  padding: 32px var(--pad);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  color: var(--ink);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.site-footer__credit {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.site-footer__credit a {
  color: var(--ink-soft);
}

.site-footer__copyright {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* ----------------- Blog ----------------- */
.blog {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad);
}

.blog-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 48px 0;
  font-size: 14px;
}

.post-cards {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.post-card a {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
}

.post-card__img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  color: #fbf6e8;
  font-family: var(--serif);
  font-size: 48px;
}

.post-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-card__cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-family: var(--serif);
}

.post-card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.5;
}

.post-card__date {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

/* ----------------- Post detail ----------------- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad);
}

.post__head {
  text-align: center;
  margin-bottom: 28px;
}

.post__cat {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0 0 10px;
}

.post__title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--ink);
}

.post__date {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.post__eyecatch {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post__eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

.post__body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

.post__body h2,
.post__body h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: 0.06em;
  margin: 2em 0 0.8em;
  line-height: 1.5;
}

.post__body h2 {
  font-size: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4em;
}

.post__body h3 {
  font-size: 18px;
}

.post__body p {
  margin: 0 0 1.4em;
}

.post__body a {
  color: var(--indigo);
  border-bottom: 1px solid currentColor;
  word-break: break-word;
}

.post__body img,
.post__body figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em auto;
  border-radius: var(--radius-sm);
}

.post__body figure {
  margin: 1.6em 0;
}

.post__body ul,
.post__body ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}

.post__body li {
  margin: 0.3em 0;
}

.post__body blockquote {
  margin: 1.6em 0;
  padding: 0.6em 1.2em;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post__body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.post__body pre {
  background: var(--ink);
  color: #fbf6e8;
  padding: 1em 1.2em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.post__body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post__back {
  margin-top: 48px;
  text-align: center;
}

/* ----------------- Cart toggle (header) ----------------- */
.site-header__inner {
  gap: 12px;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.cart-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--ink-mute);
}

.cart-toggle__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--akane);
  color: #fbf6e8;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ----------------- Cart drawer ----------------- */
.cart-drawer[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  color: var(--ink);
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: 50%;
}

.cart-drawer__close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
}

.cart-drawer__empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 48px 0;
  line-height: 2;
  font-size: 14px;
}

.cart-drawer__empty a {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--serif);
  letter-spacing: 0.1em;
}

.cart-drawer__foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px max(18px, env(safe-area-inset-bottom));
  background: var(--bg);
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.cart-drawer__subtotal strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

.cart-drawer__checkout {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
}

.cart-drawer__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--serif);
  font-size: 22px;
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
}

.cart-item__name {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.cart-item__price {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 13px;
}

.cart-item__qty button {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
}

.cart-item__qty button:hover {
  background: var(--bg-alt);
}

.cart-item__qty-value {
  min-width: 18px;
  text-align: center;
  font-family: var(--serif);
}

.cart-item__remove {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 50%;
  align-self: start;
}

.cart-item__remove:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

/* ----------------- Shop ----------------- */
.shop {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad);
}

.shop-back {
  margin: 0 0 20px;
}

.shop-cats {
  margin: 24px 0 32px;
}

.shop-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.shop-cats a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shop-cats a:hover {
  text-decoration: none;
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--ink-mute);
}

.shop-cats a.is-current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.empty-state {
  text-align: center;
  color: var(--ink-mute);
  padding: 64px 0;
  font-size: 14px;
  line-height: 2;
}

.product-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card a {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.product-card a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  color: #fbf6e8;
  font-family: var(--serif);
  font-size: 44px;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 16, 12, 0.86);
  color: #fbf6e8;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.product-card.is-sold-out .product-card__img {
  opacity: 0.55;
}

.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.product-card__price {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

.product-card__price-sale {
  color: var(--akane);
  font-weight: 700;
}

.product-card__price-was {
  color: var(--ink-mute);
  font-size: 12px;
  margin-left: 6px;
}

/* ----------------- Product detail ----------------- */
.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--pad);
}

.product__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 800px) {
  .product__layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.product__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__main {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 60px;
  color: var(--ink-mute);
}

.product__thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.product__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__thumb[aria-current="true"] {
  border-color: var(--ink);
}

.product__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 28px);
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  line-height: 1.5;
}

.product__price {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 0 0 8px;
  color: var(--ink);
}

.product__price-sale {
  color: var(--akane);
  font-weight: 700;
}

.product__price-was {
  color: var(--ink-mute);
  font-size: 14px;
  margin-left: 8px;
}

.product__stock {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.product__stock--out {
  color: var(--akane);
  font-weight: 700;
}

.product__stock--low {
  color: var(--gold);
}

.product__actions {
  margin: 0 0 28px;
}

.product__add {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
}

.product__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.product__desc h2,
.product__desc h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: 0.06em;
  margin: 1.4em 0 0.6em;
}

.product__desc h2 {
  font-size: 18px;
}

.product__desc h3 {
  font-size: 16px;
}

.product__desc p {
  margin: 0 0 1.2em;
}

.product__desc img {
  max-width: 100%;
  height: auto;
  margin: 1.4em 0;
  border-radius: var(--radius-sm);
}

/* ----------------- Legal pages ----------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad);
}

.legal__inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 48px);
}

.legal__note {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal__note code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(176, 141, 87, 0.12);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--gold);
}

.legal__list {
  margin: 0 0 28px;
  display: grid;
  gap: 0;
}

.legal__list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.legal__list > div:last-child {
  border-bottom: 0;
}

.legal__list dt {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  padding-top: 2px;
}

.legal__list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
}

@media (max-width: 600px) {
  .legal__list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  margin: 2em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}

.legal p,
.legal ul {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.4em;
}

.legal__updated {
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-mute);
}

.legal__back {
  margin-top: 32px;
  text-align: center;
}

/* ----------------- Footer legal ----------------- */
.site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
