@charset "UTF-8";

:root {
  --paper: #f3f0e6;
  --paper-light: #fffdf5;
  --paper-warm: #f8f1df;
  --ink: #263e37;
  --ink-soft: #53665d;
  --muted: #748078;
  --jade: #31564d;
  --jade-dark: #203f37;
  --jade-pale: #e3e9df;
  --bronze: #9a7b46;
  --bronze-pale: #e4d7b8;
  --cinnabar: #8a493c;
  --cinnabar-pale: #f0dfd7;
  --stone: #d5d5c5;
  --line: #cfd2c3;
  --line-soft: #dedfd3;
  --serif: Georgia, "Noto Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif;
  --page-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 4%, rgb(218 229 215 / 0.72), transparent 31rem),
    radial-gradient(circle at 6% 31%, rgb(235 219 185 / 0.38), transparent 27rem),
    linear-gradient(112deg, #f5f1e6 0%, var(--paper) 50%, #edf0e7 100%);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(49 86 77 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(49 86 77 / 0.014) 1px, transparent 1px);
  background-size: 29px 29px;
  content: "";
  pointer-events: none;
}

button,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
summary {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.85rem, 6vw, 5.35rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: 0.035em;
}

h3 {
  font-size: 1.28rem;
}

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.72rem 1rem;
  transform: translateY(-160%);
  border: 1px solid var(--bronze);
  border-radius: 0.25rem;
  background: var(--paper-light);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(246 243 234 / 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  align-items: center;
  width: min(calc(100% - 3rem), var(--page-width));
  margin: 0 auto;
  padding: 1.2rem 0;
  gap: 1.7rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
}

.brand:hover .brand-copy strong,
.primary-nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
}

.brand-mark circle:first-child,
.brand-mark path {
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.3;
}

.brand-mark circle:last-child {
  fill: var(--cinnabar);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font: 1.08rem/1.25 var(--serif);
  letter-spacing: 0.12em;
}

.brand-copy small {
  display: block;
  margin-top: 0.25rem;
  color: var(--bronze);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
}

.primary-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}

