/* ============================================================
RESET & BASE
============================================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #111;
  background-color: #ffffff;
}

/* ============================================================
TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
}

h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.9rem; }

p {
  margin: 0 0 0.75rem 0;
}

/* ============================================================
LINKS
============================================================ */
a {
  color: #333;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
HEADER / NAVIGATION
============================================================ */
.site-header {
  background-color: #f3f5f7;
  border-bottom: 1px solid #dcdcdc;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Space between header and first content block */
.site-header + .explanatory-block {
  margin-top: 1.25rem;
}

/* ============================================================
BRAND WORDMARK (TEXT LOGO)
============================================================ */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: 1.35rem;
}

.brand-work {
  color: #111;
}

.brand-pay {
  color: #2f6fdd;
}

.brand-tagline {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #555;
  max-width: 14.5rem;
}

/* ============================================================
PRIMARY NAVIGATION
============================================================ */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #111;
}

.primary-nav a:hover {
  text-decoration: underline;
}

/* ============================================================
MAIN CONTENT
============================================================ */
main {
  flex: 1;
  display: block;
}

/* ============================================================
REFERENCE SPOTLIGHT
============================================================ */
.reference-spotlight {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  position: relative;
}

.reference-spotlight::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * 3 / 4 - 1rem);
  width: 1px;
  background-color: #dcdcdc;
}

.reference-main img {
  width: 100%;
  height: auto;
  display: block;
}

.reference-essays {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reference-essay {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reference-essay img {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  display: block;
}

.reference-essay p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

/* ============================================================
EXPLANATORY BLOCK
============================================================ */
.explanatory-block {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* default explanatory paragraphs */
.explanatory-block > p {
  max-width: none;
}


.explanatory-block .intro {
  max-width: none;
}


/* pillar description paragraphs */
.explanatory-block h3 + p {
  max-width: none;
}

/* subtle horizontal separators */
.explanatory-block hr {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: 1.25rem 0;
}

/* ============================================================
FOOTER
============================================================ */
.site-footer {
  background-color: #f3f5f7;
  border-top: 1px solid #dcdcdc;
}

.footer-nav {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
}

.footer-nav ul {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #333;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copyright {
  color: #555;
}

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .reference-spotlight {
    grid-template-columns: 1fr;
  }

  .reference-spotlight::after {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
  }
}