/* roulang page: index */
:root {
  --paper: #F3EEE6;
  --ink: #1C1917;
  --dark: #241C22;
  --plum: #6E2E45;
  --copper: #B56A3C;
  --sage: #3E4A44;
  --line: rgba(28,25,23,.12);
  --card: #FFFCF8;
  --wash: #E7E0D6;
  --sand: #EFE8DE;
  --muted: rgba(28,25,23,.68);
  --shadow: 0 10px 28px rgba(28,25,23,.06);
  --shadow-hover: 0 14px 32px rgba(28,25,23,.12);
  --radius: 2px;
  --max: 1120px;
  --title: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--plum); color: var(--paper); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.num, .score-num, .idx, .mini b, .total strong, .metrics strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 180ms, color 180ms;
}
.ulink:hover { background-size: 100% 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 3px solid var(--plum);
  border-bottom: 1px solid var(--line);
}
.brand-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 16px 0 12px;
}
.logo { display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.logo-main {
  font-family: var(--title);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.logo-sub { font-size: 12px; letter-spacing: .18em; color: var(--plum); }
.brand-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; font-size: 14px; }
.age {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--plum);
  color: var(--plum);
  font-size: 12px;
  line-height: 1;
}
.icon-nav { border-top: 1px solid var(--line); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.icon-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 10px 4px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  transition: color 180ms, background-color 180ms;
}
.icon-grid a svg { width: 24px; height: 24px; }
.icon-grid a:hover { color: var(--plum); background: rgba(110,46,69,.04); }
.icon-grid a:active, .icon-grid a.is-current { color: var(--plum); }
.icon-grid a.is-current { box-shadow: inset 0 -2px 0 var(--plum); }
.ic { color: var(--sage); display: inline-flex; }
.icon-grid a .ic, .icon-grid a svg { color: inherit; }
main > section { padding: 72px 0; border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }
.band-sand { background: var(--sand); }
.band-dark { background: var(--dark); color: var(--paper); border-top-color: transparent; }
.sec-head { margin-bottom: 22px; max-width: 760px; }
.sec-title {
  display: inline-block;
  font-family: var(--title);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
  background-image: linear-gradient(var(--plum), var(--plum));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 48px 2px;
  padding-bottom: 8px;
}
.sub { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.lead { margin-top: 14px; max-width: 68em; }
.band-dark .sec-title {
  color: var(--paper);
  background-image: linear-gradient(var(--copper), var(--copper));
}
.band-dark .sub, .band-dark .lead { color: rgba(243,238,230,.82); }
.board {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 40px;
  align-items: end;
}
h1 {
  font-family: var(--title);
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  border-left: 3px solid var(--plum);
  padding-left: 16px;
}
.value { margin-top: 14px; padding-left: 19px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metrics li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px 14px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms, box-shadow 180ms;
}
.metrics li:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.metrics strong { font-family: var(--title); font-size: 34px; line-height: 1; font-weight: 600; }
.metrics span { font-size: 13px; color: var(--muted); }
.matrix {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 160px;
  transition: transform 180ms, box-shadow 180ms;
}
.tile-lg { grid-row: 1 / span 2; min-height: 100%; justify-content: space-between; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tile:active { transform: translateY(0); }
.tile h3 { font-family: var(--title); font-size: 22px; font-weight: 600; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.tile .ic svg { width: 24px; height: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  line-height: 1.2;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.btn-primary { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.btn-primary:hover { background: var(--paper); color: var(--plum); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--wash); }
.btn-secondary:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: var(--wash);
  color: var(--muted);
  border-color: var(--line);
  transform: none;
}
.cmp-row {
  display: grid;
  grid-template-columns: 108px 1.15fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.cmp-row h3 { font-family: var(--title); font-size: 26px; }
.cmp-row dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cmp-row dt { font-size: 12px; color: var(--muted); }
.cmp-row dd { margin: 2px 0 0; color: var(--copper); font-size: 22px; line-height: 1.2; font-family: var(--title); }
.quote {
  border-left: 2px solid var(--copper);
  padding-left: 12px;
  font-family: var(--title);
  font-size: 16px;
  line-height: 1.7;
}
.timeline { position: relative; margin-left: 8px; display: grid; gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(243,238,230,.28);
}
.node { position: relative; padding: 0 0 28px 28px; }
.node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  background: var(--dark);
}
.node time { display: block; color: var(--copper); font-size: 13px; letter-spacing: .08em; }
.node h3 { font-family: var(--title); font-size: 22px; margin: 4px 0 6px; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 16px; }
.news-side { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms, box-shadow 180ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.news-main, .news-side article, .topic {
  padding: 16px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.ph {
  background: var(--paper);
  min-height: 148px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: var(--ink);
  font-family: var(--title);
  letter-spacing: .12em;
}
.news-side .ph { min-height: 72px; }
.meta-line { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ink);
  background: transparent;
}
.card h3, .topic h3 { font-family: var(--title); font-size: 24px; line-height: 1.4; font-weight: 600; }
.news-side h3 { font-size: 18px; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rule {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.rule .ic svg { width: 24px; height: 24px; margin-bottom: 10px; }
.rule h3 { font-family: var(--title); font-size: 20px; margin-bottom: 8px; }
.qa-list, .faq-list { display: grid; gap: 8px; }
.qa, .faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 16px;
}
.faq-item { padding: 2px 18px; }
summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--title);
  font-size: 18px;
  line-height: 1.5;
}
.faq-item summary { min-height: 64px; font-size: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--plum);
  border-bottom: 1.5px solid var(--plum);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 180ms;
}
details[open] summary { color: var(--plum); }
details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.qa p, .faq-item p { padding: 0 0 14px; color: var(--ink); max-width: 860px; }
.intent-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  max-width: 820px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 14px; }
input, select, textarea {
  width: 100%;
  background: #FFFCF8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(110,46,69,.12); }
input:disabled, select:disabled, textarea:disabled {
  background: var(--wash);
  color: var(--muted);
  cursor: not-allowed;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(135deg, var(--plum) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-note {
  grid-column: 1 / -1;
  border-left: 2px solid var(--plum);
  padding-left: 12px;
}
.west-layout, .jp-layout { display: grid; grid-template-columns: .72fr 1.5fr; gap: 28px; align-items: start; }
.jp-layout { grid-template-columns: 1.5fr .72fr; }
.jp-copy { text-align: right; }
.west-cards { display: grid; grid-template-columns: 1.35fr 1fr .78fr; gap: 12px; }
.jp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jp-cards .topic:first-child { grid-column: 1 / -1; }
.topic .score-num { color: var(--copper); font-family: var(--title); font-size: 28px; line-height: 1; }
.topic .score-num small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--body); font-size: 12px; }
.w-sm .ph { min-height: 96px; }
.order-list { display: grid; }
.order-list a {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 14px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.order-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 0;
  background: var(--plum);
  transition: width 180ms;
}
.order-list a:hover::before { width: 2px; }
.order-list a:hover { transform: none; box-shadow: none; }
.idx { font-family: var(--title); color: var(--plum); font-size: 20px; }
.order-list h3 { font-family: var(--title); font-size: 22px; font-weight: 600; }
.order-list p { grid-column: 2; color: var(--muted); }
.searchbar { display: flex; gap: 10px; align-items: end; margin-bottom: 16px; max-width: 420px; }
.searchbar label { display: grid; gap: 6px; flex: 1; font-size: 14px; }
.score-head, .score-row {
  display: grid;
  grid-template-columns: 1.25fr .55fr 1.55fr .7fr .48fr;
  gap: 10px;
  align-items: center;
}
.score-head {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.score-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row h3 { font-family: var(--title); font-size: 20px; font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mini span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.mini b { color: var(--copper); font-size: 16px; font-weight: 600; }
.total { display: flex; align-items: center; gap: 8px; color: var(--copper); }
.total strong { font-family: var(--title); font-size: 24px; }
.ring { width: 36px; height: 36px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 1.5; }
.ring .track { stroke: rgba(181,106,60,.28); }
.ring .val { stroke: var(--copper); stroke-dasharray: 94; transition: stroke-dashoffset 180ms; }
.score-row:hover .ring .val { stroke-dashoffset: 12; }
.stamp {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--plum);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--plum);
  font-family: var(--title);
  font-size: 13px;
  transform: rotate(-8deg);
  justify-self: end;
}
.stamp-wish { border-color: var(--copper); color: var(--copper); }
.is-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  margin-top: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
}
.more-row { margin-top: 16px; }
.scene-list { display: grid; }
.scene-bar {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.scene-bar h3 { font-family: var(--title); font-size: 22px; }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.word-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.word-list h3 { font-family: var(--title); font-size: 24px; margin-bottom: 8px; }
.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.week-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  padding: 16px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms, box-shadow 180ms;
}
.week-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.week-card h3 { font-family: var(--title); font-size: 20px; line-height: 1.45; }
.site-footer { background: var(--dark); color: var(--paper); padding: 42px 0 24px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.site-footer .logo-main, .site-footer .logo-sub, .site-footer a { color: var(--paper); }
.site-footer .logo-sub { color: #E7C2A8; }
.foot-nav { margin-top: 22px; border-top: 1px solid rgba(243,238,230,.16); }
.site-footer .icon-grid a { color: var(--paper); }
.site-footer .icon-grid a:hover, .site-footer .icon-grid a:active { color: #E7C2A8; }
.copy { margin-top: 18px; font-size: 13px; color: rgba(243,238,230,.72); }
@media (max-width: 1280px) {
  h1 { font-size: 40px; line-height: 48px; }
}
@media (max-width: 1024px) {
  .board, .west-layout, .jp-layout, .news-grid, .index-grid, .rules { grid-template-columns: 1fr; }
  .jp-copy { text-align: left; }
  .west-cards { grid-template-columns: 1fr 1fr; }
  .w-sm { grid-column: 1 / -1; }
  .cmp-row { grid-template-columns: 1fr; gap: 10px; }
  .matrix { grid-template-columns: 1fr 1fr; }
  .tile-lg { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  h1 { font-size: 28px; line-height: 36px; }
  main > section { padding: 40px 0; }
  .sec-title { font-size: 24px; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-inner, .foot-top { flex-direction: column; align-items: flex-start; }
  .logo-main { font-size: 16px; }
  .metrics, .matrix, .west-cards, .jp-cards, .intent-form, .scene-bar { grid-template-columns: 1fr; }
  .cmp-row dl { grid-template-columns: 1fr; }
  .cmp-row dl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .score-head { display: none; }
  .score-row { grid-template-columns: 1fr auto; }
  .score-row .mini, .score-row .total { grid-column: 1 / -1; }
  .order-list p { grid-column: 1 / -1; }
  .news-side .ph { min-height: 96px; }
}
@media (max-width: 520px) {
  .mini { grid-template-columns: 1fr 1fr; }
  .brand-tools { width: 100%; justify-content: space-between; }
  .metrics strong { font-size: 28px; }
}
@media (max-width: 375px) {
  .container { width: calc(100% - 20px); }
  .icon-grid a { font-size: 12px; min-height: 70px; }
  .week-card { flex-basis: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover, .tile:hover, .metrics li:hover, .week-card:hover, .btn:active, .btn-primary:active {
    transform: none !important;
  }
  .score-row:hover .ring .val { stroke-dashoffset: inherit; }
}

/* roulang page: category1 */
:root {
 --paper: #F3EEE6;
 --ink: #1C1917;
 --dark: #241C22;
 --plum: #6E2E45;
 --copper: #B56A3C;
 --sage: #3E4A44;
 --line: rgba(28,25,23,.12);
 --card: #FFFCF8;
 --wash: #E7E0D6;
 --sand: #EFE8DE;
 --muted: rgba(28,25,23,.68);
 --shadow: 0 10px 28px rgba(28,25,23,.06);
 --shadow-hover: 0 14px 32px rgba(28,25,23,.12);
 --radius: 2px;
 --max: 1120px;
 --title: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
 --body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
/* roulang page: category1 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 148px; }
body {
 margin: 0;
 background: var(--paper);
 color: var(--ink);
 font-family: var(--body);
 font-size: 16px;
 line-height: 1.75;
 text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, label:focus-visible {
 outline: 2px solid var(--plum);
 outline-offset: 3px;
}
.site-header {
 position: sticky;
 top: 0;
 z-index: 30;
 background: var(--paper);
 border-top: 3px solid var(--plum);
 border-bottom: 1px solid var(--line);
}
.brand-inner {
 display: flex;
 justify-content: space-between;
 align-items: flex-end;
 gap: 20px;
 padding: 16px 0 12px;
}
.logo { display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.logo-main {
 font-family: var(--title);
 font-size: 20px;
 line-height: 1.35;
 letter-spacing: 0;
 color: var(--ink);
}
.logo-sub { font-size: 12px; letter-spacing: .18em; color: var(--plum); }
.brand-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; font-size: 14px; }
.age {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 42px;
 height: 26px;
 padding: 0 8px;
 border: 1px solid var(--plum);
 color: var(--plum);
 border-radius: var(--radius);
 font-variant-numeric: tabular-nums;
 letter-spacing: .04em;
}
.ulink {
 position: relative;
 color: var(--ink);
 background-image: linear-gradient(currentColor, currentColor);
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size 180ms, color 180ms;
}
.ulink:hover { color: var(--plum); background-size: 100% 1px; }
.ulink:active { color: var(--plum); }
.icon-nav { border-top: 1px solid var(--line); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.icon-grid a {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-height: 78px;
 padding: 10px 4px 12px;
 color: var(--ink);
 font-size: 13px;
 line-height: 1.2;
 transition: color 180ms, background-color 180ms;
}
.icon-grid a svg { width: 24px; height: 24px; }
.icon-grid a:hover { color: var(--plum); background: rgba(110,46,69,.04); }
.icon-grid a:active, .icon-grid a.is-current { color: var(--plum); }
.icon-grid a.is-current { box-shadow: inset 0 -2px 0 var(--plum); }
main > section { padding: 72px 0; border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }
.sec-title {
 display: inline-block;
 margin: 0;
 font-family: var(--title);
 font-size: 32px;
 line-height: 1.35;
 font-weight: 600;
 background-image: linear-gradient(var(--plum), var(--plum));
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 48px 2px;
 padding-bottom: 8px;
}
.lead { margin: 14px 0 0; max-width: 68em; color: var(--ink); }
.band-sand { background: var(--sand); }
.band-wash { background: var(--wash); }
.band-dark { background: var(--dark); color: var(--paper); border-top-color: transparent; }
.band-dark .sec-title {
 color: var(--paper);
 background-image: linear-gradient(var(--copper), var(--copper));
}
.band-dark .sub, .band-dark .lead { color: rgba(243,238,230,.82); }
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 40px;
 padding: 8px 16px;
 border-radius: var(--radius);
 border: 1px solid transparent;
 background: transparent;
 line-height: 1.2;
 transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.btn-primary { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.btn-primary:hover { background: var(--paper); color: var(--plum); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--wash); }
.btn-secondary:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled], .is-disabled {
 opacity: .45;
 cursor: not-allowed;
 background: var(--wash);
 color: var(--muted);
 border-color: var(--line);
 transform: none;
 pointer-events: none;
}
.card {
 background: var(--card);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tag {
 display: inline-flex;
 align-items: center;
 min-height: 22px;
 padding: 0 8px;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 font-size: 12px;
 color: var(--ink);
 background: transparent;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mast-grid {
 display: grid;
 grid-template-columns: 2px minmax(0, 1fr) auto;
 gap: 28px;
 align-items: stretch;
}
.vbar { background: var(--plum); width: 2px; }
.kicker {
 margin: 0 0 10px;
 color: var(--plum);
 font-size: 12px;
 letter-spacing: .18em;
}
.mast h1 {
 margin: 0;
 font-family: var(--title);
 font-size: 44px;
 line-height: 52px;
 font-weight: 600;
}
.mast .sub { margin: 12px 0 0; max-width: 28em; color: var(--muted); }
.mast-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 22px 36px; }
.fgroup {
 border: 0;
 margin: 0;
 padding: 0;
 min-inline-size: 0;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 8px;
}
.fgroup legend {
 padding: 0 8px 0 0;
 font-size: 13px;
 color: var(--muted);
}
.fgroup input {
 position: absolute;
 opacity: 0;
 width: 1px;
 height: 1px;
 pointer-events: none;
}
.fgroup label {
 display: inline-flex;
 align-items: center;
 min-height: 32px;
 padding: 0 12px;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 background: var(--card);
 cursor: pointer;
 transition: background-color 180ms, color 180ms, border-color 180ms;
}
.fgroup label:hover { background: var(--wash); }
.fgroup input:checked + label {
 background: var(--plum);
 color: var(--paper);
 border-color: var(--plum);
}
.fgroup input:checked + label:hover { background: var(--plum); color: var(--paper); }
.fgroup input:focus-visible + label { outline: 2px solid var(--plum); outline-offset: 3px; }
.fgroup input:disabled + label {
 opacity: .45;
 cursor: not-allowed;
 background: var(--wash);
 color: var(--muted);
}
.layout {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 240px;
 gap: 28px;
 align-items: start;
}
.entry-list { display: grid; gap: 14px; }
.entry {
 display: grid;
 grid-template-columns: 112px minmax(0, 1fr) auto;
 gap: 16px;
 padding: 16px;
 align-items: center;
 color: inherit;
}
.ph {
 background: var(--sand);
 color: var(--ink);
 min-height: 88px;
 display: grid;
 place-items: center;
 border-radius: var(--radius);
 font-family: var(--title);
 font-size: 14px;
 letter-spacing: .14em;
}
.entry h3 {
 margin: 0;
 font-family: var(--title);
 font-size: 24px;
 line-height: 1.4;
 font-weight: 600;
}
.entry h3 a {
 background-image: linear-gradient(currentColor, currentColor);
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size 180ms, color 180ms;
}
.entry h3 a:hover { color: var(--plum); background-size: 100% 1px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.entry p { margin: 8px 0 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ring {
 width: 54px;
 height: 54px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: conic-gradient(var(--copper) calc(var(--p) * 1%), rgba(28,25,23,.12) 0);
}
.ring b {
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background: var(--card);
 display: grid;
 place-items: center;
 color: var(--copper);
 font-family: var(--title);
 font-size: 16px;
 font-weight: 600;
}
.stamp {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 52px;
 min-height: 26px;
 padding: 0 6px;
 border: 1px solid var(--plum);
 color: var(--plum);
 font-size: 12px;
 letter-spacing: .08em;
 transform: rotate(-8deg);
 background: transparent;
}
.stamp.is-wish { color: var(--copper); border-color: var(--copper); }
.more { margin: 18px 0 0; }
.toc {
 position: sticky;
 top: 156px;
 padding: 16px 16px 8px;
 background: var(--card);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.toc h2 {
 margin: 0 0 8px;
 font-family: var(--title);
 font-size: 20px;
 font-weight: 600;
 background-image: linear-gradient(var(--plum), var(--plum));
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 32px 2px;
 padding-bottom: 8px;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc a {
 display: grid;
 grid-template-columns: 28px 1fr;
 gap: 6px;
 padding: 10px 0;
 color: var(--ink);
 background-image: linear-gradient(var(--plum), var(--plum));
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size 180ms, color 180ms;
}
.toc a::before {
 content: counter(toc, decimal-leading-zero);
 color: var(--copper);
 font-variant-numeric: tabular-nums;
 font-family: var(--title);
}
.toc a:hover { color: var(--plum); background-size: 100% 1px; }
.stack article {
 display: grid;
 grid-template-columns: 200px minmax(0, 1fr);
 gap: 18px;
 align-items: center;
 padding: 22px 0;
 border-top: 1px solid var(--line);
}
.stack h3 { margin: 0; font-family: var(--title); font-size: 26px; line-height: 1.35; font-weight: 600; }
.stack h3 a {
 background-image: linear-gradient(currentColor, currentColor);
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size 180ms, color 180ms;
}
.stack h3 a:hover { color: var(--plum); background-size: 100% 1px; }
.quote { margin: 8px 0 0; color: var(--muted); }
.stack dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stack dt { font-size: 12px; color: var(--muted); }
.stack dd { margin: 2px 0 0; color: var(--copper); font-size: 22px; line-height: 1.2; font-family: var(--title); }
.rules { list-style: none; margin: 22px 0 0; padding: 0; }
.rules li {
 display: grid;
 grid-template-columns: 96px minmax(0, 1fr);
 gap: 16px;
 align-items: baseline;
 padding: 16px 0;
 border-top: 1px solid var(--line);
}
.rules strong { font-family: var(--title); font-size: 22px; font-weight: 600; }
.rules span { color: var(--ink); }
.text-links { list-style: none; margin: 22px 0 0; padding: 0; }
.text-links li { border-top: 1px solid var(--line); }
.text-links a {
 display: flex;
 justify-content: space-between;
 gap: 16px;
 align-items: baseline;
 padding: 16px 0;
 background-image: linear-gradient(var(--plum), var(--plum));
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size 180ms, color 180ms;
}
.text-links a:hover { color: var(--plum); background-size: 100% 1px; }
.text-links em { font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.mini-faq { display: grid; gap: 8px; margin-top: 18px; }
.faq-item {
 background: var(--card);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 0 16px;
}
.faq-item summary {
 min-height: 48px;
 display: flex;
 align-items: center;
 font-size: 16px;
 cursor: pointer;
 list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
 content: "";
 margin-left: auto;
 width: 8px;
 height: 8px;
 border-right: 1.5px solid var(--plum);
 border-bottom: 1.5px solid var(--plum);
 transform: rotate(45deg);
 transition: transform 180ms;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item[open] { box-shadow: var(--shadow-hover); }
.faq-item p { margin: 0; padding: 0 0 14px; max-width: 860px; }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.band-dark .btn-secondary { color: var(--paper); border-color: rgba(243,238,230,.7); }
.band-dark .btn-secondary:hover { background: var(--wash); color: var(--ink); border-color: var(--wash); }
.site-footer {
 background: var(--dark);
 color: var(--paper);
 padding: 36px 0 28px;
 border-top: 3px solid var(--plum);
}
.site-footer .logo-main { color: var(--paper); }
.site-footer .ulink { color: var(--paper); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.foot-nav { margin-top: 18px; border-top: 1px solid rgba(243,238,230,.16); }
.site-footer .icon-grid a { color: var(--paper); }
.site-footer .icon-grid a:hover { color: #E7C2B4; background: rgba(243,238,230,.04); }
.copy { margin: 18px 0 0; color: rgba(243,238,230,.72); font-size: 13px; }
.is-empty {
 color: var(--muted);
 background: var(--sand);
 border: 1px dashed var(--line);
 box-shadow: none;
}
.is-empty:hover { transform: none; box-shadow: none; }
.article-layout { width: min(680px, 100%); }
.article-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.article-points { margin: 0; padding-left: 1.2em; }
.article-related { display: grid; gap: 10px; }
input, select, textarea {
 width: 100%;
 background: #FFFCF8;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 12px 14px;
 outline: none;
 transition: border-color 180ms, box-shadow 180ms;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(110,46,69,.12); }
input:disabled, select:disabled, textarea:disabled { background: var(--wash); color: var(--muted); cursor: not-allowed; }
@media (max-width: 1280px) {
 .container { width: min(1120px, calc(100% - 40px)); }
}
@media (max-width: 1024px) {
 .mast h1 { font-size: 36px; line-height: 44px; }
 .layout { grid-template-columns: minmax(0, 1fr) 210px; }
 .stack article { grid-template-columns: 1fr; gap: 10px; }
 .entry { grid-template-columns: 88px minmax(0, 1fr); }
 .side-meta { grid-column: 2; flex-direction: row; align-items: center; }
}
@media (max-width: 768px) {
 .container { width: calc(100% - 32px); }
 .brand-inner, .foot-top { flex-wrap: wrap; align-items: flex-start; }
 .logo-main { font-size: 16px; }
 .icon-grid { grid-template-columns: repeat(4, 1fr); }
 main > section { padding: 40px 0; }
 .mast-grid { grid-template-columns: 2px minmax(0, 1fr); }
 .mast-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
 .mast h1 { font-size: 28px; line-height: 36px; }
 .sec-title { font-size: 26px; }
 .layout, .stack dl, .rules li, .text-links a { grid-template-columns: 1fr; display: grid; }
 .toc { position: static; }
 .text-links a { justify-content: start; }
 .text-links em { white-space: normal; }
 .stack dl { display: block; }
 .stack dl div { padding: 8px 0; border-top: 1px solid var(--line); }
 .rules li { gap: 4px; }
 body { font-size: 16px; line-height: 1.75; }
}
@media (max-width: 375px) {
 .container { width: calc(100% - 24px); }
 .logo-main { font-size: 15px; }
 .brand-tools { gap: 10px; }
 .entry h3, .stack h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 transition: none !important;
 animation: none !important;
 scroll-behavior: auto !important;
 }
 .card:hover, .btn:active, .btn-primary:active, .btn-secondary:active { transform: none; }
}
