body {
  margin: 0;
  background: #f7f3ec;
  color: #221d15;
  -webkit-font-smoothing: antialiased;
  font-family: 'Newsreader', Georgia, serif;
}
a { color: #96401f; }
a:hover { color: #6e2d13; }

.layout-container {
  min-height: 100vh;
}
.layout-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 26px 0 18px;
  border-bottom: 3px double #221d15;
}
header a.title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #221d15;
  text-decoration: none;
}
header nav {
  display: flex;
  gap: 28px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
header nav a {
  color: #221d15;
  text-decoration: none;
}
header nav a:hover {
  color: #96401f;
}

article {
  max-width: 820px;
  padding: 72px 0 0;
}
.article-label {
  margin: 0 0 18px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #96401f;
}
article h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
article p.lead {
  margin: 32px 0 0;
  font-size: 22px;
  line-height: 1.55;
  font-style: italic;
  color: #57503f;
}
article p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #38332a;
}
article h2 + p, article h3 + p {
  margin-top: 0;
}
article strong {
  font-weight: 600;
}

/* Asides (Community & Technique) */
article blockquote {
  margin: 48px 0;
  background: #fffdf8;
  border: 1px solid #d9d0bf;
  padding: 36px 40px;
}
article blockquote > h2, article blockquote > h3, article blockquote > p:first-child {
  margin: 0 0 10px;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #96401f;
  font-weight: normal;
}
article blockquote p {
  font-size: 17px;
  line-height: 1.65;
}
article blockquote ul, article blockquote ol {
  margin: 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: #38332a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Sections */
article h2 {
  margin: 64px 0 24px;
  padding-top: 48px;
  border-top: 1px solid #d9d0bf;
  font-size: 30px;
  font-weight: 500;
}
/* First h2 shouldn't have top margin if it follows an aside, but whatever */
article h3 {
  margin: 48px 0 10px;
  font-size: 23px;
  font-weight: 600;
}
article h3 span {
  font-weight: 400;
  font-style: italic;
  color: #6b6152;
}

/* Lists */
article ul, article ol {
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #38332a;
  margin-bottom: 20px;
}
article ul li, article ol li {
  margin-bottom: 10px;
}

/* Ordered list (Core Principles) */
article ol.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: principles-counter;
}
article ol.principles li {
  display: flex;
  gap: 22px;
  counter-increment: principles-counter;
}
article ol.principles li::before {
  content: counter(principles-counter);
  font-size: 30px;
  font-style: italic;
  color: #c2b7a1;
  line-height: 1.2;
  min-width: 24px;
}
article ol.principles li p {
  margin: 0;
}

/* Core Lifts */
.core-lifts {
  border-top: 2px solid #221d15;
  list-style: none;
  padding: 0;
  margin: 0;
}
.core-lifts li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid #d9d0bf;
  margin: 0;
}
.core-lifts li p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.core-lifts li a {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid #c9a08d;
}
.core-lifts li a:hover {
  border-bottom-color: #6e2d13;
}

/* Workout Grids (Tables) — scoped to article so they don't affect the
   index page's hand-styled "At a Glance" comparison table */
article .workout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
article .workout-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
article table {
  width: 100%;
  background: #fffdf8;
  border: 1px solid #d9d0bf;
  border-collapse: collapse;
  margin-bottom: 24px;
}
article thead th {
  padding: 12px 22px;
  border-bottom: 2px solid #221d15;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
}
/* Hide the second column header visually since it is just empty in the markdown table */
article thead th:last-child {
  visibility: hidden;
}
article tbody td {
  padding: 12px 22px;
  border-bottom: 1px solid #e8e1d3;
  font-size: 17px;
}
article tbody tr:last-child td {
  border-bottom: none;
}
article tbody td:last-child {
  text-align: right;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Content disclaimer */
.content-disclaimer {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid #d9d0bf;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: #6b6152;
}
.content-disclaimer--top {
  margin: 0 0 40px;
  padding-top: 0;
  padding-bottom: 24px;
  border-top: none;
  border-bottom: 1px solid #d9d0bf;
}

/* Footer */
footer.page-footer {
  margin-top: 88px;
  border-top: 3px double #221d15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 28px 0 56px;
}
footer.page-footer a {
  text-decoration: none;
  color: #221d15;
}
footer.page-footer a .label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6152;
  margin-bottom: 8px;
}
footer.page-footer a .title {
  font-size: 24px;
  font-weight: 500;
}
footer.page-footer a:hover .title {
  color: #96401f;
}

/* Miscellaneous index styles */
.index-header {
  padding: 88px 0 72px;
  border-bottom: 1px solid #d9d0bf;
}
.index-header p.label {
  margin: 0 0 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #96401f;
}
.index-header h1 {
  margin: 0;
  font-size: 88px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}
.index-header p.lead {
  margin: 36px 0 0;
  font-size: 23px;
  line-height: 1.5;
  font-style: italic;
  color: #57503f;
  max-width: 62ch;
}
