/* ==========================================================================
   Opinioned — hand-written CSS matching the original Squarespace design.
   Design tokens sampled from the live site (getopinioned.com), Aug 2026.
   ========================================================================== */

:root {
  --purple: #5e65c4;      /* feature sections, hero, article pages */
  --ink: #484955;         /* primary text on light backgrounds */
  --sage: #727a77;        /* gray-green sections, buttons */
  --lavender: #e0e2ed;    /* "Talk to me!" form section */
  --paper: #ffffff;
  --input-bg: #fafafa;
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---- Layout helpers ---------------------------------------------------- */

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

.container--narrow {
  max-width: 800px;
}

.container--article {
  max-width: 720px;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
}

.theme-purple {
  background: var(--purple);
  color: #fff;
}

.theme-sage {
  background: var(--sage);
  color: #fff;
}

.theme-white {
  background: var(--paper);
  color: var(--ink);
}

.theme-lavender {
  background: var(--lavender);
  color: var(--ink);
}

/* ---- Header / nav ------------------------------------------------------ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.dropdown {
  list-style: none;
  margin: 0;
}

.site-nav a,
.dropdown-toggle {
  font-family: var(--font);
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-nav a:hover,
.dropdown-toggle:hover {
  opacity: 0.7;
}

.site-nav a[aria-current="page"],
.dropdown-toggle.is-active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  min-width: 220px;
  z-index: 20;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.has-dropdown.is-open .dropdown {
  display: flex;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

/* ---- Hero & feature text ---------------------------------------------- */

.hero {
  text-align: center;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 0.8em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.hero .lead {
  max-width: 46em;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  margin: 0;
}

.statement {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 1.2em;
}

.statement-section {
  text-align: center;
}

.statement-section p:not(.statement) {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

/* ---- Banners (full-width photo strips) --------------------------------- */

.banner {
  min-height: clamp(320px, 45vw, 576px);
  background-size: cover;
  background-position: center;
}

.banner--overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
}

.banner--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 41, 51, 0.55);
}

.banner__caption {
  position: relative;
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  text-align: center;
  margin: 0;
}

/* ---- Homepage editor card ---------------------------------------------- */

.editor-section {
  padding-top: 0;
}

.editor-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.editor-card h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.editor-card p {
  color: var(--sage);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 44em;
  margin-left: auto;
  margin-right: auto;
}

.editor-card__journalist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.editor-card__journalist img {
  width: min(288px, 100%);
  flex-shrink: 0;
}

.editor-card__journalist h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  text-align: left;
  max-width: 18em;
  margin: 0;
}

/* ---- Two-column split sections ----------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__text h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.split__media img {
  display: block;
  width: 100%;
}

/* ---- Solution pillars --------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1000px;
}

.pillar h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* ---- Portfolio ---------------------------------------------------------- */

.portfolio-heading {
  padding-bottom: 0;
}

.portfolio-grid-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.portfolio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.2rem 3rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.portfolio-card__logo {
  width: min(219px, 80%);
  aspect-ratio: 2.4 / 1;
  object-fit: contain;
}

.portfolio-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.portfolio-card__byline {
  font-size: 0.9rem;
  margin: 0;
}

.portfolio-card .btn {
  margin-top: auto;
}

/* ---- Blog list (Op-Education) ------------------------------------------- */

.blog-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list__item {
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.blog-list__item:first-child {
  padding-top: 0;
}

.blog-list__item:last-child {
  border-bottom: 0;
}

.blog-list__meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.blog-list__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.blog-list__title a {
  text-decoration: none;
}

.blog-list__title a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.blog-list__more {
  font-weight: 600;
  font-size: 0.95rem;
  text-underline-offset: 4px;
}

/* ---- Article pages ------------------------------------------------------ */

.article__back {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  text-decoration: none;
}

.article__back:hover {
  text-decoration: underline;
}

.article__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.article__meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.article__body h4,
.article__body h3,
.article__body h2 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.7em;
}

.article__body img {
  display: block;
  margin: 2rem auto;
}

/* ---- About -------------------------------------------------------------- */

.about .split {
  align-items: start;
}

.about__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.about .split__media img {
  width: min(420px, 100%);
  margin-left: auto;
}

/* ---- Contact page / forms ----------------------------------------------- */

.split--form {
  align-items: start;
}

/* Short pages have no form to fill them and the site has no footer, so pin the
   section to the remaining viewport height instead of leaving white space. */
.contact-page,
.error-page {
  min-height: calc(100vh - 69px);
  display: grid;
  align-content: center;
}

.contact-page__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.talk-section {
  text-align: left;
}

.talk-section__heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.6em;
}

.contact-cta__lead {
  max-width: 34em;
  margin: 0 0 1.6rem;
}

.contact-cta__btn {
  margin-bottom: 1.1rem;
}

.contact-cta__address {
  margin: 0;
  font-size: 0.95rem;
}

.contact-cta__address a {
  color: inherit;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  cursor: pointer;
}

.btn--sage {
  background: var(--sage);
  color: #fff;
}

.btn--white {
  background: var(--paper);
  color: var(--sage);
}

.btn--small {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.05rem;
}

.btn:hover {
  opacity: 0.85;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 30;
  }

  .site-header {
    position: relative;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0.6rem 0 0 1rem;
    min-width: 0;
  }

  .split,
  .pillars {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .about .split__media {
    order: -1;
  }

  .about .split__media img {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
