:root {
  --app-max-width: 1440px;
  --content-max-width: 820px;
  --app-padding-x: 24px;
  --app-padding-y: 24px;
  --app-top-space: 24px;

  --card-radius: 14px;
  --card-padding: 20px;
  --card-border: 1px solid rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;

  --text: #111827;
  --muted: #6b7280;
  --bg: #f7f8fa;
  --surface: #ffffff;
}

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

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body .is-layout-constrained,
body .wp-site-blocks,
body .alignwide,
body .alignfull {
  max-width: none;
}

img {
  max-width: 100%;
  height: auto;
}

.app-shell {
  width: 100%;
  padding-top: var(--app-top-space);
  padding-bottom: var(--app-padding-y);
}

.app-shell__inner {
  width: min(100%, var(--app-max-width));
  margin-inline: auto;
  padding-inline: var(--app-padding-x);
}

.app-page {
  min-width: 0;
}

.content-shell {
  padding-top: 40px;
  padding-bottom: 60px;
}

.content-shell__inner {
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  padding-inline: 24px;
}

.doc-entry__header {
  margin-bottom: 24px;
}

.doc-entry__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.doc-entry__content {
  color: var(--text);
}

.doc-entry__content > * + * {
  margin-top: 1rem;
}

.doc-entry__content h2,
.doc-entry__content h3,
.doc-entry__content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.doc-entry__content p,
.doc-entry__content ul,
.doc-entry__content ol,
.doc-entry__content pre,
.doc-entry__content table,
.doc-entry__content blockquote {
  margin-bottom: 1rem;
}

.doc-entry__content code,
.doc-entry__content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.doc-entry__content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: #111827;
  color: #f9fafb;
}

.container-app {
  width: min(100%, var(--app-max-width));
  margin-inline: auto;
  padding-inline: var(--app-padding-x);
}

.container-content {
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  padding-inline: 24px;
}

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
}

.stack > * + * {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (max-width: 767px) {
  :root {
    --app-padding-x: 16px;
    --app-padding-y: 16px;
    --app-top-space: 16px;
    --card-padding: 16px;
  }

  .doc-entry__title {
    font-size: 1.75rem;
  }
}
