:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #6c584c;
  --text-soft: #8b7769;
  --gold: #c89d5d;
  --gold-deep: #b38443;
  --line: rgba(108, 88, 76, 0.12);
  --shadow: 0 10px 30px rgba(92, 72, 54, 0.08);
  --shadow-hover: 0 18px 40px rgba(92, 72, 54, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

img,
a {
  -webkit-user-drag: none;
}

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

.page-shell {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 360px);
  align-items: center;
  gap: 28px;
  margin: 0 0 30px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5.2vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-logo-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-logo {
  width: min(100%, 340px);
  height: auto;
}

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

.app-card {
  position: relative;
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 157, 93, 0.45);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #faf6f1, #f2ebe3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 260ms ease;
}

.card-link:hover .card-media img,
.card-link:focus-visible .card-media img {
  transform: scale(1.08);
}

.card-body {
  padding: 16px 16px 18px;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(200, 157, 93, 0.12);
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-link h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.card-link p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.site-footer {
  margin-top: 28px;
  padding-top: 10px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.site-footer a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-logo-wrap {
    order: 1;
    justify-content: center;
  }

  .hero-copy h1 {
    text-align: center;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 9.6vw, 3.2rem);
  }

  .hero-logo {
    width: min(100%, 250px);
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-body {
    padding: 14px 14px 16px;
  }
}