.primary-nav a,
.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.76rem;
  white-space: nowrap;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-control label {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.language-control select {
  min-height: 2.45rem;
  max-width: 8.8rem;
  padding: 0.42rem 2rem 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background-color: var(--paper-light);
  font-size: 0.75rem;
}

main {
  width: min(calc(100% - 3rem), var(--page-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(26rem, 1.18fr);
  align-items: center;
  min-width: 0;
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid #c7c8b7;
  border-top: 3px solid var(--bronze);
  border-radius: 0.55rem;
  background: linear-gradient(118deg, rgb(255 252 241 / 0.97), rgb(239 239 225 / 0.94));
}

.hero::before {
  position: absolute;
  inset: 0.62rem;
  border: 1px solid rgb(154 123 70 / 0.16);
  border-radius: 0.25rem;
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  container-type: inline-size;
  padding: clamp(2.2rem, 5vw, 4.5rem) 1.5rem clamp(2.2rem, 5vw, 4.5rem) clamp(1.6rem, 4vw, 3.8rem);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--bronze);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.state-stamp {
  display: inline-flex;
  align-items: center;
  margin: 0.45rem 0 1.3rem;
  padding: 0.4rem 0.72rem;
  border: 1px solid #d2b8ac;
  border-radius: 999px;
  background: rgb(247 235 228 / 0.72);
  color: var(--cinnabar);
  font-size: 0.73rem;
  letter-spacing: 0.035em;
}

.state-stamp span {
  width: 0.43rem;
  height: 0.43rem;
  margin-right: 0.48rem;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 0.22rem rgb(138 73 60 / 0.1);
}

.hero h1 {
  margin-bottom: 1.1rem;
  color: var(--jade-dark);
}

.hero h1:lang(zh) {
  font-size: clamp(2rem, 17cqi, 4.4rem);
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.32rem;
  background: var(--paper-light);
  font-size: 0.78rem;
  font-weight: 600;
}

.button.primary {
  border-color: var(--jade);
  background: var(--jade);
  color: #fffdf5;
}

.button.primary:hover {
  border-color: var(--jade-dark);
  background: var(--jade-dark);
}

.button.secondary:hover,
.button.quiet:hover {
  border-color: var(--jade);
  background: var(--jade-pale);
}

.text-link {
  color: var(--cinnabar);
  font-size: 0.76rem;
}

.hero-note {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.75;
}

.hall-figure {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 1.4rem clamp(0.7rem, 3vw, 2.2rem) 1.15rem 0;
  align-self: end;
}

.hall-scene {
  display: block;
  width: 100%;
  height: auto;
}

.hall-figure figcaption {
  max-width: 42rem;
  margin: 0.3rem auto 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.hall-wall {
  fill: url("#hall-wall");
  stroke: #bfc2b1;
  stroke-width: 1.5;
}

.hall-arch {
  fill: none;
  stroke: #b49d6e;
  stroke-width: 1.2;
}

.hall-floor {
  fill: url("#hall-floor");
  stroke: #aeb4a5;
  stroke-width: 1.5;
}

.hall-floor-line {
  fill: none;
  stroke: #e5dfcb;
}

.hall-floor-grid {
  fill: none;
  stroke: #7e9187;
  stroke-opacity: 0.17;
}

.hall-sun {
  fill: url("#hall-sun");
  stroke: #a58c57;
}

.hall-sun-line {
  fill: none;
  stroke: #fffdf1;
  stroke-width: 1.5;
}

.hall-light {
  fill: #fff8d6;
  opacity: 0.3;
}

.hall-seal {
  fill: #806d45;
  font: 29px var(--serif);
}

.hall-column path {
  fill: #ccc4aa;
  stroke: #adae9d;
}

.hall-column rect {
  fill: url("#hall-stone");
  stroke: #aeb1a2;
}

.hall-dais path:nth-child(1) {
  fill: #b9b19b;
  stroke: #929a8d;
}

.hall-dais path:nth-child(2) {
  fill: #9fa99a;
}

.hall-dais path:nth-child(3) {
  fill: var(--jade);
  stroke: var(--jade-dark);
}

.hall-dais path:nth-child(4) {
  fill: #a68b56;
  stroke: #836f43;
}

.hall-dais .hall-book {
  fill: #fff5da;
  stroke: #918967;
}

.hall-dais .hall-book-line {
  fill: none;
  stroke: #a29167;
}

.hall-inscription {
  fill: #6f745c;
  font: 14px var(--serif);
  letter-spacing: 3px;
}

.hall-sector path {
  fill: #875044;
  stroke: #653d35;
  stroke-width: 1.25;
  transition: fill 180ms ease, stroke 180ms ease;
}

.hall-sector circle {
  fill: #eee7d3;
  stroke: #9e8552;
  stroke-width: 1.2;
  transition: fill 180ms ease;
}

.hall-sector text {
  fill: #766138;
  font: italic 11px Georgia, serif;
}

.hall-sector.is-active path {
  fill: #a8775c;
  stroke: #b18f4e;
  stroke-width: 2.2;
}

.hall-sector.is-active circle {
  fill: #b49356;
  stroke: #705930;
  stroke-width: 2;
}

.hall-sector.is-active text {
  fill: #fffdf1;
}

.hall-caption-line {
  stroke: #a78e5a;
}

.hall-caption {
  fill: #8e7950;
  font: 8px Georgia, serif;
  letter-spacing: 3px;
}

.section-rule {
  padding: clamp(3.7rem, 7vw, 6.2rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.48fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  max-width: 46rem;
  margin-bottom: 0;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.compact-heading {
  grid-template-columns: 1fr;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 4.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.category-tab + .category-tab {
  border-left: 1px solid var(--line-soft);
}

.category-tab::after {
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 3px;
  background: transparent;
  content: "";
}

.category-tab:hover {
  background: rgb(227 233 223 / 0.48);
}

.category-tab.is-active {
  background: var(--jade-pale);
  color: var(--jade-dark);
}

.category-tab.is-active::after {
  background: var(--cinnabar);
}

.category-tab span {
  color: var(--bronze);
  font: italic 0.72rem Georgia, serif;
}

.category-tab strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-panel {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(17rem, 0.72fr);
  align-items: center;
  min-width: 0;
  padding: clamp(1.7rem, 4vw, 3rem) clamp(1rem, 3vw, 2.4rem);
  gap: 1.4rem 2.1rem;
  background: linear-gradient(110deg, rgb(255 253 245 / 0.76), rgb(232 237 226 / 0.68));
}

.category-index {
  align-self: start;
  color: var(--cinnabar);
  font: italic clamp(2.5rem, 6vw, 4.6rem)/1 Georgia, serif;
  opacity: 0.6;
}

.category-panel h3 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.category-panel > div:nth-child(2) > p:last-child {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.category-kicker,
.preview-label {
  margin-bottom: 0;
  color: var(--bronze);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.category-panel blockquote {
  min-width: 0;
  margin-bottom: 0;
  padding-left: 1.25rem;
  border-left: 3px double var(--bronze);
}

.category-panel blockquote span {
  color: var(--cinnabar);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.category-panel blockquote p {
  margin: 0.62rem 0 0;
  overflow-wrap: anywhere;
  font: 1.12rem/1.8 var(--serif);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 1.35rem 1.5rem 1.5rem 0;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
}

.process-list li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-soft);
}

.process-list li::before {
  position: absolute;
  top: -0.28rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cinnabar);
  content: "";
}

.process-list li + li::before {
  left: 1.5rem;
}

.process-number {
  color: var(--bronze);
  font: italic 0.78rem Georgia, serif;
}

.process-list h3 {
  margin-bottom: 0.45rem;
  font: 600 0.9rem/1.4 var(--sans);
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.85;
}

.process-disclaimer {
  padding-left: 1rem;
  border-left: 2px solid var(--cinnabar);
}

.capability-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.capability-columns > section {
  min-width: 0;
  padding-top: 1.35rem;
  border-top: 3px double var(--line);
}

.capability-columns > section:last-child {
  border-top-color: #ceb3a7;
}

.capability-state {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.18rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.capability-state.live {
  background: var(--jade-pale);
  color: var(--jade-dark);
}

.capability-state.pending {
  background: var(--cinnabar-pale);
  color: var(--cinnabar);
}

.capability-columns h3 {
  margin-bottom: 1.15rem;
  font-size: 1.55rem;
}

.capability-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-columns li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.capability-columns li::before {
  position: absolute;
  top: 1.35rem;
  left: 0.2rem;
  width: 0.36rem;
  height: 0.36rem;
  transform: rotate(45deg);
  background: var(--bronze);
  content: "";
}

.writing-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 245 / 0.55);
}

.writing-details > summary {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.25rem;
  list-style: none;
  color: var(--jade-dark);
  font-weight: 600;
}

.writing-details > summary::-webkit-details-marker {
  display: none;
}

.writing-details > summary::after {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cinnabar);
  content: "+";
  font: 1.3rem/1.8rem var(--serif);
  text-align: center;
}

.writing-details[open] > summary::after {
  content: "−";
}

.writing-details > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.writing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  border-top: 1px solid var(--line);
}

.draft-editor,
.draft-preview {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 2.7rem);
}

.draft-editor {
  border-right: 1px solid var(--line);
}

.draft-editor label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.draft-editor textarea {
  display: block;
  width: 100%;
  min-height: 14rem;
  max-width: 100%;
  resize: vertical;
  padding: 1rem;
  border: 1px solid #c8cebf;
  border-radius: 0.28rem;
  outline-color: var(--bronze);
  background: #fffef9;
  line-height: 1.85;
}

.draft-editor textarea::placeholder {
  color: #8c958d;
}

.draft-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--cinnabar);
}

.draft-feedback {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  color: var(--cinnabar);
  font-size: 0.69rem;
}

.draft-preview {
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  background:
    linear-gradient(90deg, transparent 2.2rem, rgb(154 123 70 / 0.16) 2.25rem, transparent 2.3rem),
    repeating-linear-gradient(0deg, transparent 0, transparent 1.82rem, rgb(49 86 77 / 0.08) 1.85rem),
    var(--paper-warm);
}

.draft-preview h3 {
  margin: 0.55rem 0 1.2rem;
  font-size: 1.45rem;
}

#preview-output {
  flex: 1;
  margin-bottom: 1.4rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font: 1rem/1.9 var(--serif);
  white-space: pre-wrap;
}

