/* anotherlookreviews.com - shared stylesheet
   Bootstrap 5 (CDN) loads first; this file layers the publication identity on top.
   Mobile-first: base rules target 360px, then 480 / 768 / 1024 add layout. */

:root {
  color-scheme: only light;
  --bg: #FFFDF7;
  --surface: #F2EEE3;
  --ink: #16302B;
  --muted: #5B6F6A;
  --accent: #0F766E;
  --accent-ink: #FFFFFF;
  --rule: rgba(22, 48, 43, 0.16);
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 6px;
}

html {
  background-color: #FFFDF7;
  color: #16302B;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body.story {
  background-color: #FFFDF7;
  color: #16302B;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
  font-weight: 400;
  overflow-wrap: break-word;
  margin: 0;
}

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

.story img,
.story video {
  max-width: 100%;
  height: auto;
}

.story a {
  color: #0F766E;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.story a:hover {
  color: #16302B;
}

.story :focus-visible {
  outline: 3px solid #0F766E;
  outline-offset: 3px;
  border-radius: 3px;
}

.story p {
  margin: 0 0 1.15em;
}

.story main:focus {
  outline: none;
}

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background-color: #16302B;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: 0.9375rem;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
}

.story .skip-link:focus {
  left: 16px;
  top: 16px;
  color: #FFFFFF;
}

/* ---------- shell: Bootstrap container / row / col ---------- */
.story .container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

.shell__side,
.shell__main {
  width: 100%;
  min-width: 0;
}

/* ---------- masthead (sidebar on desktop, stacked on mobile) ---------- */
.masthead {
  padding: 18px 0 8px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  background-color: #FFFDF7;
  color: #16302B;
}

.masthead__brand {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #16302B;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.story a.masthead__brand:hover {
  color: #0F766E;
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.masthead__label {
  display: inline-block;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #0F766E;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #0F766E;
}

.masthead__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  background-color: transparent;
  border: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: #16302B;
  cursor: pointer;
}

.masthead__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #0F766E;
  border-bottom: 2px solid #0F766E;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.masthead__toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

.masthead__toggle:hover {
  color: #0F766E;
}

.masthead__nav ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.masthead__nav li + li a {
  border-top: 1px solid var(--rule);
}

.story .masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: #16302B;
  text-decoration: none;
}

.story .masthead__nav a:hover {
  color: #0F766E;
}

.masthead__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: #0F766E;
  text-decoration: none;
}

.story .masthead__back:hover {
  color: #16302B;
  text-decoration: underline;
}

.masthead__note {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5B6F6A;
}

/* ---------- article opening ---------- */
.article {
  max-width: 860px;
  padding-bottom: 8px;
}

.hero > *,
.part > *,
.doc > * {
  max-width: 680px;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #0F766E;
}

.hero > h1,
.doc > h1 {
  max-width: 820px;
  margin: 0 0 20px;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #16302B;
}

.hero h1 .tone {
  color: #0F766E;
}

.dek {
  margin: 0 0 18px;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: #16302B;
}

.byline {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #5B6F6A;
}

/* ---------- figures ---------- */
.fig {
  margin: 0;
}

.fig img,
.fig__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: none;
}

.fig__video {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background-color: #F2EEE3;
}

.fig__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig figcaption {
  margin-top: 10px;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #5B6F6A;
}

.hero > .fig,
.part > .fig,
.part > .split {
  max-width: 860px;
}

.part > .fig.fig--inset {
  max-width: 560px;
}

.part > .fig {
  margin: 30px 0 0;
}

.part > .fig:last-child {
  margin-bottom: 0;
}

/* ---------- sections ---------- */
.part {
  margin-top: clamp(52px, 8vw, 88px);
}

.part > h2,
.doc > h2 {
  margin: 0 0 24px;
  padding: 2px 0 2px 16px;
  border-left: 6px solid #0F766E;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #16302B;
}

