:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #20231f;
  background: #e7e3da;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
}

/* --------------------------------------------------------------- */
/* Desktop homepage: editorial intelligence desk                   */
/* --------------------------------------------------------------- */

.home-page {
  --home-paper: #ebe7dd;
  --home-sheet: #f7f4ed;
  --home-ink: #171a17;
  --home-muted: #686b64;
  --home-rule: rgb(23 26 23 / 18%);
  --home-accent: #a24c2e;
  min-height: 100vh;
  color: var(--home-ink);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--home-paper);
}

.home-page a {
  color: inherit;
}

.home-header,
.home-main,
.home-footer {
  width: min(calc(100% - 64px), 1240px);
  margin-inline: auto;
}

.home-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--home-ink);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.home-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--home-sheet);
  background: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
}

.home-brand strong,
.home-brand small {
  display: block;
}

.home-brand strong {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.home-brand small {
  margin-top: 5px;
  font-size: 10px;
  color: var(--home-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.home-nav a {
  padding: 8px 0 6px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.home-nav a:hover {
  border-color: currentColor;
}

.home-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--home-muted);
}

.home-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f765d;
  box-shadow: 0 0 0 4px rgb(79 118 93 / 12%);
}

.home-hero {
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 80px;
  align-items: end;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--home-ink);
}

.home-kicker,
.home-section-heading p,
.home-report__topline,
.home-report__meta,
.home-edition__label,
.home-archive-strip span,
.home-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.home-kicker {
  margin: 0 0 20px;
  font-size: 11px;
  color: var(--home-accent);
}

.home-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(56px, 5.7vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.home-hero h1 em {
  color: var(--home-accent);
  font-weight: 400;
}

.home-intro {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-muted);
  text-wrap: pretty;
}

.home-edition {
  align-self: stretch;
  padding: 18px 0 4px 28px;
  border-left: 1px solid var(--home-rule);
}

.home-edition__label {
  display: block;
  margin-bottom: 28px;
  font-size: 10px;
  color: var(--home-muted);
}

.home-edition time {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  font-family: Georgia, "Times New Roman", serif;
}

.home-edition time strong {
  font-size: 72px;
  font-weight: 400;
  line-height: 0.78;
}

.home-edition time span {
  padding-bottom: 1px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--home-muted);
}

.home-edition p {
  margin: 18px 0 26px;
  font-size: 12px;
  color: var(--home-muted);
}

.home-edition a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--home-ink);
  font-size: 13px;
  text-decoration: none;
}

.home-reports {
  padding: 36px 0 46px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-section-heading p {
  margin: 0 0 7px;
  font-size: 10px;
  color: var(--home-accent);
}

.home-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
}

.home-section-heading > span {
  padding-bottom: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--home-muted);
  letter-spacing: 0.08em;
}

.home-report-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border-top: 1px solid var(--home-ink);
  border-bottom: 1px solid var(--home-ink);
}

.home-report {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 20px 26px 24px;
  border-right: 1px solid var(--home-rule);
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.home-report:first-child {
  padding-left: 0;
}

.home-report:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-report:hover {
  color: var(--home-sheet);
  background: var(--home-ink);
}

.home-report:first-child:hover {
  box-shadow: -24px 0 0 var(--home-ink);
}

.home-report:last-child:hover {
  box-shadow: 24px 0 0 var(--home-ink);
}

.home-report__topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: var(--home-muted);
}

.home-report:hover .home-report__topline,
.home-report:hover .home-report__meta,
.home-report:hover .home-report__body > p,
.home-report:hover li {
  color: rgb(247 244 237 / 68%);
}

.home-report__body {
  margin-top: 70px;
}

.home-report__meta {
  margin: 0 0 13px;
  font-size: 9px;
  color: var(--home-accent);
}

.home-report h3 {
  margin: 0 0 15px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.home-report__body > p {
  max-width: 340px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--home-muted);
  text-wrap: pretty;
}

.home-report ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.home-report li {
  font-size: 11px;
  color: var(--home-muted);
}

.home-report li::before {
  content: "—";
  margin-right: 6px;
  color: var(--home-accent);
}

.home-report__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 12px;
}

.home-report__action b {
  font-size: 17px;
  font-weight: 400;
}

.home-report:focus-visible,
.home-edition a:focus-visible,
.home-archive-strip a:focus-visible,
.home-nav a:focus-visible,
.home-brand:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}

.home-report:active {
  transform: translateY(1px);
}

.home-archive-strip {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 28px;
  color: var(--home-sheet);
  background: var(--home-accent);
}

.home-archive-strip span {
  font-size: 10px;
}

.home-archive-strip p {
  margin: 7px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
}

.home-archive-strip a {
  min-width: 170px;
  padding: 14px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  text-decoration: none;
}

.home-archive-strip a span {
  float: right;
  font-family: inherit;
  font-size: inherit;
}

.home-footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--home-muted);
}

@media (max-width: 960px) {
  .home-header,
  .home-main,
  .home-footer {
    width: min(calc(100% - 40px), 760px);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 40px;
  }

  .home-report-grid {
    grid-template-columns: 1fr;
  }

  .home-report,
  .home-report:first-child,
  .home-report:last-child {
    min-height: 300px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--home-rule);
  }

  .home-report:last-child {
    border-bottom: 0;
  }

  .home-report:first-child:hover,
  .home-report:last-child:hover {
    box-shadow: 24px 0 0 var(--home-ink), -24px 0 0 var(--home-ink);
  }

  .home-report__body {
    margin-top: 44px;
  }
}