.preview-foot {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(154 123 70 / 0.22);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.7;
}

.care-note {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  margin: clamp(3.5rem, 7vw, 6rem) 0;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  gap: 1.5rem 3.5rem;
  border-top: 3px double var(--bronze);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, rgb(250 246 233 / 0.8), rgb(230 235 225 / 0.62));
}

.care-note h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.care-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.care-points p {
  margin-bottom: 0;
}

.care-points strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cinnabar);
  font-size: 0.75rem;
}

.care-points span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.85;
}

.care-disclaimer {
  grid-column: 2;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.8;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto minmax(13rem, 1fr);
  align-items: center;
  width: min(calc(100% - 3rem), var(--page-width));
  margin: 0 auto;
  padding: 1.7rem 0 2.1rem;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font: 1rem var(--serif);
  letter-spacing: 0.08em;
}

.footer-brand span,
.footer-state {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.63rem;
}

.footer-nav {
  justify-content: center;
}

.footer-state {
  justify-self: end;
  text-align: right;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line-soft);
  }

  .hero {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(20rem, 1.22fr);
  }

  .hero-copy {
    padding-left: 2rem;
  }

  .category-panel {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .category-panel blockquote {
    grid-column: 2;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0;
  }

  .process-list li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .process-list li:nth-child(3)::before {
    left: 0;
  }

  .care-note {
    grid-template-columns: 1fr;
  }

  .care-disclaimer {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-state {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 2rem;
  }

  .header-inner,
  main,
  .site-footer {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2.4rem 1.35rem 1rem;
  }

  .hall-figure {
    width: min(100% - 1.5rem, 40rem);
    margin: 0 auto 1rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.8rem;
  }

  .category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 0;
  }

  .category-tab {
    border-bottom: 1px solid var(--line);
  }

  .category-tab:nth-child(4) {
    border-left: 0;
  }

  .category-panel {
    grid-template-columns: 3.3rem minmax(0, 1fr);
  }

  .category-panel blockquote {
    padding-left: 1rem;
  }

  .capability-columns,
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .draft-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .care-points {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .brand,
  .language-control {
    justify-self: stretch;
  }

  .language-control {
    justify-content: space-between;
  }

  .language-control select {
    max-width: 10rem;
  }

  .primary-nav {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .hero {
    margin-top: 1rem;
  }

  .hero-copy {
    padding: 2rem 1.05rem 0.6rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hall-figure figcaption {
    padding: 0 0.75rem;
    line-height: 1.6;
  }

  .section-rule {
    padding: 3.6rem 0;
  }

  .category-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .category-tab:nth-child(odd) {
    border-left: 0;
  }

  .category-tab:nth-child(4) {
    border-left: 1px solid var(--line-soft);
  }

  .category-tab:last-child {
    grid-column: 1 / -1;
  }

  .category-panel {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.5rem 1rem;
  }

  .category-index {
    font-size: 2.25rem;
  }

  .category-panel blockquote {
    grid-column: 1;
    margin-top: 0.6rem;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-list li,
  .process-list li + li,
  .process-list li:nth-child(3) {
    padding: 1.2rem 0;
    border-left: 0;
  }

  .process-list li + li::before,
  .process-list li:nth-child(3)::before {
    left: 0;
  }

  .writing-details > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .writing-details > summary small {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
  }

  .writing-details > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .draft-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .care-note {
    margin: 3.5rem 0;
    padding: 1.5rem 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-state {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