.qa__q {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: #16302B;
}

.qa__q:first-of-type {
  margin-top: 0;
}

.qa__q + p {
  margin-bottom: 0;
}

.lead-in {
  margin-bottom: 0;
}

/* blind spots - numbered, magazine style */
.spots {
  list-style: none;
  counter-reset: spot;
  margin: 28px 0;
  padding: 0;
}

.spots > li {
  counter-increment: spot;
  position: relative;
  margin: 0;
  padding: 0 0 22px 58px;
}

.spots > li::before {
  content: counter(spot, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0F766E;
}

.spots strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.spots p {
  margin: 0;
}

/* walkthrough */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0;
  padding: 6px 18px;
  background-color: #F2EEE3;
  border-radius: var(--radius);
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 20px 0 20px 46px;
  border-bottom: 1px solid var(--rule);
}

.steps > li:last-child {
  border-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0F766E;
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 32px;
  text-align: center;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.steps p {
  margin: 0;
}

/* split block: figure + Q&A card */
.split {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.split .fig {
  margin: 0;
}

.qa-card {
  padding: 22px 22px 24px;
  background-color: #F2EEE3;
  border-radius: var(--radius);
  color: #16302B;
}

.qa-card .qa__q {
  margin-top: 0;
}

.qa-card p {
  margin: 0;
}

/* plain, unboxed list */
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list > li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 26px;
}

.plain-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 3px;
  background-color: #0F766E;
}

/* ---------- calls to action: outline ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #0F766E;
  border-radius: var(--radius);
  background-color: transparent;
  color: #0F766E;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta::after {
  content: "\2192";
  font-family: var(--display);
  transition: transform 0.2s ease;
}

.story a.cta:hover,
.story button.cta:hover {
  background-color: #0F766E;
  color: #FFFFFF;
}

.cta:hover::after {
  transform: translateX(3px);
}

.cta--plain::after {
  content: none;
}

.cta-block {
  display: grid;
  gap: 18px;
  align-items: center;
  max-width: 860px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 22px 20px;
  background-color: #F2EEE3;
  border-radius: var(--radius);
  color: #16302B;
}

.cta-block__text {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
}

.cta-block .cta {
  width: 100%;
}

.closing {
  margin-top: clamp(52px, 8vw, 88px);
  max-width: 680px;
}

.closing + .cta-block {
  margin-top: 0;
}

/* ---------- legal / about documents ---------- */
.doc {
  max-width: 860px;
  padding-bottom: 8px;
}

.doc > h1 {
  margin-bottom: 16px;
}

.version-line {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: #5B6F6A;
}

