:root {
  --bg: #f7f2ea;
  --surface: #fffdfc;
  --cream: #fff9e3;
  --yellow: #fff3c8;
  --violet: #e9e6ff;
  --violet-deep: #dcd9f4;
  --green: #dff2e5;
  --green-deep: #cae5d3;
  --blue: #ddf1f9;
  --blue-deep: #c5dee9;
  --ink: #161616;
  --muted: #6d685f;
  --line: #d9cfbe;
  --violet-line: #b9b5dd;
  --green-line: #9cbda6;
  --blue-line: #83b3c6;
  --link-blue: #1a73e8;
  --case-width: 1104px;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1200px;
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.case-body-yellow {
  background: #e8dfbf;
}

.case-body-violet {
  background: var(--violet-deep);
}

.case-body-green {
  background: var(--green-deep);
}

.case-body-blue {
  background: var(--blue-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

.case-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.case-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--case-width));
  justify-content: center;
  padding: 64px 168px 86px;
  background: var(--bg);
  border-bottom-right-radius: 32px;
  border-bottom-left-radius: 32px;
}

.back-link {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  padding: 8px 18px 8px 12px;
  background: #fdfcf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 18px;
  line-height: 28px;
}

.back-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.case-card,
.case-contact {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
}

.case-card {
  width: 100%;
  padding: 36px;
}

.case-card.theme-yellow {
  border-color: var(--line);
}

.case-card.theme-violet {
  border-color: var(--violet-line);
}

.case-card.theme-green {
  border-color: var(--green-line);
}

.case-card.theme-blue {
  border-color: var(--blue-line);
}

.case-card > * + * {
  margin-top: 46px;
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.theme-yellow .case-kicker {
  background: var(--yellow);
}

.theme-violet .case-kicker {
  background: var(--violet);
  border-color: var(--violet-line);
}

.theme-green .case-kicker {
  background: var(--green);
  border-color: var(--green-line);
}

.theme-blue .case-kicker {
  background: var(--blue);
  border-color: var(--blue-line);
}

.case-title {
  width: 974px;
  margin: 32px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 60px;
}

.case-title.compact {
  font-size: 46px;
  line-height: 50px;
}

.intro-box,
.callout {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.theme-yellow .intro-box,
.theme-yellow .callout {
  background: var(--cream);
}

.theme-violet .intro-box,
.theme-violet .callout {
  background: var(--violet);
  border-color: var(--violet-line);
}

.theme-green .intro-box,
.theme-green .callout {
  background: var(--green);
  border-color: var(--green-line);
}

.theme-blue .intro-box,
.theme-blue .callout {
  background: var(--blue);
  border-color: var(--blue-line);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.meta-box {
  min-height: 102px;
  padding: 16px 18px;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: var(--line);
}

.theme-yellow .meta-box {
  background: #f5edd3;
}

.theme-violet .meta-box {
  background: var(--violet-deep);
  color: var(--violet-line);
}

.theme-green .meta-box {
  background: var(--green-deep);
  color: var(--green-line);
}

.theme-blue .meta-box {
  background: var(--blue-deep);
  color: var(--blue-line);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.meta-value {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 10px;
  background: #fffdfc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.48px;
  line-height: 14px;
}

.note {
  color: var(--muted);
  font-size: 12px;
}

.section-block h2,
.intro-box h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

.theme-green .section-block h2,
.theme-green .intro-box h2,
.theme-blue .section-block h2,
.theme-blue .intro-box h2 {
  font-weight: 600;
}

.section-block p,
.intro-box p,
.callout p,
.bullet-list li {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.intro-box p + p {
  margin-top: 16px;
}

.bullet-list {
  width: 1000px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: flex;
  gap: 10px;
}

.bullet-list li + li {
  margin-top: 8px;
}

.bullet-list li::before {
  content: "—";
  width: 10px;
  flex: 0 0 10px;
  color: #948f88;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.theme-violet .bullet-list li::before {
  color: var(--violet-line);
}

.theme-green .bullet-list li::before,
.theme-blue .bullet-list li::before {
  color: #119b63;
}

.callout-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #fffdfc;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.media-row {
  display: grid;
  grid-template-columns: 417px 1fr;
  gap: 16px;
  align-items: start;
}

.media-row h2 {
  margin-bottom: 16px;
}

.case-image {
  width: 100%;
  display: block;
  border: 1px solid #ded9cf;
  border-radius: 12px;
}

.image-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.result-box {
  padding: 18px;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: var(--line);
}

.result-box strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 34px;
}

.result-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.single-result {
  width: 1030px;
  padding: 18px;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: var(--violet-line);
}

.single-result p {
  color: var(--ink);
}

.numbers-row {
  display: grid;
  grid-template-columns: 301px 1fr;
  gap: 32px;
  align-items: center;
}

.feed-row {
  display: grid;
  grid-template-columns: 455px 581px;
  gap: 16px;
  align-items: start;
}

.case-contact {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--case-width));
  justify-content: center;
  margin: 0;
  padding: 36px 168px;
  border: 0;
  border-radius: 0;
}

.case-contact.theme-yellow {
  background: #e8dfbf;
}

.case-contact.theme-violet {
  background: var(--violet-deep);
}

.case-contact.theme-green {
  background: var(--green-deep);
}

.case-contact.theme-blue {
  background: var(--blue-deep);
}

.case-contact h2 {
  margin: 0 0 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 68px;
  font-weight: 400;
  line-height: 64px;
}

.contact-links {
  display: flex;
  gap: 28px;
}

.contact-links a {
  display: flex;
  min-width: 258px;
  flex-direction: column;
  gap: 4px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  transition: color 180ms ease;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--link-blue);
  text-decoration-line: underline;
}

.contact-links span {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}
