:root {
  color-scheme: light;
  --bg: #f3efe8;
  --paper: #fffdf8;
  --paper-soft: #f8f1e8;
  --ink: #292724;
  --muted: #706860;
  --line: #ded2c2;
  --brown: #6a5035;
  --brown-dark: #493624;
  --green: #2f6b59;
  --blue: #4f6475;
  --gold: #c99a4e;
  --shadow: 0 22px 64px rgba(68, 51, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(201, 154, 78, 0.12), transparent 36%),
    linear-gradient(300deg, rgba(47, 107, 89, 0.1), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(222, 210, 194, 0.86);
  background: rgba(243, 239, 232, 0.93);
  padding: 14px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 9px;
  color: var(--brown-dark);
  font-weight: 760;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-header nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a:hover {
  background: rgba(106, 80, 53, 0.08);
  color: var(--brown-dark);
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 54px;
}

.hero,
.board,
.minutes-paper,
.boundary {
  border: 1px solid rgba(222, 210, 194, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 6vw, 58px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 760;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--brown-dark);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.06;
  font-weight: 730;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--brown-dark);
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--brown-dark);
  font-size: 19px;
}

.lead {
  max-width: 760px;
  margin-bottom: 12px;
  color: #443f39;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.78;
}

.note,
.support-panel p,
.boundary p {
  color: var(--muted);
  line-height: 1.78;
}

.note {
  max-width: 780px;
  margin-bottom: 28px;
}

.small-note {
  margin-top: -12px;
  font-size: 14px;
}

.question-card {
  display: grid;
  gap: 12px;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 18px;
}

.question-card label {
  color: var(--brown-dark);
  font-size: 18px;
  font-weight: 720;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(106, 80, 53, 0.18);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  padding: 14px;
  line-height: 1.7;
  outline: none;
}

textarea:focus {
  border-color: rgba(47, 107, 89, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 107, 89, 0.12);
}

.form-foot,
.board-head,
.minutes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-foot span {
  color: var(--muted);
  font-size: 13px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 720;
}

.primary-button {
  border: 1px solid var(--brown-dark);
  background: var(--brown-dark);
  color: #fffdf8;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--brown-dark);
}

.board,
.minutes,
.archive-panel,
.boundary {
  margin-top: 20px;
}

.board {
  overflow: hidden;
}

.board-head {
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 4vw, 34px);
}

.table-wrap {
  position: relative;
  min-height: 430px;
  padding: clamp(20px, 4vw, 34px);
}

.table-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(106, 80, 53, 0.2);
  border-radius: 50%;
  background: var(--brown-dark);
  color: #fffdf8;
  box-shadow: 0 18px 42px rgba(73, 54, 36, 0.18);
  transform: translate(-50%, -50%);
}

.table-center span {
  max-width: 4em;
  text-align: center;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.18;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.role-card:nth-child(2n) {
  background: #f8fbf7;
}

.role-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 154, 78, 0.18);
  color: var(--brown-dark);
  font-size: 17px;
}

.role-card p {
  margin-bottom: 0;
  color: #45403a;
  font-size: 17px;
  line-height: 1.75;
}

.support-panel {
  border-top: 1px solid var(--line);
  background: #f8f1e8;
  padding: clamp(20px, 4vw, 30px);
}

.clash-panel {
  border-top: 1px solid var(--line);
  background: #fff8ed;
  padding: clamp(20px, 4vw, 30px);
}

.clash-panel > p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.clash-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clash-card {
  border: 1px solid rgba(201, 154, 78, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  padding: 15px;
}

.clash-card p {
  margin-bottom: 10px;
  color: #453d35;
  line-height: 1.68;
}

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

.clash-card strong {
  color: var(--brown-dark);
}

.support-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.support-buttons button {
  min-height: 42px;
  border: 1px solid rgba(47, 107, 89, 0.26);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--green);
  padding: 0 14px;
  font-weight: 720;
}

.support-buttons button:hover {
  border-color: var(--green);
  background: #eff5f1;
}

.minutes-paper,
.archive-panel,
.boundary {
  padding: clamp(24px, 5vw, 46px);
}

.archive-panel {
  border: 1px solid rgba(222, 210, 194, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.archive-head h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.archive-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.archive-card {
  min-height: 210px;
  background: #fffdf8;
  padding: 18px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(222, 210, 194, 0.75);
  padding: 10px 0;
}

.stat-row span,
.latest-meeting strong,
.latest-meeting span,
.easter-eggs p,
.empty-archive {
  color: #4a443d;
  line-height: 1.65;
}

.stat-row b {
  color: var(--green);
}

.latest-meeting {
  display: grid;
  gap: 8px;
}

.latest-meeting strong {
  color: var(--brown-dark);
}

.easter-eggs {
  display: grid;
  gap: 8px;
}

.easter-eggs p {
  margin-bottom: 0;
  border-left: 3px solid rgba(47, 107, 89, 0.32);
  padding-left: 10px;
}

.empty-archive {
  margin-bottom: 0;
  color: var(--muted);
}

.minutes-body {
  display: grid;
  gap: 14px;
  margin: 20px 0 26px;
}

.minutes-block {
  border-left: 4px solid rgba(47, 107, 89, 0.45);
  background: #f8fbf7;
  padding: 14px 16px;
}

.minutes-block strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
}

.minutes-block p {
  margin-bottom: 0;
  color: #443f39;
  line-height: 1.78;
}

.boundary {
  background: rgba(255, 253, 248, 0.76);
}

.boundary h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hidden {
  display: none;
}

.icp-footer {
  padding: 4px 24px 28px;
  text-align: center;
  font-size: 13px;
}

.icp-footer a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header,
  .form-foot,
  .board-head,
  .archive-head,
  .minutes-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .table-wrap {
    min-height: auto;
  }

  .table-center {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 16px;
    transform: none;
  }

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

  .clash-list,
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
