/* ==========================================================================
   intelligaurd.com - single stylesheet
   Mobile-first. Breakpoints: 480 / 768 / 1024.
   Palette temperature: black masthead bar, white page, warm beige panels,
   tan call-to-action, soft orange numerals (native personal-blog look).
   ========================================================================== */

:root {
  color-scheme: only light;

  --c-page: #ffffff;
  --c-ink: #141414;
  --c-ink-2: #2b2b2b;
  --c-muted: #595959;
  --c-rule: #bcbcbc;
  --c-rule-soft: #e1dbd1;
  --c-bar: #1a1a1a;
  --c-bar-text: #ffffff;
  --c-beige: #f3ebe1;
  --c-beige-2: #faf6f0;
  --c-sand: #d8cdbd;
  --c-tan: #8f6a31;
  --c-tan-dark: #6f5023;
  --c-orange: #a85a0c;
  --c-orange-bright: #e0902f;

  --font-serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --font-sans: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;

  --gutter: 16px;
  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(60, 40, 10, 0.08), 0 8px 20px rgba(60, 40, 10, 0.08);
  --shadow-box: 0 2px 7px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #ffffff;
  color: #141414;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #141414;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: manual;
}

.page,
.page--article,
.page--legal,
.layout,
.article,
.article__body,
.section,
.sidebar,
.sidebar__inner,
.figure {
  background-color: #ffffff;
  color: #141414;
}

img,
video,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
  display: block;
}

a {
  color: #141414;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: #6f5023;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8f6a31;
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin-top: 0;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background-color: #ffffff;
  color: #141414;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 2px solid #141414;
}

.skip-link:focus {
  top: 8px;
}

/* Reading progress (decorative, driven by site.js) ------------------------ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background-color: transparent;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: #e0902f;
}

/* Masthead: black bar, plain domain + one-word label ---------------------- */

.masthead {
  background-color: #1a1a1a;
  color: #ffffff;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 14px;
  min-height: 44px;
  padding: 0 var(--gutter);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
}

a.masthead__brand:hover {
  color: #e8dccb;
}

.masthead__label {
  display: inline-block;
  padding: 3px 0 3px 14px;
  border-left: 1px solid #7a7a7a;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .masthead--article .masthead__inner,
  .masthead--article .masthead__brand {
    min-height: 34px;
  }
}

/* Page frame ------------------------------------------------------------- */

.layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article {
  min-width: 0;
}

.sidebar {
  display: none;
}

@media (min-width: 480px) {
  :root {
    --gutter: 20px;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 30px;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 335px);
    column-gap: clamp(44px, 5.5vw, 72px);
    align-items: start;
  }

  .sidebar {
    display: block;
    align-self: stretch;
    padding-top: 58px;
  }

}

@media (min-width: 1024px) and (min-height: 780px) {
  .sidebar__inner {
    position: sticky;
    top: 24px;
  }
}

/* Article head ------------------------------------------------------------ */

.article__head {
  padding-top: 28px;
}

@media (min-width: 768px) {
  .article__head {
    padding-top: 44px;
  }
}

.article__title {
  margin: 0 0 0.75em;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.4rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.003em;
  color: #000000;
}

@media (min-width: 1024px) {
  .article__title {
    line-height: 1.42;
  }
}

.article__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #b3b3b3;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  margin: 0;
  padding: 16px 0 18px;
  color: #1f1f1f;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .byline {
    padding: 20px 0 22px;
    font-size: 1rem;
  }
}

.byline__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.byline__sep {
  display: inline-block;
  flex: none;
  width: 1px;
  height: 1.05em;
  margin: 0 4px;
  background-color: #6f6f6f;
}

.byline__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.dek {
  margin: 0 0 14px;
  padding: 10px 14px;
  background-color: #f3ebe1;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  box-shadow: var(--shadow-box);
}

@media (min-width: 768px) {
  .dek {
    padding: 8px 12px;
    font-size: 1.25rem;
    line-height: 1.85;
  }
}

/* Figures and the video frame -------------------------------------------- */

.figure {
  margin: 0 0 1.9rem;
}

.figure__img {
  width: 100%;
  height: auto;
  background-color: #e9e4dc;
}

.figure__caption {
  margin: 0;
  padding-top: 9px;
  color: #595959;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #e9e4dc;
}

.media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 92%;
}

.article__hero {
  margin-bottom: 2rem;
}

/* Article body ------------------------------------------------------------ */

:where(.article__body) p {
  margin-bottom: 1.2em;
}

.section {
  margin-top: 2.75rem;
}

@media (min-width: 768px) {
  .section {
    margin-top: 3.5rem;
  }
}

.section__title {
  margin: 0 0 1rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  body {
    font-size: 1.125rem;
    line-height: 1.8;
  }
}

/* Numbered steps ---------------------------------------------------------- */

.steps {
  margin: 1.6rem 0 1.8rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #d5d5d5;
  counter-increment: step;
}

.steps__item:last-child {
  border-bottom: 1px solid #d5d5d5;
}

.steps__item::before {
  content: counter(step);
  flex: none;
  min-width: 1.5rem;
  color: #a85a0c;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.steps__body {
  margin: 0;
}

.steps__body strong {
  display: block;
  font-size: 1.125rem;
}

/* CTA block (inline) ------------------------------------------------------ */

.cta {
  margin: 2.6rem 0;
  padding: 1.7rem 0 1.5rem;
  border-top: 1px solid #bcbcbc;
  border-bottom: 1px solid #bcbcbc;
  background-color: #ffffff;
  color: #141414;
  text-align: center;
}

