/* Cireli Craft · Kamon Brooches — public website (v2)
   Built on the token files in tokens/ (loaded via styles.css). */

body { margin: 0; background: var(--paper-1); color: var(--ink-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink-1); text-decoration: none; }
a:hover { color: var(--shu); text-decoration: none; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.no-jp .jp-only { display: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); box-sizing: border-box; }
.section { border-bottom: 1px solid var(--line-1); }
.section--inset { background: var(--paper-2); }
.section__body { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.eyebrow { font: 500 12px var(--font-mono); letter-spacing: .2em; color: var(--shu); }
.h2 { font: 700 clamp(30px, 4.4vw, 48px)/1.2 var(--font-display); margin-top: 16px; max-width: 760px; text-wrap: balance; }

/* ---------- Seal ---------- */
.seal {
  width: 52px; height: 52px; flex: none;
  background: var(--shu); color: var(--on-shu);
  display: flex; align-items: center; justify-content: center;
  font: 700 26px var(--font-display);
}

/* ---------- Brooch (rim → field → motif) ---------- */
.brooch {
  flex: none; border-radius: 50%;
  background: var(--brass-f1-rim);
  box-shadow: var(--shadow-brooch);
  display: flex; align-items: center; justify-content: center;
}
.brooch__field {
  width: var(--field-ratio); height: var(--field-ratio); border-radius: 50%;
  background: var(--brass-f1-field);
  box-shadow: var(--shadow-field);
  display: flex; align-items: center; justify-content: center;
}
.brooch--f2 { background: var(--brass-f2-rim); }
.brooch--f2 .brooch__field { background: var(--brass-f2-field); }
.brooch img { width: var(--fit, var(--motif-fit)); height: var(--fit, var(--motif-fit)); object-fit: contain; display: block; }

/* ---------- Spec table (1 column) ---------- */
.spec-row {
  display: grid; grid-template-columns: var(--kw, 110px) minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.spec-row__k { color: var(--shu); font-weight: 500; }
.spec-row__v { color: var(--ink-1); }

/* ---------- Image slot ---------- */
image-slot { display: block; position: absolute; inset: 0; overflow: hidden; }
image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-slot__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 32px; box-sizing: border-box; text-align: center;
  font: 400 12px/1.7 var(--font-mono); color: var(--ink-5); letter-spacing: .04em;
  border: 1px dashed var(--line-1);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper-1); border-bottom: 1px solid var(--line-1); }
.site-header__inner {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 40px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 12px var(--font-mono); letter-spacing: .18em; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--shu); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__eyebrow { font: 500 12px var(--font-mono); letter-spacing: .32em; color: var(--ink-5); margin-top: 32px; }
.hero__title { font: 700 clamp(36px, 6vw, 64px)/1.15 var(--font-display); margin-top: 20px; letter-spacing: .02em; max-width: 820px; text-wrap: balance; }
.hero__jp { font: 500 clamp(18px, 2.4vw, 24px) var(--font-display); color: var(--ink-3); margin-top: 16px; letter-spacing: .2em; }
.hero__brooches { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 64px); }
.hero__lead { font-size: 17px; line-height: 1.85; color: var(--ink-3); max-width: 620px; margin-top: clamp(40px, 6vw, 56px); text-wrap: pretty; }

.toc { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-1); }
.toc__item {
  display: flex; flex-direction: column; gap: 8px; padding: 28px clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
}
.toc__item:hover { background: var(--paper-2); }
.toc__code { font: 500 11px var(--font-mono); letter-spacing: .2em; color: var(--shu); }
.toc__jp { font: 700 26px var(--font-display); letter-spacing: .14em; }
.toc__en { font: italic 500 19px var(--font-latin); color: var(--ink-3); }
.toc__sub { font-size: 14px; line-height: 1.7; color: var(--ink-5); text-wrap: pretty; }

/* ---------- Worn ---------- */
.worn { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 88px); align-items: flex-end; }
.worn--reverse { flex-wrap: wrap-reverse; margin-top: 56px; }
.worn__image { flex: 1 1 520px; min-width: 0; aspect-ratio: 4 / 5; max-height: 860px; position: relative; background: var(--paper-2); }
.worn__image--sacred { flex-basis: 480px; max-height: 820px; background: var(--paper-1); }
.worn__text { flex: 1 1 300px; min-width: 0; max-width: 400px; padding-bottom: 8px; }
.worn__title { font: 700 clamp(28px, 3.6vw, 40px)/1.3 var(--font-display); margin-top: 16px; text-wrap: balance; }
.worn__body { font-size: 16px; line-height: 1.85; color: var(--ink-3); margin-top: 18px; text-wrap: pretty; }
.worn__jp { font: 400 14.5px/2 var(--font-display); color: var(--ink-3); margin-top: 14px; text-wrap: pretty; }

