@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================================================
   SANDECH — SINGLE POST
========================================================= */

.sd-article,
.sd-article * {
  box-sizing: border-box;
}

.sd-article {
  --sd-red: #80000d;
  --sd-red-dark: #65000a;
  --sd-black: #17191b;
  --sd-paper: #f8f8f6;
  --sd-white: #ffffff;
  --sd-text: #4e5356;
  --sd-muted: #929698;
  --sd-line: rgba(23,25,27,.13);

  width: 100%;
  overflow: hidden;
  padding-top: 86px;
  background: var(--sd-paper);
  color: var(--sd-black);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.sd-article a {
  text-underline-offset: 3px;
}

/* =========================================================
   HERO
========================================================= */

.sd-article-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--sd-paper);
}

.sd-article-hero__inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 120px), 1480px);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(65px, 7vw, 105px) 0 48px;
  display: flex;
  flex-direction: column;
}

.sd-article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(55px, 7vw, 95px);
  color: var(--sd-muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sd-article-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

.sd-article-breadcrumb a:hover {
  color: var(--sd-red);
}

.sd-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  color: var(--sd-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sd-article-hero__category {
  color: var(--sd-red);
  text-decoration: none;
}

.sd-article-hero__meta-line {
  width: 42px;
  height: 1px;
  background: var(--sd-red);
}

.sd-article-hero__title {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0;
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(58px, 6.1vw, 96px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.047em;
  text-wrap: balance;
}

.sd-article-hero__excerpt {
  max-width: 760px;
  margin: 38px 0 0;
  color: var(--sd-text);
  font-size: 16px;
  line-height: 1.75;
}

.sd-article-hero__foot {
  margin-top: auto;
  padding-top: 55px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.sd-article-hero__foot > span {
  color: rgba(23,25,27,.33);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .17em;
}

.sd-article-hero__foot > a {
  min-width: 180px;
  padding-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--sd-red);
  color: var(--sd-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.sd-article-hero__foot i {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  transition: transform .3s ease;
}

.sd-article-hero__foot a:hover i {
  transform: translateY(5px);
}

/* Hero graphic */

.sd-article-hero__graphic {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -120px;
  width: min(48vw, 740px);
  height: 100%;
  opacity: .65;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(128,0,13,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,0,13,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 25%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 25%, #000 100%);
}

.sd-article-hero__graphic-line {
  position: absolute;
  height: 1px;
  background: rgba(128,0,13,.45);
  transform-origin: left center;
}

.sd-article-hero__graphic-line--1 {
  top: 30%;
  left: 12%;
  width: 72%;
  transform: rotate(14deg);
}

.sd-article-hero__graphic-line--2 {
  top: 50%;
  left: 22%;
  width: 66%;
  transform: rotate(-8deg);
}

.sd-article-hero__graphic-line--3 {
  top: 69%;
  left: 18%;
  width: 74%;
  transform: rotate(10deg);
}

.sd-article-hero__graphic-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sd-red);
  box-shadow: 0 0 0 8px rgba(128,0,13,.05);
}

.sd-article-hero__graphic-node--1 {
  top: 31%;
  left: 35%;
}

.sd-article-hero__graphic-node--2 {
  top: 49%;
  left: 61%;
  background: var(--sd-paper);
  border: 2px solid var(--sd-red);
}

.sd-article-hero__graphic-node--3 {
  top: 70%;
  right: 12%;
}

/* =========================================================
   FEATURED IMAGE
========================================================= */

.sd-article-featured {
  width: min(calc(100% - 120px), 1480px);
  margin: 0 auto;
  padding: 0;
}

.sd-article-featured__image {
  display: block;
  width: 100%;
  height: clamp(380px, 52vw, 760px);
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   ARTICLE LAYOUT
========================================================= */

.sd-article-layout {
  width: min(calc(100% - 120px), 1280px);
  margin: 0 auto;
  padding: clamp(75px, 8vw, 120px) 0 clamp(90px, 9vw, 140px);
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: clamp(65px, 9vw, 140px);
  justify-content: center;
  align-items: start;
}

.sd-article-sidebar {
  min-width: 0;
}

.sd-article-toc {
  position: sticky;
  top: 125px;
  padding-top: 18px;
  border-top: 1px solid var(--sd-black);
}

.sd-article-toc__head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  margin-bottom: 24px;
}

.sd-article-toc__head span {
  color: var(--sd-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
}

.sd-article-toc__head small {
  color: var(--sd-muted);
  font-size: 7px;
  font-weight: 600;
}

.sd-article-toc__nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-article-toc__nav li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--sd-line);
}

.sd-article-toc__nav li[data-level="3"] a {
  padding-left: 14px;
  font-size: 10px;
}

.sd-article-toc__nav a {
  display: block;
  padding: 12px 0;
  color: #74787a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.42;
  text-decoration: none;
  transition: color .22s ease, padding-left .22s ease;
}

.sd-article-toc__nav a:hover,
.sd-article-toc__nav a.is-active {
  padding-left: 6px;
  color: var(--sd-red);
}

.sd-article-toc__progress {
  height: 2px;
  margin-top: 24px;
  overflow: hidden;
  background: rgba(23,25,27,.10);
}

.sd-article-toc__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sd-red);
}

/* =========================================================
   ARTICLE TYPOGRAPHY
========================================================= */

.sd-article-main {
  min-width: 0;
}

.sd-article-content {
  color: var(--sd-text);
  font-size: 17px;
  line-height: 1.82;
}

.sd-article-content > :first-child {
  margin-top: 0;
}

.sd-article-content p {
  margin: 0 0 1.55em;
}

.sd-article-content h2 {
  scroll-margin-top: 125px;
  margin: 2.15em 0 .65em;
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.sd-article-content h3 {
  scroll-margin-top: 125px;
  margin: 2em 0 .65em;
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.sd-article-content h4 {
  margin: 1.8em 0 .65em;
  color: var(--sd-black);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.sd-article-content strong {
  color: var(--sd-black);
  font-weight: 700;
}

.sd-article-content a {
  color: var(--sd-red);
  text-decoration-thickness: 1px;
}

.sd-article-content ul,
.sd-article-content ol {
  margin: 1.2em 0 1.7em;
  padding-left: 1.35em;
}

.sd-article-content li {
  margin: .55em 0;
  padding-left: .35em;
}

.sd-article-content li::marker {
  color: var(--sd-red);
  font-weight: 700;
}

.sd-article-content blockquote {
  margin: 2.2em 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--sd-red);
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
}

.sd-article-content figure {
  margin: 2.3em 0;
}

.sd-article-content img {
  max-width: 100%;
  height: auto;
}

.sd-article-content figcaption {
  margin-top: 9px;
  color: var(--sd-muted);
  font-size: 11px;
  line-height: 1.5;
}

.sd-article-content hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--sd-line);
}

.sd-article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.sd-article-content th,
.sd-article-content td {
  padding: 14px 16px;
  border: 1px solid var(--sd-line);
  text-align: left;
  vertical-align: top;
}

.sd-article-content th {
  background: #eeeeeb;
  color: var(--sd-black);
  font-weight: 700;
}

/* =========================================================
   INSTITUTIONAL CONTENT BLOCK
========================================================= */

.sd-article-author {
  margin-top: clamp(75px, 8vw, 115px);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--sd-black);
  border-bottom: 1px solid var(--sd-line);
}

