/* John Millen's site. It keeps the look of his Squarespace site (template 7.1), as measured from
   the live pages on 2026-11-25: Manrope headings and Poppins text, sizes that grow with the window
   up to a 2,000-pixel page, a 3% margin either side, and his colors. One type scale throughout, so
   every post reads alike (Stephen, 2026-11-25: "in places with inconsistent fonts, please make them
   consistent"). */

:root {
  --black: #000;
  --white: #fff;
  --navy: #253551;      /* his accent, hsl(218 37% 23%) */
  --warm: #e0e0db;      /* his light accent */
  --charcoal: #2a2829;  /* his dark accent */
  --green: #19c251;     /* his link color */
  --gutter: 3vw;
  --max: 2000px;
  --text: min(calc(.48vw + 1rem), calc(.48 * 20px + 1rem));
  --h1: min(calc(3.6vw + 1rem), calc(3.6 * 20px + 1rem));
  --h2: min(calc(2.16vw + 1rem), calc(2.16 * 20px + 1rem));
  --h3: min(calc(1.44vw + 1rem), calc(1.44 * 20px + 1rem));
  --h4: min(calc(.72vw + 1rem), calc(.72 * 20px + 1rem));
  --button: min(calc(.6vw + 1rem), calc(.6 * 20px + 1rem));
  --heading-font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  font-size: var(--text);
  font-weight: 400;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .15em; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4, h5, h6 { font-size: var(--h4); }
p { margin: 0 0 1rem; }
strong, b { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--white); color: var(--black); padding: .5em 1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- header and footer ---------- */

.site-header { background: var(--black); }
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .2vw var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo { display: block; flex: 0 1 auto; min-width: 0; }
.site-logo img { display: block; height: 139px; width: auto; max-width: 100%; }
.site-nav { display: flex; gap: .9em; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--green); text-decoration: none; padding: .1em 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

.site-footer { background: var(--black); padding: calc(3.3vw + 20px) 0; }

@media (max-width: 767px) {
  .site-header__inner { padding: 4vw var(--gutter); }
  .site-logo img { height: auto; max-height: 44px; }
}

/* ---------- posts ---------- */

.post {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--gutter) var(--gutter) 0;
}
.post-title { text-align: center; margin: 2rem 0 2.5rem; }
.post-featured { margin: 0 0 2.5rem; }
.post-featured img { display: block; width: 100%; height: auto; }
.post-body { margin-bottom: 3rem; }
.post-body::after { content: ""; display: table; clear: both; }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.6em; }
.post-body h2 { font-size: var(--h3); }
.post-body h3, .post-body h4 { font-size: var(--h4); }
.post-body img { display: block; margin: 1.5rem auto; height: auto; }
.post-body a img { margin: 1.5rem auto; }
.post-body .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.post-body .alignright { float: right; margin: .3em 0 1em 1.5em; }
.post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-body .text-align-center { text-align: center; }
.post-body .text-align-right { text-align: right; }
.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25em;
  border-left: 3px solid var(--warm);
}
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1rem; }
.post-body li { margin-bottom: .35em; }
.post-body iframe { display: block; max-width: 100%; margin: 1.5rem auto; border: 0; }
.post-body iframe[src*="youtube"], .post-body iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-body dl.wp-caption { margin: 0 0 1rem; max-width: 100%; }
.post-body .wp-caption-dd { margin: 0; font-size: .8em; color: #555; }
.post-body table { border-collapse: collapse; margin: 1.5rem 0; max-width: 100%; }
.post-body td, .post-body th { border: 1px solid var(--warm); padding: .4em .6em; vertical-align: top; }

.post-pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--gutter) 0 calc(var(--gutter) + 1rem);
}
.post-pager a {
  display: flex;
  align-items: center;
  gap: .6em;
  max-width: 48%;
  color: var(--black);
  text-decoration: none;
}
.post-pager a:hover .post-pager__title { text-decoration: underline; }
.post-pager__next { margin-left: auto; text-align: right; }
.post-pager__title {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: var(--h3);
  letter-spacing: -.02em;
  line-height: 1;
}
.post-pager__icon { font-size: var(--h2); line-height: 1; font-weight: 300; }

@media (max-width: 767px) {
  .post-body .alignleft, .post-body .alignright { float: none; margin: 1rem auto; }
  .post-pager { flex-direction: column; }
  .post-pager a { max-width: 100%; }
  .post-pager__title { font-size: var(--h4); }
}

/* ---------- the blog's lists ---------- */

