:root {
  color-scheme: light;
  --p3-bg: #f4f7fb;
  --p3-surface: #ffffff;
  --p3-surface-soft: #eaf0f8;
  --p3-text: #172033;
  --p3-muted: #5c6880;
  --p3-accent: #146c94;
  --p3-accent-strong: #0c4a6e;
  --p3-border: #cbd5e1;
  --p3-radius: 0.75rem;
  --p3-shadow: 0 0.75rem 2rem rgb(15 23 42 / 0.1);
  --p3-content: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--p3-text);
  background:
    radial-gradient(circle at 85% 0%, rgb(20 108 148 / 0.1), transparent 26rem),
    var(--p3-bg);
  font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
  line-height: 1.65;
}

body > center,
body > #page,
body > #wrapper,
body > #container,
body > .wrapper,
body > .container,
main {
  width: min(100% - 2rem, var(--p3-content));
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--p3-text);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
}

p,
li {
  max-width: 75ch;
}

a {
  color: var(--p3-accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--p3-accent);
}

img,
video,
embed,
object {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--p3-border);
  border-radius: 0.5rem;
  font: inherit;
}

input,
select,
textarea {
  padding: 0.6rem 0.75rem;
  color: var(--p3-text);
  background: var(--p3-surface);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  padding: 0.62rem 1rem;
  border-color: var(--p3-accent-strong);
  color: #fff;
  background: var(--p3-accent-strong);
  cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--p3-accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p3-accent) 70%, white);
  outline-offset: 3px;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--p3-border);
  border-radius: var(--p3-radius);
  background: var(--p3-surface);
}

blockquote {
  margin-inline: 0;
  padding: 0.25rem 1rem;
  border-inline-start: 0.25rem solid var(--p3-accent);
  color: var(--p3-muted);
  background: rgb(255 255 255 / 0.6);
}

hr {
  border: 0;
  border-top: 1px solid var(--p3-border);
}

@media (max-width: 48rem) {
  body > table[width],
  body > center > table[width] {
    width: calc(100% - 1rem) !important;
    margin-inline: auto;
  }

  td,
  th {
    overflow-wrap: anywhere;
  }

  input:not([type="checkbox"], [type="radio"]),
  select,
  textarea,
  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  a {
    color: inherit;
  }
}


/* Site palette */
:root {
  --p3-accent: #b45309;
  --p3-accent-strong: #92400e;
}