.sd-article-author__brand {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sd-article-author__logo {
  display: block;
  width: 100%;
  max-width: 165px;
  height: auto;
  object-fit: contain;
}

.sd-article-author__content {
  min-width: 0;
}

.sd-article-author__content > span {
  display: block;
  margin-bottom: 12px;
  color: var(--sd-red);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.sd-article-author p {
  max-width: 690px;
  margin: 0;
  color: var(--sd-text);
  font-size: 15px;
  line-height: 1.72;
}

/* =========================================================
   SHARE
========================================================= */

.sd-article-share {
  position: relative;
  margin-top: 30px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
  border-bottom: 1px solid var(--sd-line);
}

.sd-article-share > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: var(--sd-red);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .17em;
}

.sd-article-share h2 {
  margin: 0;
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.sd-article-share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.sd-article-share__actions a,
.sd-article-share__actions button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--sd-line);
  background: transparent;
  color: var(--sd-black);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}

.sd-article-share__actions a:hover,
.sd-article-share__actions button:hover {
  border-color: var(--sd-red);
  color: var(--sd-red);
}

.sd-article-share__status {
  position: absolute;
  right: 0;
  bottom: -24px;
  margin: 0;
  color: var(--sd-red);
  font-size: 11px;
}

/* =========================================================
   RELATED
========================================================= */

.sd-article-related {
  background: #efefec;
  border-top: 1px solid var(--sd-line);
}

.sd-article-related__inner {
  width: min(calc(100% - 120px), 1480px);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 115px) 0;
}

.sd-article-related__head {
  margin-bottom: 55px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
}

.sd-article-related__head > div > span {
  display: block;
  margin-bottom: 20px;
  color: var(--sd-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}

.sd-article-related__head h2 {
  max-width: 650px;
  margin: 0;
  color: var(--sd-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.043em;
}

.sd-article-related__head h2 em {
  display: block;
  color: var(--sd-red);
  font-weight: 400;
  font-style: italic;
}

.sd-article-related__head > a {
  min-width: 175px;
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--sd-red);
  color: var(--sd-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.sd-article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sd-related-card {
  min-width: 0;
}

.sd-related-card__image-link {
  display: block;
  height: 245px;
  overflow: hidden;
  background: var(--sd-black);
  text-decoration: none;
}

.sd-related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.25,1);
}

.sd-related-card:hover .sd-related-card__image {
  transform: scale(1.025);
}

.sd-related-card__fallback {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--sd-red);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 88px;
  line-height: .8;
}

