:root {
  --paper: #f3ede1;
  --paper-bright: #fbf7ee;
  --paper-deep: #e8dfcd;
  --ink: #1b2a21;
  --ink-soft: #536057;
  --forest: #173f2b;
  --forest-deep: #0d2a1c;
  --forest-soft: #2e6046;
  --gold: #bd9142;
  --gold-ink: #7c5a18;
  --gold-bright: #d8b66d;
  --gold-pale: #f0e3c4;
  --line: rgba(23, 63, 43, 0.17);
  --line-strong: rgba(23, 63, 43, 0.38);
  --danger: #9b2f28;
  --danger-pale: #f4ded8;
  --success: #2b6447;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-soft: 0 22px 70px rgba(18, 45, 30, 0.1);
  --shadow-card: 11px 12px 0 rgba(23, 63, 43, 0.06);
  --shell: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.dialog-open {
  overflow: hidden;
}

html {
  color-scheme: light;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(189, 145, 66, 0.11), transparent 32rem),
    radial-gradient(circle at 96% 18%, rgba(23, 63, 43, 0.07), transparent 30rem),
    repeating-linear-gradient(0deg, rgba(23, 63, 43, 0.018) 0, rgba(23, 63, 43, 0.018) 1px, transparent 1px, transparent 5px),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(23, 63, 43, 0.11) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
}

::selection {
  color: var(--paper-bright);
  background: var(--forest);
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
}

a:hover {
  color: var(--forest-soft);
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

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

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

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 32px 0 64px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--paper-bright);
  background: var(--forest);
  border: 1px solid var(--gold);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.eyebrow {
  margin-bottom: 12px;
  color: var(--forest-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--gold);
  content: "";
}

.display-title,
h1,
h2,
h3 {
  color: var(--forest-deep);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.display-title {
  max-width: 13ch;
  text-wrap: balance;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5.5vw, 5.2rem);
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.35;
}

.lede {
  max-width: 59ch;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.45vw, 1.18rem);
  line-height: 1.8;
}

.text-link {
  color: var(--forest);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: var(--forest-deep);
  text-decoration-color: var(--forest);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  color: var(--forest-deep);
  border-color: var(--forest);
  transform: translateY(-1px);
}

.button--primary {
  color: var(--paper-bright);
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 4px 4px 0 rgba(189, 145, 66, 0.38);
}

.button--primary:hover {
  color: var(--paper-bright);
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  box-shadow: 5px 5px 0 var(--gold);
}

.button--quiet {
  color: var(--forest);
  background: rgba(251, 247, 238, 0.45);
  border-color: var(--line);
}

.button--quiet:hover {
  background: var(--paper-bright);
}

.button--outline {
  border-color: var(--forest);
}

.button--small {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.83rem;
}

.button--full {
  width: 100%;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.56;
  transform: none;
}

.icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.icon-button:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 237, 225, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--forest-deep);
  text-decoration: none;
}

.brand:hover {
  color: var(--forest-deep);
}