.feature-chip { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-1); }
.feature-chip__name { font: 700 17px var(--font-display); }
.feature-chip__name--latin { font: italic 600 20px var(--font-latin); }
.feature-chip__meta { font: 400 12px var(--font-mono); color: var(--ink-5); margin-top: 4px; letter-spacing: .08em; }

/* ---------- Heritage ---------- */
.heritage { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: 36px; }
.heritage__text { flex: 1 1 380px; min-width: 0; }
.heritage__text p { font-size: 16.5px; line-height: 1.9; color: var(--ink-3); text-wrap: pretty; }
.heritage__text p + p { margin-top: 20px; }
.heritage__text .heritage__jp { font: 400 15px/2.1 var(--font-display); margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-1); }
.eras { flex: 1 1 420px; min-width: 0; border-top: 2px solid var(--ink-1); }
.era { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-1); }
.era__jp { font: 700 18px var(--font-display); letter-spacing: .08em; }
.era__when { font: 400 12px var(--font-mono); color: var(--ink-5); margin-top: 4px; }
.era__en { font: italic 500 19px var(--font-latin); }
.era__t { font-size: 14.5px; line-height: 1.75; color: var(--ink-3); margin-top: 4px; text-wrap: pretty; }

/* ---------- Series head (Kamon / Sacred / Custom) ---------- */
.series-top { padding-top: clamp(56px, 8vw, 96px); }
.series-head { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.series-head__text { flex: 1 1 420px; min-width: 0; }
.series-head__jp { font: 700 clamp(64px, 10vw, 96px)/1 var(--font-display); margin-top: 20px; letter-spacing: .14em; }
.series-head__en { font: italic 500 24px var(--font-latin); color: var(--ink-3); margin-top: 16px; }
.series-head__lead { font-size: 16px; line-height: 1.85; color: var(--ink-3); max-width: 560px; margin-top: 20px; text-wrap: pretty; }
.series-head__ja { font: 400 15px/2 var(--font-display); color: var(--ink-3); max-width: 560px; margin-top: 14px; text-wrap: pretty; }
.series-head__brooches { display: flex; gap: 20px; align-items: center; }

/* ---------- Kamon grid + detail ---------- */
.kamon-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-1); border-left: 1px solid var(--line-1); }
.motif-card { display: flex; gap: 20px; align-items: center; padding: 32px 24px; color: var(--ink-1); border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.motif-card:hover { background: var(--paper-2); color: var(--ink-1); }
.motif-card__jp { font: 700 20px var(--font-display); }
.motif-card__ro { font-size: 13px; color: var(--ink-5); margin-top: 2px; }
.motif-card__sku { font: 400 11px var(--font-mono); color: var(--shu); margin-top: 8px; }
@media (max-width: 960px) { .kamon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .kamon-grid { grid-template-columns: minmax(0, 1fr); } }

.kamon-list { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); }
.crest { display: flex; flex-wrap: wrap; gap: 36px 56px; padding: clamp(40px, 5vw, 56px) 0; border-bottom: 1px solid var(--line-1); scroll-margin-top: 80px; }
.crest__aside { flex: 0 1 300px; display: flex; flex-direction: column; gap: 20px; }
.crest__finishes { display: flex; gap: 16px; }
.crest__finish { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.crest__finish span { font: 400 11px var(--font-mono); color: var(--ink-5); letter-spacing: .1em; }
.crest__main { flex: 1 1 440px; min-width: 0; }
.crest__title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.crest__no { font: 500 12px var(--font-mono); color: var(--shu); }
.crest__jp { font: 700 30px var(--font-display); letter-spacing: .06em; }
.crest__ro { font: italic 500 22px var(--font-latin); color: var(--ink-3); }
.crest__en { font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.crest__assoc { font-size: 13px; color: var(--ink-5); margin-top: 4px; }
.crest__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 36px; margin-top: 28px; }
.crest__label { font: 500 11px var(--font-mono); letter-spacing: .2em; color: var(--shu); }
.crest__fact { font-size: 15px; line-height: 1.8; color: var(--ink-3); margin-top: 8px; text-wrap: pretty; }
.crest__story { background: var(--paper-2); padding: 22px 26px; margin-top: 28px; }
.crest__story-text { font: italic 500 19px/1.6 var(--font-latin); color: var(--ink-1); margin-top: 10px; text-wrap: pretty; }
.crest__ja { font: 400 14.5px/2 var(--font-display); color: var(--ink-3); margin-top: 20px; text-wrap: pretty; }

/* ---------- Sacred grid ---------- */
.sacred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); margin-top: 56px; border-top: 1px solid var(--line-1); border-left: 1px solid var(--line-1); }
.symbol {
  display: flex; flex-wrap: wrap; gap: 24px 28px; padding: 32px clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
  background: var(--paper-1); scroll-margin-top: 80px;
}
.symbol__aside { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.symbol__sizes { font: 400 11px var(--font-mono); color: var(--ink-5); }
.symbol__main { flex: 1 1 240px; min-width: 0; }
.symbol__title { display: flex; align-items: baseline; gap: 12px; }
.symbol__no { font: 500 12px var(--font-mono); color: var(--shu); }
.symbol__ro { font: italic 600 26px var(--font-latin); }
.symbol__assoc { font-size: 13px; color: var(--ink-5); margin-top: 4px; }
.symbol__origin { font-size: 14.5px; line-height: 1.8; color: var(--ink-3); margin-top: 14px; text-wrap: pretty; }
.symbol__story { font: italic 500 17px/1.55 var(--font-latin); color: var(--ink-1); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); text-wrap: pretty; }

