*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F2F0EB;
  --ink: #1a1a18;
  --ink-soft: #4a4a46;
  --border: #d6d3cc;
  --hover-bg: #eceae4;
}

html, body {
  height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── Home page ──────────────────────────────── */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 4rem;
}

header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink);
}

/* ── Split nav ──────────────────────────────── */

.split {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.divider {
  width: 4rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 360px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.card:hover {
  background: var(--hover-bg);
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}

.card img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
}

.card span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  color: var(--ink);
}

.card span em {
  font-style: normal;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ── Ribbon ──────────────────────────────── */

/* No clipping box — the card's own overflow:hidden does the clipping.
   The ribbon is just a wide rotated bar anchored at the top-left. */
.ribbon {
  position: absolute;
  top: 50px;
  left: -60px;
  width: 260px;
  height: 24px;
  background: #85e820;
  color: #1a1a18;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 1;
}

/* ── Footer contact ──────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 2rem;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

footer a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

footer span {
  color: var(--border);
}

@media (max-width: 560px) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  footer span {
    display: none;
  }
}

/* ── Subpage ──────────────────────────────── */

.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 2.5rem;
}

.subpage img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.subpage h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.back:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 560px) {
  .split {
    flex-direction: column;
    align-items: center;
  }

  .divider {
    width: 60px;
    height: 1px;
    margin: 0.5rem 0;
    align-self: auto;
  }

  .card {
    width: 200px;
  }
}
