:root {
  color-scheme: light;
  --ink: #161713;
  --muted: #686b63;
  --line: #d9ddd2;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --accent: #9a2f24;
  --accent-dark: #5c1d18;
  --forest: #264139;
  --gold: #b99a52;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(38, 65, 57, 0.08), transparent 36%),
    linear-gradient(180deg, #fbfbf8 0%, var(--paper) 100%);
  color: var(--ink);
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--line);
}

.header img {
  width: min(260px, 48vw);
  height: auto;
}

.header div {
  text-align: right;
}

.eyebrow,
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header h1,
.intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding: 52px 0 34px;
}

.intro h2 {
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.94;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.demo-card {
  min-height: 355px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.demo-card:hover,
.demo-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(154, 47, 36, 0.4);
  box-shadow: 0 18px 42px rgba(22, 23, 19, 0.12);
  outline: none;
}

.demo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--forest);
}

.demo-card span,
.demo-card strong,
.demo-card small {
  margin-inline: 18px;
}

.demo-card span {
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-card strong {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.15;
}

.demo-card small {
  margin-top: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header div {
    text-align: left;
  }

  .intro {
    padding: 38px 0 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
