:root {
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--text);
  background: #ffffff;
}

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


.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mast-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.mast-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.mast-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.mast-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.9);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.icon-btn.primary {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.icon svg {
  display: block;
}

.canvas-hero {
  width: 100%;
  height: min(74vh, 820px);
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.canvas-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

.article {
  display: flex;
  justify-content: center;
  padding: 34px 18px 80px;
}

.hub {
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 18px 80px;
}

.prose {
  width: min(720px, 100%);
}

.kicker {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 10px;
}

.prose h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.dek {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.68);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.byline {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.byline-author {
  font-size: 14px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.88);
}

.byline-title {
  font-weight: 650;
  color: rgba(15, 23, 42, 0.62);
}

.byline-meta {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
}

.tag {
  font-size: 12px;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.70);
}

.prose-section {
  margin-top: 28px;
}

.prose-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.prose-body {
  margin-top: 30px;
}

.prose-body p {
  margin: 14px 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.90);
}

.prose-body h2 {
  margin-top: 26px;
}

.prose-body h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.prose-body blockquote {
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.78);
}

.prose-body code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.code {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  overflow: auto;
}

.code code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
}

.prose-section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(15, 23, 42, 0.86);
}

.prose-section li + li {
  margin-top: 8px;
}

.prompt {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.mini-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.9);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

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

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.btn.primary {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-color: rgba(15, 23, 42, 0.18);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.06);
}

.btn.small {
  padding: 8px 12px;
  font-weight: 800;
}

.notice {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.28);
  background: rgba(234, 179, 8, 0.10);
  color: rgba(113, 63, 18, 0.92);
  font-size: 13px;
}

.faq details {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.88);
}

.faq-a {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.70);
  font-size: 13px;
  line-height: 1.6;
}

.endcap {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.endcap-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
}

.card.link {
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.10);
}

.thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #fff;
}

.card-body {
  padding: 14px;
}

.card-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.card-desc {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .canvas-hero {
    height: 70vh;
  }

  .prose h1 {
    font-size: 34px;
  }
}