.sd-related-card__meta {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--sd-muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sd-related-card__meta span {
  color: var(--sd-red);
}

.sd-related-card h3 {
  margin: 15px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.sd-related-card h3 a {
  color: var(--sd-black);
  text-decoration: none;
}

.sd-related-card__read {
  width: fit-content;
  margin-top: 22px;
  padding-bottom: 6px;
  display: inline-flex;
  gap: 14px;
  border-bottom: 1px solid var(--sd-red);
  color: var(--sd-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

/* =========================================================
   FINAL CTA
========================================================= */

.sd-article-cta {
  background: var(--sd-black);
  color: var(--sd-white);
}

.sd-article-cta__inner {
  width: min(calc(100% - 120px), 1480px);
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(55px, 6vw, 85px) 0;
  display: grid;
  grid-template-columns: 190px minmax(500px, 1fr) auto;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.sd-article-cta__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-article-cta__meta span {
  color: var(--sd-red);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .16em;
}

.sd-article-cta__meta small {
  color: rgba(255,255,255,.34);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .16em;
}

.sd-article-cta__statement p {
  margin: 0 0 5px;
  color: rgba(255,255,255,.48);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.sd-article-cta__statement h2 {
  max-width: 840px;
  margin: 0;
  color: var(--sd-white);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.038em;
}

.sd-article-cta__statement h2 em {
  display: block;
  color: #d6a0a5;
  font-weight: 400;
  font-style: italic;
}

.sd-article-cta__inner > a {
  min-width: 190px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--sd-red);
  color: var(--sd-white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.sd-article-cta__inner > a span {
  color: var(--sd-red);
  font-size: 18px;
}

/* =========================================================
   NOTEBOOK
========================================================= */

@media (max-width: 1180px) {
  .sd-article-hero__inner,
  .sd-article-featured,
  .sd-article-related__inner,
  .sd-article-cta__inner {
    width: calc(100% - 70px);
  }

  .sd-article-layout {
    width: calc(100% - 70px);
    grid-template-columns: 220px minmax(0, 760px);
    gap: 60px;
  }

  .sd-article-hero__graphic {
    right: -260px;
    opacity: .42;
  }

  .sd-article-cta__inner {
    grid-template-columns: 150px 1fr;
  }

  .sd-article-cta__inner > a {
    grid-column: 2;
    justify-self: start;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .sd-article {
    padding-top: 78px;
  }

  .sd-article-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .sd-article-toc {
    position: relative;
    top: auto;
  }

  .sd-article-toc__nav ol {
    columns: 2;
    column-gap: 35px;
  }

  .sd-article-toc__nav li {
    break-inside: avoid;
  }

  .sd-article-main {
    max-width: 820px;
  }

  .sd-article-related__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sd-article-cta__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sd-article-cta__inner > a {
    grid-column: auto;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
  .sd-article {
    padding-top: 72px;
  }

  .sd-article-hero {
    min-height: auto;
  }

  .sd-article-hero__inner {
    width: calc(100% - 34px);
    min-height: 610px;
    padding: 48px 0 35px;
  }

  .sd-article-breadcrumb {
    margin-bottom: 50px;
  }

  .sd-article-hero__meta-line {
    width: 25px;
  }

  .sd-article-hero__title {
    max-width: 370px;
    font-size: clamp(45px, 13vw, 60px);
    line-height: .95;
  }

  .sd-article-hero__excerpt {
    max-width: 355px;
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.7;
  }

  .sd-article-hero__foot {
    padding-top: 42px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sd-article-hero__foot > a {
    width: 100%;
  }

  .sd-article-hero__graphic {
    right: -350px;
    width: 520px;
    opacity: .24;
  }

  .sd-article-featured {
    width: 100%;
  }

  .sd-article-featured__image {
    height: 300px;
  }

  .sd-article-layout {
    width: calc(100% - 34px);
    padding: 58px 0 75px;
  }

  .sd-article-toc__nav ol {
    columns: 1;
  }

  .sd-article-content {
    font-size: 16px;
    line-height: 1.78;
  }

  .sd-article-content h2 {
    font-size: 38px;
  }

  .sd-article-content h3 {
    font-size: 30px;
  }

  .sd-article-content table {
    display: block;
    overflow-x: auto;
  }

  .sd-article-author {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .sd-article-author__brand {
    min-height: 0;
  }

  .sd-article-author__logo {
    max-width: 145px;
  }

  .sd-article-author p {
    max-width: 355px;
    font-size: 14px;
  }

  .sd-article-share {
    grid-template-columns: 1fr;
  }

  .sd-article-share__actions {
    justify-content: flex-start;
  }

  .sd-article-share__actions a,
  .sd-article-share__actions button {
    flex: 1;
    justify-content: space-between;
  }

  .sd-article-related__inner {
    width: calc(100% - 34px);
  }

  .sd-article-related__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sd-article-related__head h2 {
    font-size: 46px;
  }

  .sd-article-related__head > a {
    width: 100%;
  }

  .sd-article-related__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sd-related-card__image-link {
    height: 240px;
  }

  .sd-article-cta__inner {
    width: calc(100% - 34px);
    min-height: 420px;
  }

  .sd-article-cta__statement h2 {
    font-size: 42px;
  }

  .sd-article-cta__inner > a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-article *,
  .sd-article *::before,
  .sd-article *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