.brand__seal {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  background: var(--forest);
  border: 1px solid var(--forest-deep);
  box-shadow: 3px 3px 0 var(--gold-pale);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand__sub {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

.site-nav .site-nav__cta {
  padding: 9px 17px;
  color: var(--paper-bright);
  background: var(--forest);
  border-radius: 2px;
}

.site-nav .site-nav__cta:hover,
.site-nav .site-nav__cta[aria-current="page"] {
  color: var(--paper-bright);
  background: var(--forest-deep);
}

.site-nav .site-nav__cta[aria-current="page"]::after {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 76px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 42px;
  right: max(24px, calc((100vw - var(--shell)) / 2 - 44px));
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(189, 145, 66, 0.35);
  border-radius: 50%;
  content: "";
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.hero__copy {
  padding-bottom: 4px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.hero__meta span {
  color: var(--gold);
}

.contact-card {
  position: relative;
  padding: 31px;
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.contact-card::before {
  position: absolute;
  top: -7px;
  left: 22px;
  width: 64px;
  height: 7px;
  background: var(--gold);
  content: "";
}

.contact-card__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-card__head h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item__body {
  min-width: 0;
}

.contact-item__label {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item__value {
  margin-bottom: 0;
  color: var(--forest-deep);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.contact-item__value {
  text-decoration-color: var(--gold);
  text-underline-offset: 0.22em;
}

.contact-item__note {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.copy-button {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--forest-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

.copy-button:hover {
  color: var(--forest);
  background: var(--gold-pale);
}

.contact-card__site {
  padding: 20px 0 3px;
}

.site-address {
  margin: 3px 0 12px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.contact-card__note {
  padding-top: 16px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.empty-note {
  padding: 20px 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Notice previews and sections */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.notice-card {
  min-width: 0;
  padding: 26px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.notice-card + .notice-card {
  padding-left: 28px;
}

.notice-card:last-child {
  border-right: 0;
}

.notice-date {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.notice-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.notice-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.notice-body {
  color: var(--ink);
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.how-section {
  background: rgba(251, 247, 238, 0.52);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 0;
  margin: 44px 0 26px;
  list-style: none;
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.step__number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.how-section__note {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

.closing-section {
  padding-top: 54px;
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 20%, rgba(216, 182, 109, 0.18), transparent 20rem),
    var(--forest-deep);
  border: 1px solid var(--forest);
}

.closing-card .eyebrow {
  color: var(--gold-bright);
}

.closing-card .eyebrow::before {
  background: var(--gold-bright);
}

.closing-card h2 {
  margin-bottom: 10px;
  color: var(--paper-bright);
}

.closing-card p:last-child {
  max-width: 60ch;
  margin-bottom: 0;
  color: rgba(251, 247, 238, 0.74);
  font-size: 0.93rem;
}

.closing-card .button--primary {
  flex: 0 0 auto;
  color: var(--forest-deep);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 4px 4px 0 rgba(251, 247, 238, 0.25);
}

.closing-card .button--primary:hover {
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

/* Page heading and announcements */
.page-heading {
  padding: 74px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-heading__inner {
  max-width: 850px;
  margin-left: max(24px, calc((100vw - var(--shell)) / 2));
}

.page-heading h1 {
  margin-bottom: 17px;
}

.page-heading .lede {
  margin-bottom: 0;
}

.announcement-list {
  border-top: 1px solid var(--line-strong);
}

.announcement {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 44px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.announcement__meta {
  grid-row: span 2;
}

.announcement__meta .notice-date {
  margin-bottom: 5px;
}

.version-tag {
  margin-bottom: 0;
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.announcement h2 {
  margin-bottom: 15px;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.announcement .notice-body {
  max-width: 74ch;
  color: var(--ink-soft);
}

.inline-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
}

.inline-note p {
  margin-bottom: 0;
}

.empty-state {
  padding: 64px 30px;
  background: rgba(251, 247, 238, 0.62);
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state p {
  max-width: 48ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--ink-soft);
}

.empty-state .button {
  margin-top: 15px;
}

/* Notice modal */
.notice-dialog:not([open]) {
  display: none;
}

.notice-dialog {
  display: flex;
  width: min(660px, calc(100vw - 34px));
  max-height: min(84vh, 820px);
  flex-direction: column;
  padding: 0;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--forest);
  border-radius: 2px;
  box-shadow: 0 35px 100px rgba(8, 28, 17, 0.38);
}

.notice-dialog::backdrop {
  background: rgba(9, 31, 19, 0.68);
  backdrop-filter: blur(3px);
}

.notice-dialog[open] {
  animation: dialog-rise 240ms ease-out both;
}

.notice-dialog__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 30px 0;
}

.notice-dialog__top .eyebrow {
  margin-bottom: 0;
}

.notice-dialog__title {
  padding: 10px 30px 20px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.notice-dialog__items {
  padding: 0 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notice-dialog__item {
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.notice-dialog__item h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.notice-dialog__item .notice-date {
  margin-bottom: 14px;
}

.notice-dialog__item .notice-body {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.notice-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px 28px;
  border-top: 1px solid var(--line);
}

@keyframes dialog-rise {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chat */
.chat-heading {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--line);
}

.chat-heading__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.chat-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

.chat-heading .lede {
  margin-bottom: 0;
}

.chat-section {
  padding-top: 26px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 30px;
}

.chat-panel {
  min-width: 0;
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.chat-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.chat-panel__head h2 {
  margin-bottom: 3px;
  font-size: 1.5rem;
}

.chat-panel__sub,
.chat-panel__hint {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.message-list {
  display: flex;
  max-height: min(42vh, 420px);
  min-height: 240px;
  flex-direction: column;
  gap: 16px;
  padding: 27px 26px;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-color: var(--gold) transparent;
}

.message {
  width: min(82%, 560px);
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.message--visitor {
  align-self: flex-end;
  color: var(--paper-bright);
  background: var(--forest);
  border-color: var(--forest);
}

.message--staff {
  align-self: flex-start;
}

.message__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
}

.message--visitor .message__meta {
  color: rgba(251, 247, 238, 0.66);
}

.message__body {
  margin-bottom: 0;
  font-size: 0.93rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.empty-state--chat {
  min-height: 200px;
  padding: 34px 28px;
  background: transparent;
  border: 0;
}

.empty-state--chat h3 {
  margin-bottom: 7px;
}

.empty-state__mark {
  margin-bottom: 0;
  color: var(--gold-ink) !important;
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 0.8;
}

.chat-closed {
  padding: 27px 26px;
  background: var(--gold-pale);
  border-top: 1px solid var(--line);
}

.chat-closed h3 {
  margin-bottom: 6px;
}

.chat-closed p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.chat-form {
  padding: 20px 26px 22px;
  border-top: 1px solid var(--line);
}

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(189, 145, 66, 0.24);
}

.field-input--message {
  min-height: 128px;
  resize: vertical;
  line-height: 1.7;
}

.field-hint {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.55;
}

.composer-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
}

.char-counter {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.8rem;
}

.form-status--subtle {
  min-height: 18px;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.form-error {
  padding: 9px 12px;
  margin: 12px 0 0;
  color: var(--danger);
  background: var(--danger-pale);
  border-left: 3px solid var(--danger);
  font-size: 0.82rem;
}

.form-error-block {
  padding: 10px 13px;
  margin-bottom: 16px;
  color: var(--danger);
  background: var(--danger-pale);
  border-left: 3px solid var(--danger);
  font-size: 0.83rem;
}

.form-error-block p {
  margin-bottom: 0;
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.76rem;
}

.inline-warning {
  padding: 14px 17px;
  margin: 0;
  color: #6d4d12;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  font-size: 0.84rem;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 12px;
  color: var(--forest);
  background: rgba(46, 96, 70, 0.11);
  border: 1px solid rgba(46, 96, 70, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--closed {
  color: #6d4d12;
  background: var(--gold-pale);
  border-color: rgba(189, 145, 66, 0.45);
}

.status-pill--small {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 0.61rem;
}

.chat-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  padding: 24px;
  background: rgba(251, 247, 238, 0.75);
  border: 1px solid var(--line);
}

.aside-card h2 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

.aside-card p:last-child {
  margin-bottom: 0;
}

.aside-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.aside-card--tint {
  background: var(--gold-pale);
  border-color: rgba(189, 145, 66, 0.35);
}

.aside-card__hint {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.plain-list {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.plain-list li + li {
  margin-top: 5px;
}

.chat-aside__foot {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.6;
}

/* Error pages */
.error-section {
  padding: 90px 0;
}

.error-card {
  max-width: 720px;
  padding: 48px;
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.error-code {
  margin-bottom: 14px;
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.error-card h1 {
  margin-bottom: 17px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.error-card > p:not(.error-code):not(.eyebrow) {
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 80;
  padding: 10px 18px;
  color: var(--paper-bright);
  background: var(--forest-deep);
  border: 1px solid var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 54px 0 24px;
  color: rgba(251, 247, 238, 0.7);
  background:
    radial-gradient(circle at 85% 0%, rgba(189, 145, 66, 0.13), transparent 25rem),
    var(--forest-deep);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 50px;
  padding-bottom: 35px;
}

.brand--footer {
  color: var(--paper-bright);
}

.brand--footer:hover {
  color: var(--paper-bright);
}

.brand--footer .brand__sub {
  color: rgba(251, 247, 238, 0.52);
}

.site-footer__note {
  max-width: 39ch;
  margin: 18px 0 0;
  color: rgba(251, 247, 238, 0.68);
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
}

.footer-nav a {
  color: rgba(251, 247, 238, 0.78);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-heading {
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact p:not(.footer-heading) {
  margin-bottom: 5px;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  color: rgba(251, 247, 238, 0.6);
  border-top: 1px solid rgba(251, 247, 238, 0.13);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.02em;
}

.site-footer__bottom p {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .contact-card {
    max-width: 600px;
  }

  .notice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-card,
  .notice-card + .notice-card {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notice-card:last-child {
    border-bottom: 0;
  }

  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-aside__foot {
    grid-column: 1 / -1;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(var(--shell), calc(100% - 34px));
  }

  .section {
    padding: 50px 0;
  }

  .section--tight {
    padding: 24px 0 45px;
  }

  .site-header__inner {
    min-height: 70px;
    gap: 14px;
  }

  .brand__seal {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .brand__name {
    font-size: 1.04rem;
  }

  .brand__sub {
    font-size: 0.54rem;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.8rem;
  }

  .site-nav a:not(.site-nav__cta) {
    display: none;
  }

  .site-nav .site-nav__cta {
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero::after {
    width: 160px;
    height: 160px;
    top: 20px;
    right: 10px;
  }

  .display-title {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__meta {
    font-size: 0.62rem;
  }

  .contact-card {
    padding: 24px 21px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .section-heading .text-link {
    font-size: 0.83rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 30px;
  }

  .step {
    padding-top: 18px;
  }

  .step__number {
    margin-bottom: 12px;
  }

  .closing-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    padding: 30px 23px;
  }

  .closing-card .button {
    width: 100%;
  }

  .page-heading {
    padding: 50px 0 32px;
  }

  .page-heading__inner {
    width: min(var(--shell), calc(100% - 34px));
    margin-inline: auto;
  }

  .announcement {
    display: block;
    padding: 27px 0;
  }

  .announcement__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
  }

  .announcement__meta .notice-date {
    margin-bottom: 0;
  }

  .inline-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .notice-dialog {
    width: calc(100vw - 22px);
    max-height: 88vh;
  }

  .notice-dialog__top {
    padding: 18px 20px 0;
  }

  .notice-dialog__title {
    padding: 9px 20px 16px;
  }

  .notice-dialog__items {
    padding: 0 20px;
  }

  .notice-dialog__actions {
    padding: 16px 20px 20px;
  }

  .notice-dialog__actions .button {
    padding-inline: 16px;
  }

  .chat-heading {
    padding: 40px 0 24px;
  }

  .chat-heading__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .chat-heading h1 {
    font-size: 2.2rem;
  }

  .chat-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px;
  }

  .message-list {
    max-height: 54vh;
    min-height: 250px;
    padding: 20px 16px;
  }

  .message {
    width: 92%;
  }

  .chat-form {
    padding: 18px 16px 20px;
  }

  .composer-meta {
    flex-direction: column;
    gap: 5px;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-actions .button {
    width: 100%;
  }

  .chat-aside {
    display: flex;
  }

  .aside-card {
    padding: 20px;
  }

  .error-section {
    padding: 55px 0;
  }

  .error-card {
    padding: 30px 22px;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .error-actions .button {
    width: 100%;
  }

  .site-footer {
    padding-top: 40px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 26px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .button:hover {
    transform: none;
  }
}
