/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-md);
  line-height: var(--line-height-body);
  color: var(--color-body-text);
  background-color: var(--color-cream);
}

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

a {
  color: var(--color-tangerine-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-content a {
  color: var(--color-tangerine);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(242, 140, 40, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.gh-content a:hover {
  text-decoration-color: var(--color-tangerine);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-espresso);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

/* Labels */
.label {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-stone);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-width {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

/* Ghost content styles */
.gh-content {
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
  color: var(--color-body-text);
}

.gh-content p {
  margin-bottom: var(--space-md);
}

.gh-content em {
  color: var(--color-tangerine-dark);
  font-style: italic;
}

.gh-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.gh-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-tangerine);
}

.gh-content ul {
  margin-bottom: var(--space-md);
  padding-left: 0;
  list-style: none;
}

.gh-content ul li {
  margin-bottom: var(--space-xs);
  padding-left: var(--space-md);
  position: relative;
}

.gh-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-tangerine);
}

.gh-content ol {
  margin-bottom: var(--space-md);
  padding-left: 0;
  counter-reset: content-step;
  list-style: none;
}

.gh-content ol li {
  margin-bottom: var(--space-sm);
  padding-left: 2.5rem;
  position: relative;
  counter-increment: content-step;
}

.gh-content ol li::before {
  content: counter(content-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tangerine);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 700;
  border-radius: 50%;
}

.gh-content img {
  border-radius: var(--radius-card);
  margin: var(--space-lg) 0;
}

.gh-content blockquote {
  border-left: 3px solid var(--color-tangerine);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-stone);
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* Force consistent font on all content elements */
.gh-content,
.gh-content p,
.gh-content li,
.gh-content td,
.gh-content span,
.gh-content div:not([class]) {
  font-family: var(--font-sans);
}

/* Tables in content */
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--font-size-base);
}

.gh-content table td,
.gh-content table th {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.gh-content table td:first-child {
  font-weight: 600;
  color: var(--color-espresso);
  white-space: nowrap;
}

.gh-content table td:last-child {
  color: var(--color-tangerine);
  font-weight: 600;
}

.gh-content table tr:last-child td {
  border-bottom: none;
}

/* Strong text in content */
.gh-content strong {
  color: var(--color-espresso);
  font-weight: 600;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