.doc .summary {
  font-size: 1.1875rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.doc > h2 {
  margin-top: 44px;
}

.doc ul:not(.plain-list),
.doc ol {
  padding-left: 1.25rem;
  margin: 0 0 1.15em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc .principles {
  list-style: none;
  counter-reset: pr;
  padding: 0;
  margin: 24px 0;
}

.principles > li {
  counter-increment: pr;
  position: relative;
  padding: 0 0 16px 52px;
  margin: 0;
}

.principles > li::before {
  content: counter(pr, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #0F766E;
}

.story .doc a {
  color: #0F766E;
}

.story .doc a:hover {
  color: #16302B;
}

/* ---------- diagnostic check (offer page) ---------- */
.quiz {
  max-width: 760px;
  margin-top: 8px;
  padding: 22px 18px 26px;
  background-color: #F2EEE3;
  border-radius: var(--radius);
  color: #16302B;
}

.quiz__count {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  color: #5B6F6A;
}

.quiz__progress {
  height: 6px;
  overflow: hidden;
  background-color: rgba(22, 48, 43, 0.14);
  border-radius: 3px;
}

.quiz__bar {
  display: block;
  height: 100%;
  width: 0;
  background-color: #0F766E;
  transition: width 0.3s ease;
}

.quiz__step[hidden],
.quiz__result[hidden],
.quiz__back[hidden],
.quiz__meta[hidden] {
  display: none;
}

.quiz__q {
  margin: 22px 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #16302B;
}

.quiz__q:focus {
  outline: none;
}

.quiz__options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background-color: #FFFDF7;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: #16302B;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quiz__opt::before {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid #0F766E;
  border-radius: 4px;
  background-color: #FFFFFF;
  transition: background-color 0.2s ease;
}

.quiz__opt:hover {
  border-color: #0F766E;
}

.quiz__opt[aria-checked="true"] {
  border-color: #0F766E;
}

.quiz__opt[aria-checked="true"]::before {
  background-color: #0F766E;
  box-shadow: inset 0 0 0 4px #FFFFFF;
}

.quiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.quiz__back,
.quiz__restart {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: #16302B;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
}

.quiz__back:hover {
  color: #0F766E;
}

.quiz__rh {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.3;
  color: #16302B;
}

.quiz__rh:focus {
  outline: none;
}

.quiz__summary {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.quiz__summary li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.quiz__summary li:last-child {
  border-bottom: 0;
}

.quiz__sum-q {
  display: block;
  font-family: var(--display);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5B6F6A;
}

.quiz__sum-a {
  display: block;
  font-weight: 600;
}

.quiz__sum-n {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.55;
}

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

/* ---------- footer ---------- */
.base {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  background-color: #FFFDF7;
  color: #16302B;
}

.base__owner {
  max-width: 860px;
}

.base__owner p {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #16302B;
}

.base__foot-links {
  max-width: 860px;
  margin: 18px 0 14px;
}

.base__foot-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story .base__foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: #16302B;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.55);
  text-underline-offset: 4px;
}

.story .base__foot-links a:hover {
  color: #0F766E;
}

.publisher-note {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5B6F6A;
}

/* ---------- 480+ ---------- */
@media (min-width: 480px) {
  .masthead__brand {
    font-size: 1.3125rem;
  }

  .steps {
    padding: 8px 24px;
  }

  .quiz {
    padding: 26px 24px 30px;
  }

  .cta-block {
    padding: 26px 26px;
  }

  .cta-block .cta {
    width: auto;
    justify-self: start;
  }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  .story .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .masthead {
    padding-top: 28px;
  }

  .article {
    padding-top: 12px;
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 32px;
    align-items: start;
  }

  .qa-card {
    padding: 26px 28px 28px;
  }

  .part > .fig.fig--inset {
    margin-left: auto;
  }

  .cta-block {
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 30px 32px;
  }

  .cta-block .cta {
    justify-self: end;
    max-width: 320px;
  }

  .spots > li {
    padding-left: 66px;
  }

  .spots > li::before {
    font-size: 1.75rem;
  }

  .quiz__options {
    gap: 12px;
  }
}

/* ---------- 1024+: sidebar masthead ---------- */
@media (min-width: 1024px) {
  .shell__side {
    flex: 0 0 auto;
    width: 26%;
    border-right: 1px solid var(--rule);
  }

  .shell__main {
    flex: 0 0 auto;
    width: 74%;
    padding-left: clamp(36px, 4.5vw, 64px);
  }

  .masthead {
    position: sticky;
    top: 0;
    max-height: 100vh;
    margin: 0;
    padding: 48px 28px 40px 0;
    border-bottom: 0;
    overflow-y: auto;
  }

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

  .masthead__row {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .masthead__toggle {
    display: none;
  }

  .masthead__nav.collapse:not(.show) {
    display: block;
  }

  .masthead__nav ul {
    margin-top: 28px;
  }

  .article,
  .doc {
    padding-top: 48px;
  }

  .part > h2,
  .doc > h2 {
    padding-left: 20px;
  }

  .base {
    padding-top: 40px;
  }
}

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

  .story * {
    transition: none !important;
  }
}