@media (max-width: 640px) {
  .home-header,
  .home-main,
  .home-footer {
    width: calc(100% - 32px);
  }

  .home-header {
    min-height: 76px;
  }

  .home-brand small,
  .home-live {
    display: none;
  }

  .home-nav {
    gap: 16px;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 50px 0 40px;
  }

  .home-hero h1 {
    font-size: 48px;
    line-height: 1.03;
  }

  .home-intro {
    margin-top: 24px;
    font-size: 15px;
  }

  .home-edition {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 30px;
    padding: 20px 0 0;
    border-top: 1px solid var(--home-rule);
    border-left: 0;
  }

  .home-edition__label,
  .home-edition p {
    margin: 0;
  }

  .home-edition a {
    grid-column: 1 / -1;
  }

  .home-reports {
    padding-top: 36px;
  }

  .home-section-heading > span {
    display: none;
  }

  .home-report h3 {
    font-size: 27px;
  }

  .home-archive-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 22px;
  }

  .home-archive-strip a {
    width: 100%;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__copy,
  .home-edition,
  .home-reports {
    animation: home-reveal 520ms ease-out both;
  }

  .home-edition {
    animation-delay: 80ms;
  }

  .home-reports {
    animation-delay: 150ms;
  }

  @keyframes home-reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.workspace {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.workspace__panel {
  display: flex;
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgb(32 35 31 / 14%);
  border-radius: 8px;
  background:
    linear-gradient(rgb(255 255 255 / 38%), transparent 42%),
    #f4f1ea;
  box-shadow: 0 18px 60px rgb(53 49 40 / 10%);
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #596057;
}

.status__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #4c765d;
  box-shadow: 0 0 0 4px rgb(76 118 93 / 12%);
}

.workspace__content {
  width: min(100%, 760px);
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5a3b;
}

h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 500;
  line-height: 0.98;
}

.description {
  max-width: 560px;
  margin: 36px 0 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: #62675f;
}

.workspace__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(32 35 31 / 12%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #777b74;
}

@media (max-width: 640px) {
  .workspace {
    padding: 12px;
  }

  .workspace__panel {
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    padding: 24px;
  }

  .workspace__content {
    padding: 64px 0;
  }

  h1 {
    font-size: 52px;
  }

  .workspace__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .workspace__panel {
    animation: reveal 500ms ease-out both;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------------------------------------------------------------- */
/* Brief pages (daily AI briefs): hub, archive, and report templates */
/* ---------------------------------------------------------------- */

.brief {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.brief__panel {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgb(32 35 31 / 14%);
  border-radius: 8px;
  background:
    linear-gradient(rgb(255 255 255 / 38%), transparent 42%),
    #f4f1ea;
  box-shadow: 0 18px 60px rgb(53 49 40 / 10%);
}

.brief__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 13px;
  color: #777b74;
}

.brief__nav a {
  color: #8a5a3b;
  text-decoration: none;
}

.brief__nav a:hover {
  text-decoration: underline;
}

.brief h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  margin: 8px 0 10px;
}

.brief h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid #8a5a3b;
}

.brief__sub {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: #62675f;
  margin: 0 0 8px;
}

.brief__section {
  margin: 40px 0;
}

.brief__note {
  background: rgb(138 90 59 / 8%);
  border: 1px solid rgb(138 90 59 / 22%);
  color: #6b4429;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 18px 0;
}

.brief__risk {
  background: rgb(179 58 58 / 6%);
  border: 1px solid rgb(179 58 58 / 20%);
  color: #8a3a3a;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0;
}

.brief-card {
  background: #fff;
  border: 1px solid rgb(32 35 31 / 10%);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.brief-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #20231f;
}

.brief-card p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a4e46;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
}

.brief-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(76 118 93 / 10%);
  color: #4c765d;
  border: 1px solid rgb(76 118 93 / 22%);
  margin-right: 6px;
}

.brief-src {
  font-size: 12.5px;
  color: #8a8f86;
}

.brief-src a {
  color: #8a5a3b;
  text-decoration: none;
}

.brief-src a:hover {
  text-decoration: underline;
}

.brief-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgb(32 35 31 / 10%);
}

.brief-table th,
.brief-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(32 35 31 / 8%);
}

.brief-table th {
  color: #777b74;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgb(32 35 31 / 3%);
}

.brief-table td.num {
  color: #4c765d;
  font-weight: 600;
}

.brief-steps {
  padding-left: 20px;
  margin: 0;
}

.brief-steps li {
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #33362f;
}

.brief-archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-archive-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgb(32 35 31 / 10%);
  border-radius: 8px;
  text-decoration: none;
  color: #20231f;
}

.brief-archive-item:hover {
  border-color: #8a5a3b;
}

.brief-archive-item .date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #62675f;
}

.brief-home-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-home-card {
  display: block;
  background: #fff;
  border: 1px solid rgb(32 35 31 / 10%);
  border-radius: 10px;
  padding: 20px 22px;
  text-decoration: none;
  color: #20231f;
}

.brief-home-card:hover {
  border-color: #8a5a3b;
}

.brief-home-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.brief-home-card h2 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 18px;
}

.brief-home-card p {
  margin: 0;
  color: #62675f;
  font-size: 14px;
}

.brief-home-card .arrow {
  color: #8a5a3b;
  font-size: 13px;
  white-space: nowrap;
}

.brief__footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgb(32 35 31 / 12%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #777b74;
  line-height: 1.7;
}
