@charset "utf-8";

:root {
  --case-red: #c00003;
  --case-ink: #1a1a1a;
  --case-muted: #5c5c5c;
  --case-line: #e6e2dc;
  --case-wash: #f7f5f2;
  --case-accent: #0070c0;
}

.case-page {
  color: var(--case-ink);
  background: #fff;
  font-family: inherit;
}

.case-page .case-lead,
.case-page .case-grid,
.case-page .case-detail {
  color: var(--case-ink);
}

.case-page > h2 {
  color: #fff;
  background: var(--case-red);
  text-align: center;
  padding: 1.5em 1em;
  margin: 0;
  line-height: 1.5;
  font-weight: bold;
}

.case-lead {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5em 1.25em 1em;
  text-align: center;
}

.case-lead p {
  margin: 0;
  color: var(--case-muted);
  line-height: 1.9;
  font-size: 1.05em;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1em 1.25em 3em;
}

@media (min-width: 800px) {
  .case-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    padding-top: 1.5em;
  }
}

.case-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--case-line);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.case-tile:hover,
.case-tile:focus-visible {
  transform: translateY(-4px);
  border-color: #d8d2c8;
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.1);
  outline: none;
}

.case-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, #2a2a2a 0%, #4a4a4a 55%, #1f1f1f 100%);
  overflow: hidden;
}

.case-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.case-tile:hover .case-tile__media img,
.case-tile:focus-visible .case-tile__media img {
  transform: scale(1.03);
}

.case-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--case-wash);
}

.case-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-tile__tags li {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--case-red);
  background: #fff;
  border: 1px solid #efd0d1;
  padding: 0.2em 0.65em;
  line-height: 1.5;
}

.case-tile__company {
  margin: 0;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--case-muted);
  line-height: 1.5;
}

.case-tile__headline {
  margin: 0;
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1.45;
  color: var(--case-ink);
}

.case-tile__summary {
  margin: 0;
  flex: 1;
  font-size: 0.92em;
  line-height: 1.8;
  color: var(--case-muted);
}

.case-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.4rem;
  font-size: 0.9em;
  font-weight: 800;
  color: var(--case-red);
}

.case-tile__more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.case-tile:hover .case-tile__more::after,
.case-tile:focus-visible .case-tile__more::after {
  transform: translateX(3px);
}

/* ---- detail ---- */

.case-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25em 3em;
}

.case-detail__meta {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 2em 0 1.5em;
  padding: 1.25rem 1.35rem;
  border: 3px solid var(--case-ink);
  background: #fff;
}

@media (min-width: 640px) {
  .case-detail__meta {
    grid-template-columns: 1fr 1fr;
  }
}

.case-detail__meta dt {
  margin: 0;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--case-muted);
  letter-spacing: 0.04em;
}

.case-detail__meta dd {
  margin: 0.15em 0 0;
  font-weight: 700;
  line-height: 1.5;
}

.case-detail__pills {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .case-detail__pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-detail__pills li {
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: var(--case-accent);
  padding: 0.85em 0.6em;
  line-height: 1.4;
  font-size: 0.92em;
}

.case-detail__pills li:nth-child(2) {
  background: #e83528;
}

.case-detail__figure {
  margin: 0 0 2em;
}

.case-detail__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-detail__figure figcaption {
  margin-top: 0.5em;
  font-size: 0.82em;
  color: var(--case-muted);
  text-align: right;
}

.case-detail h3 {
  margin: 2em 0 0.85em;
  padding: 0.55em 0.85em;
  background: #333;
  color: #fff;
  font-size: 1.15em;
  line-height: 1.45;
}

.case-detail p,
.case-detail li {
  line-height: 1.9;
}

.case-detail ul {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}

.case-detail__menu {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .case-detail__menu {
    grid-template-columns: 1fr 1fr;
  }
}

.case-detail__menu img {
  width: 100%;
  height: auto;
  display: block;
}

.case-detail__band {
  margin: 0 0 1.25em;
  padding: 0.75em 1em;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: #999;
  line-height: 1.5;
}

.case-detail__caption {
  font-size: 0.85em;
  color: var(--case-muted);
  margin: 0 0 1.5em;
}

.case-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--case-line);
}

.case-detail__actions a {
  font-weight: 800;
  color: var(--case-red);
  text-decoration: none;
}

.case-detail__actions a:hover {
  text-decoration: underline;
}

.case-detail__ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.85em 1.4em;
  background: var(--case-red);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.case-detail__ext:hover {
  opacity: 0.9;
  text-decoration: none !important;
}
