:root {
  color-scheme: light;
  background: #f5f1e7;
  color: #293630;
  font-family: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
.portal { width: min(100% - 3rem, 72rem); margin: 0 auto; }
.portal-header { padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(1.75rem, 4vw, 3rem); text-align: center; }
.portal-header h1, .portal-copy h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.07;
}
.portal-header h1 { font-size: clamp(2.35rem, 5.5vw, 4.45rem); letter-spacing: -.045em; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.portal-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border-radius: .85rem;
  color: #fff9ed;
  text-decoration: none;
  background: #214b49;
  box-shadow: 0 .9rem 2.2rem #26363017;
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-card-atlas { background: #2f4031; }
.portal-card:focus-visible { outline: .2rem solid #26493f; outline-offset: .3rem; }
@media (hover: hover) {
  .portal-card:hover { transform: translateY(-.25rem); box-shadow: 0 1.2rem 2.5rem #26363030; }
  .portal-card:hover .portal-cta span { transform: translateX(.3rem); }
}
.portal-image { position: relative; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; }
.portal-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-card-livret .portal-image img { object-position: 50% 48%; }
.portal-card-atlas .portal-image {
  background: radial-gradient(ellipse at 62% 40%, #faf6e7, #d8e0d6 70%, #b7c6ba);
}
.portal-card-atlas .portal-image img { object-fit: contain; transform: scale(1.12); }
.portal-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem, 3.5vw, 2.6rem); }
.portal-copy h2 { font-size: clamp(1.7rem, 3.7vw, 3.25rem); letter-spacing: -.035em; }
.portal-copy p { margin: .8rem 0 1.6rem; max-width: 34ch; font-size: clamp(.95rem, 1.45vw, 1.1rem); line-height: 1.55; }
.portal-cta {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: .45rem .9rem;
  border: 1px solid #fff9ed94;
  border-radius: .3rem;
  font-size: .9rem;
  font-weight: 600;
}
.portal-cta span { transition: transform .18s ease; }
.portal-footer { padding: clamp(1.5rem, 4vw, 2.75rem) 0; text-align: center; }
.portal-footer a { color: #45544b; font-size: .85rem; text-underline-offset: .2em; }

@media (max-width: 42rem) {
  .portal { width: min(100% - 2rem, 30rem); }
  .portal-header { padding-top: 2.25rem; }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-card, .portal-cta span { transition: none; }
}
