:root {
  --es-bg: #f4f7fb;
  --es-bg-soft: #edf2f8;
  --es-surface: #ffffff;
  --es-surface-soft: #f7f9fc;
  --es-border: #d7e0ec;
  --es-border-strong: #c2cedd;
  --es-text: #0f1c31;
  --es-text-soft: #415067;
  --es-text-faint: #667489;
  --es-primary: #1f59d8;
  --es-primary-strong: #143f98;
  --es-navy: #0f1d34;
  --es-teal: #0f6b6d;
  --es-success: #1e7254;
  --es-danger: #a74d4d;
  --es-radius-sm: 14px;
  --es-radius-md: 20px;
  --es-radius-lg: 28px;
  --es-shadow-sm: 0 14px 34px rgba(15, 28, 49, 0.05);
  --es-shadow-md: 0 22px 54px rgba(15, 28, 49, 0.08);
  --es-shell: 1240px;
  --es-content: 780px;
  --es-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(31, 89, 216, 0.08) 0%, rgba(31, 89, 216, 0) 34%),
    linear-gradient(180deg, #f9fbff 0%, var(--es-bg) 100%);
  color: var(--es-text);
  font-family: var(--wp--preset--font-family--body, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(31, 89, 216, 0.16);
  color: var(--es-text);
}

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

figure {
  margin: 0;
}

a {
  color: var(--es-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition:
    color var(--es-transition),
    border-color var(--es-transition),
    background-color var(--es-transition),
    box-shadow var(--es-transition),
    transform var(--es-transition);
}

a:hover {
  color: var(--es-primary-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(31, 89, 216, 0.32);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--es-text);
  font-family: var(--wp--preset--font-family--display, "Aptos Display", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

p,
li {
  color: var(--es-text-soft);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem 1.2rem 1.35rem;
  background: #f8fbff;
  border: 1px solid var(--es-border);
  border-left: 3px solid rgba(31, 89, 216, 0.35);
  border-radius: 0 var(--es-radius-md) var(--es-radius-md) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius-sm);
  background: #ffffff;
  color: var(--es-text);
  font: inherit;
}

.entry-content,
.es-page-body {
  max-width: var(--es-content);
}

.entry-content > * + *,
.es-page-body > * + * {
  margin-top: 1.4rem;
}

.entry-content h2,
.es-page-body h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.entry-content h3,
.es-page-body h3 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.entry-content h4,
.es-page-body h4 {
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.entry-content img,
.es-page-body img {
  border-radius: var(--es-radius-md);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
}