.cta__title {
  margin: 0 0 0.45rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.cta__text {
  max-width: 36rem;
  margin: 0 auto 1.3rem;
  font-size: 1rem;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1.6rem;
  background-color: #8f6a31;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 0 #6f5023, 0 8px 18px rgba(80, 55, 15, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #75531f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #54391a, 0 12px 22px rgba(80, 55, 15, 0.26);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #54391a;
}

.btn:focus-visible {
  outline: 3px solid #141414;
  outline-offset: 3px;
  border-radius: 8px;
}

@media (min-width: 480px) {
  .cta .btn {
    width: auto;
    min-width: 20rem;
  }
}

.btn-note {
  max-width: 32rem;
  margin: 0.85rem auto 0;
  color: #5a5a5a;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Callout / pull line (beige, boxed shadow like the primary's quote) ------ */

.callout {
  margin: 0;
  padding: 14px 16px;
  background-color: #f3ebe1;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.8;
  box-shadow: var(--shadow-box);
}

@media (min-width: 768px) {
  .callout {
    padding: 18px 20px;
    font-size: 1.1875rem;
  }
}

.split {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.4rem;
  align-items: center;
}

.split .figure {
  margin: 0;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem;
  }
}

/* Week timeline ----------------------------------------------------------- */

.week {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.week__item {
  position: relative;
  padding: 0 0 1.7rem 42px;
}

.week__item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: -4px;
  width: 2px;
  background-color: #d8cdbd;
}

.week__item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #8f6a31;
  box-shadow: 0 0 0 4px #ffffff;
}

.week__item:last-child {
  padding-bottom: 0;
}

.week__item:last-child::before {
  display: none;
}

.week__day {
  display: block;
  margin: 0 0 2px;
  color: #6f5023;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.week__title {
  margin: 0 0 0.4rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.week__item p {
  margin-bottom: 0;
}

/* Needs: card grid -------------------------------------------------------- */

.needs {
  display: grid;
  gap: 14px;
  margin: 1.8rem 0;
  padding: 0;
  list-style: none;
}

.needs__item {
  padding: 20px 18px 22px;
  background-color: #f3ebe1;
  color: #141414;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.needs__num {
  display: block;
  margin-bottom: 8px;
  color: #a85a0c;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}

.needs__title {
  margin: 0 0 0.4rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.needs__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .needs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Plain point lists ------------------------------------------------------- */

.points {
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.points__item {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1.6rem;
}

.points__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background-color: #8f6a31;
}

/* FAQ accordion ----------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  margin: 1.6rem 0 0;
}

.faq__item {
  background-color: #ffffff;
  color: #141414;
  border: 1px solid #ddd3c4;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item:hover {
  border-color: #c4b59d;
}

.faq__item[open] {
  background-color: #faf6f0;
  border-color: #c4b59d;
  box-shadow: var(--shadow-soft);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  color: #141414;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f3ebe1;
  color: #6f5023;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.faq__item[open] .faq__q::after {
  content: "\2013";
  background-color: #e8dccb;
}

.faq__a {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 1rem;
  line-height: 1.7;
}

/* Sidebar (desktop) ------------------------------------------------------- */

.sidebar__title {
  margin: 0 0 0.7rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc__item {
  border-top: 1px solid #d3d3d3;
}

.toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: #141414;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc__link::before {
  content: counter(toc);
  counter-increment: toc;
  flex: none;
  min-width: 1.1em;
  color: #a85a0c;
  font-weight: 700;
}

.toc__link:hover {
  color: #6f5023;
  text-decoration: underline;
}

.sidecta {
  margin-top: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #8f8f8f;
  text-align: center;
}

.sidecta__title {
  margin: 0 0 0.9rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.sidecta__art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1rem;
  border-radius: 6px;
}

.sidecta__text {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Footer: publisher imprint ----------------------------------------------- */

.bottom {
  margin-top: 3.5rem;
  padding: 2.5rem var(--gutter) 3.5rem;
  background-color: #ffffff;
  color: #595959;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .bottom {
    margin-top: 4.5rem;
  }
}

.bottom__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.bottom__contact-info {
  margin: 0 0 1.1rem;
  color: #595959;
}

.bottom__contact-info p,
.bottom__line {
  margin: 0;
}

.bottom__line--name {
  color: #2b2b2b;
  font-weight: 700;
}

.bottom__foot-links {
  margin: 0 0 1.2rem;
}

.bottom__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3d3d3d;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bottom__link:hover {
  color: #000000;
}

.byline-note {
  max-width: 64rem;
  margin: 0;
  color: #595959;
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* Legal / about pages ----------------------------------------------------- */

.legal {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
  background-color: #ffffff;
  color: #141414;
}

.legal__crumb {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.legal__crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3d3d3d;
}

.legal__title {
  margin: 0 0 0.5rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.version-line {
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #bcbcbc;
  color: #595959;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal__lead {
  margin: 0 0 1.4rem;
  padding: 10px 14px;
  background-color: #f3ebe1;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  box-shadow: var(--shadow-box);
}

.legal__h2 {
  margin: 2.2rem 0 0.6rem;
  color: #000000;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.legal p {
  margin-bottom: 1em;
}

.legal__list {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.legal__list li {
  margin-bottom: 0.5rem;
}

.legal__facts {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.legal__facts li {
  display: grid;
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid #ddd3c4;
}

.legal__facts li:last-child {
  border-bottom: 1px solid #ddd3c4;
}

.legal__facts strong {
  display: block;
  color: #3d3d3d;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

@media (min-width: 480px) {
  .legal__facts li {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.page--legal .bottom__inner {
  max-width: calc(800px - 2 * var(--gutter));
}

.legal__title + .legal__lead {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