.list-heading {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 0;
  text-align: center;
  font-size: var(--h2);
}
.blog-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 80px;
  text-align: center;
}
.blog-card { display: flex; flex-direction: column; align-items: center; }
.blog-card__image { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.blog-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__title { font-size: var(--h3); line-height: 1.2; margin: 2.6rem 0 0; width: 100%; }
.blog-card__title a { color: var(--green); text-decoration: none; }
.blog-card__title a:hover { text-decoration: underline; }
.blog-card__more { color: var(--green); display: inline-block; margin-top: 2.5rem; }
.blog-pager {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) calc(var(--gutter) + 2rem);
  display: flex;
  justify-content: space-between;
}
.blog-pager a { color: var(--green); text-decoration: none; }
.blog-pager a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 40px; }
}
@media (max-width: 599px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .blog-card__title { margin-top: 1.5rem; }
  .blog-card__more { margin-top: 1rem; }
}

/* ---------- the home page ---------- */

.band { padding: 6.6vw var(--gutter); }
.band--charcoal { background: var(--charcoal); color: var(--white); }
.band--navy { background: var(--navy); color: var(--white); }
.band--warm { background: var(--warm); }
.band--white { background: var(--white); }
.band__inner { max-width: 1500px; margin: 0 auto; }
.band h1, .band h2, .band h3 { margin-bottom: .5em; }
.center { text-align: center; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
}
.hero h1 { font-size: var(--h1); line-height: 1.06; }
.hero__photo { margin: 0; text-align: center; }
.hero__photo img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 1rem; }
.hero__name { margin: 0; font-weight: 700; }
.hero__role { margin: 0 0 1.5rem; font-weight: 700; }
.hero__more { font-weight: 700; text-transform: uppercase; text-decoration: none; }
.hero__more:hover { text-decoration: underline; }

.button {
  display: inline-block;
  border-radius: 300px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--button);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 1.05em 1.6em;
  border: 0;
  cursor: pointer;
}
.button--white { background: var(--white); color: var(--green); }
.button--navy { background: var(--navy); color: var(--green); padding: .65em 1.6em; }
.button:hover { filter: brightness(1.08); }
.button-row { margin-top: 2rem; }

.band--navy h2, .band--charcoal h2 { margin: 0; }
.skills, .voices, .clients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3vw;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.skills img { width: 70px; height: auto; margin: 0 auto 1.2rem; display: block; }
.skills h3 { font-size: var(--h4); color: var(--navy); margin-bottom: .6em; }
.voices img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; display: block; }
.voices h3 { font-size: var(--h4); margin-bottom: .2em; }
.voices__role { font-weight: 700; margin-bottom: 1.4rem; }
.voices blockquote { margin: 0; background: var(--white); padding: 1.6rem 1.4rem; }
.voices blockquote p:last-child { margin-bottom: 0; }

.clients-band h2 { font-size: var(--h3); max-width: 700px; margin: 0 auto 2.5rem; }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.logos img { display: block; width: auto; max-width: 220px; max-height: 110px; }
.logos p { margin: 0; }

.about { max-width: 760px; margin: 0 auto; }
.about h2 { text-align: center; font-size: var(--h1); margin-bottom: 1.2rem; }
.about ul { padding-left: 1.4em; }
.about .button-row { text-align: center; }

@media (max-width: 767px) {
  .band { padding: 12vw 6vw; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .hero__photo { order: -1; }
  .hero__photo img { max-width: 300px; }
  .skills, .voices { grid-template-columns: minmax(0, 1fr); gap: 10vw; }
}

/* ---------- contact ---------- */

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5vw var(--gutter) 6vw;
}
.contact__column { width: 46.2%; margin-left: 10.8%; }
.contact h1 { font-size: var(--h2); text-align: center; margin-bottom: 1.2rem; }
.contact__signature { text-align: right; margin-right: 2em; }
.form fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.form legend, .form .label { display: block; margin-bottom: .3rem; padding: 0; }
.form .required-note { font-size: .78em; color: #444; }
.form .hint { display: block; font-size: .85em; color: #333; margin: 0 0 .4rem; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.form .field { margin-bottom: 1.4rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--black);
  background: var(--warm);
  border: 2px solid transparent;
  border-radius: 0;
  padding: .3em .45em;
}
.form textarea { min-height: 4.2em; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); }
.form .option { display: flex; align-items: flex-start; gap: .55em; margin: .25rem 0; }
.form .option input { width: 1em; height: 1em; margin-top: .28em; accent-color: var(--navy); flex: none; }
.form .button--submit { background: var(--navy); color: var(--white); padding: 1em 1.6em; }
.form .button--submit[disabled] { opacity: .6; cursor: progress; }
.form .turnstile { margin: 0 0 1.4rem; min-height: 65px; }
.form__error { color: #b00020; margin: 0 0 1rem; }
.form__done h2 { font-size: var(--h3); }

@media (max-width: 767px) {
  .contact__column { width: auto; margin: 0; }
  .form .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- not found ---------- */

.not-found { max-width: 900px; margin: 0 auto; padding: 8vw var(--gutter); text-align: center; }
