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

/* ===== Root ===== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-dark);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== Media ===== */
img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display);
}

/* ===== Interactive ===== */
a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ===== Lists ===== */
ul,
ol {
  list-style: none;
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== WordPress alignment helpers ===== */
.alignleft  { float: left;  margin-right: 1em; margin-bottom: 0.5em; }
.alignright { float: right; margin-left:  1em; margin-bottom: 0.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { width: 100%; }
.alignfull   { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* Clear floats */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== Standard template inner container ===== */

.site-content {
  background-color: var(--clr-cream);
  min-height: 60vh;
  padding-top: 96px; /* fixed nav height clearance */
}

.page-inner {
  max-width: var(--canvas-width);
  margin-inline: auto;
  padding: 80px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Archive / post list */
.archive-header__title,
.page-article__title,
.single-article__title {
  font-family: var(--font-display);
  font-size: var(--fs-section-heading);
  line-height: var(--lh-display);
  color: var(--clr-dark);
}

.single-article__meta,
.post-card__meta {
  font-size: var(--fs-ui);
  color: var(--clr-muted);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  line-height: var(--lh-body);
  color: var(--clr-dark);
}

.post-card__title a:hover {
  text-decoration: underline;
}

.post-card__excerpt {
  font-size: var(--fs-body);
  color: var(--clr-dark);
  margin-top: 8px;
}

.page-article__body,
.single-article__body {
  max-width: 720px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.page-article__body p + p,
.single-article__body p + p {
  margin-top: 1em;
}

@media (max-width: 767px) {
  .page-inner {
    padding: 48px 24px;
  }
}