/* ---------- Custom ---------- */
.crest-slot {
  width: 150px; height: 150px; flex: none; box-sizing: border-box; border-radius: 50%;
  border: 1px dashed var(--ink-5); display: flex; align-items: center; justify-content: center;
  font: 400 11px/1.6 var(--font-mono); color: var(--ink-5); text-align: center;
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 48px; border-top: 2px solid var(--ink-1); }
.step { padding: 22px 18px 24px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.step__n { font: 500 24px var(--font-mono); color: var(--shu); }
.step__k { font: italic 600 21px var(--font-latin); }
.step__v { font-size: 14px; line-height: 1.7; color: var(--ink-3); text-wrap: pretty; }

.two-col { display: flex; flex-wrap: wrap; gap: 40px 56px; margin-top: 56px; }
.two-col__col { flex: 1 1 380px; min-width: 0; }
.list-head { padding-bottom: 10px; border-bottom: 2px solid var(--ink-1); }
.kv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.65; }
.kv-row__k { font-weight: 600; }
.kv-row__v { color: var(--ink-3); text-wrap: pretty; }
.note-row { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.note-row__k { font-weight: 600; font-size: 15px; }
.note-row__v { font-size: 14px; line-height: 1.7; color: var(--ink-3); margin-top: 3px; text-wrap: pretty; }

/* ---------- Craft & Care ---------- */
.craft__lead { font-size: 16px; line-height: 1.85; color: var(--ink-3); max-width: 640px; margin-top: 16px; text-wrap: pretty; }
.sizes {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 40px clamp(40px, 7vw, 96px);
  padding: 48px 0; margin-top: 40px; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
}
.size { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 130px; }
.size__name { font: 700 22px var(--font-display); }
.size__use { font-size: 13.5px; color: var(--ink-5); }
.finishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; margin-top: 48px; }
.finish { display: flex; gap: 24px; align-items: center; }
.finish__text { min-width: 0; }
.finish__code { font: 500 12px var(--font-mono); color: var(--shu); letter-spacing: .14em; }
.finish__desc { font-size: 14.5px; line-height: 1.75; color: var(--ink-3); margin-top: 8px; text-wrap: pretty; }
.craft__bottom { display: flex; flex-wrap: wrap; gap: 40px 56px; margin-top: 56px; align-items: flex-start; }
.craft__specs { flex: 1 1 420px; min-width: 0; }
.craft__specs-head { margin-bottom: 12px; }
.box-panel { flex: 1 1 340px; min-width: 0; background: var(--paper-1); padding: 28px 30px; }
.box-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-1); font-size: 14px; line-height: 1.65; }
.box-row__k { font-weight: 600; }
.box-row__v { color: var(--ink-3); text-wrap: pretty; }
.box-panel__care { margin-top: 28px; }
.box-panel__care-text { font: italic 500 18px/1.55 var(--font-latin); color: var(--ink-1); margin-top: 10px; text-wrap: pretty; }

/* ---------- Pager ---------- */
.pager { border-bottom: 1px solid var(--line-1); }
.pager__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pager__cell { min-width: 0; }
.pager__cell--prev { border-right: 1px solid var(--line-1); }
.pager__link { display: flex; flex-direction: column; gap: 6px; padding: 32px clamp(20px, 5vw, 56px); }
.pager__link:hover { background: var(--paper-2); }
.pager__link--next { align-items: flex-end; text-align: right; }
.pager__dir { font: 500 11px var(--font-mono); letter-spacing: .2em; color: var(--shu); }
.pager__jp { font: 700 24px var(--font-display); letter-spacing: .1em; }
.pager__en { font: italic 500 18px var(--font-latin); color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.site-footer__logo { height: 60px; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font: 500 12px var(--font-mono); letter-spacing: .14em; }
.site-footer__links a { color: var(--ink-5); }
.site-footer__links a:hover { color: var(--ink-5); }
