/* Landing page only. The presentation theme remains in custom.scss. */
@font-face {
  font-family: Arimo;
  src: url("fonts/Arimo.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --slate: #2D3E50;
  --blue: #0072BC;
  --muted: #566574;
  --rule: #D8DEE5;
  --paper: #F5F7F9;
}

* { box-sizing: border-box; }
html { background: #fff; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate);
  font-family: Arial, Arimo, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.landing { width: min(1120px, calc(100% - 96px)); margin: 0 auto; }
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: 16px; line-height: 1; }
.wordmark-fgv { color: var(--blue); font-weight: 700; font-size: 31px; letter-spacing: -1px; }
.wordmark-epge { border-left: 1px solid var(--rule); padding-left: 16px; font-size: 23px; letter-spacing: 1px; }
.header-label { color: var(--muted); font-size: 14px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 36px 0 32px; }
.program-label { margin: 22px 0 0; color: var(--blue); font-size: 26px; line-height: 1.3; font-weight: 400; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 6.5vw, 80px); line-height: 1.06; font-weight: 600; letter-spacing: -3px; }
h1 span { color: var(--blue); }
.event-details { min-width: 205px; padding: 7px 0 7px 34px; border-left: 2px solid var(--blue); display: flex; flex-direction: column; }
.event-day { font-size: 72px; line-height: 1; font-weight: 400; letter-spacing: -3px; }
.event-month { margin-top: 10px; font-size: 16px; }
.event-location { margin-top: 6px; color: var(--muted); font-size: 14px; }

.presentations { padding: 0 0 28px; scroll-margin-top: 24px; }
/* Botafogo photo under a slate wash, darkest where the text sits. The image
   ships with the General deck; the path is relative to this stylesheet. */
.featured-card {
  position: relative;
  min-height: 256px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px 32px;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 4px 4px;
  background:
    linear-gradient(90deg, rgba(45, 62, 80, 0.95) 0%, rgba(45, 62, 80, 0.8) 40%, rgba(45, 62, 80, 0.12) 100%),
    url("../General/images/praia-de-botafogo.jpg") center 50% / cover no-repeat,
    var(--slate);
  color: #fff;
  text-decoration: none;
}
.featured-card h2 { margin: 0 0 6px; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.5px; }
.featured-card p { margin: 0; color: #E0E8EF; }
.photo-credit { position: absolute; top: 14px; right: 18px; color: rgba(255, 255, 255, 0.85); font-size: 11px; letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

.area-presentations { margin-top: 26px; }
.area-presentations > h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.presentation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.presentation-card {
  padding: 30px 22px 34px 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-content: start;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  border-radius: 0 0 4px 4px;
  color: var(--slate);
  text-decoration: none;
}
.presentation-card h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.4px; }
.presentation-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.available { border-top-color: var(--blue); background: #fff; transition: background-color 150ms ease, border-color 150ms ease; }
.available:hover { background: #F0F7FC; border-color: var(--blue); }
.featured-card:focus-visible, .available:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

/* The whole card is the link; the arrow is only a cue. */
.card-arrow {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--blue);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.card-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.available:hover .card-arrow { transform: translate(2px, -2px); border-color: var(--blue); background: var(--blue); color: #fff; }
.featured-card .card-arrow { width: 48px; height: 48px; border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.featured-card .card-arrow svg { width: 18px; height: 18px; }
.featured-card:hover .card-arrow { transform: translate(2px, -2px); border-color: #fff; background: #fff; color: var(--slate); }

.pending { padding-top: 32px; border: 1px dashed #B9C4CF; background: #fff; }
.pending .card-status { font-size: 14px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding: 16px 0 20px; color: var(--muted); font-size: 12px; }
.site-footer span[aria-hidden] { padding: 0 5px; }
.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); padding: 12px 16px; background: var(--slate); color: #fff; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Desktop spacing, with a tighter layout for shorter windows. */
@media (min-width: 801px) {
  .site-header { min-height: 76px; }
  .hero { padding: 28px 0 30px; }
  .program-label { margin-top: 18px; }
  .featured-card { min-height: 216px; padding: 28px 36px 30px; }
  .area-presentations { margin-top: 24px; }
  .area-presentations > h2 { margin-bottom: 8px; }
  .presentation-grid { gap: 20px; }
  .presentation-card { padding: 24px 22px 26px 25px; }
  .presentations { padding-bottom: 24px; }
  .site-footer { padding: 12px 0 14px; }
}

@media (min-width: 801px) and (max-height: 800px) {
  .site-header { min-height: 64px; }
  .hero { gap: 28px; padding: 14px 0; }
  .program-label { margin-top: 14px; }
  .event-details {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    padding: 6px 0 6px 24px;
  }
  .event-day { grid-row: 1 / 3; align-self: center; }
  .event-month { margin-top: 0; align-self: end; }
  .event-location { margin-top: 2px; align-self: start; }
  .featured-card { min-height: 208px; padding: 28px 36px 30px; }
  .area-presentations { margin-top: 20px; }
  .area-presentations > h2 { margin-bottom: 8px; }
  .presentation-grid { gap: 20px; }
  .presentation-card { padding: 16px 22px 18px 25px; }
  .presentations { padding-bottom: 20px; }
  .site-footer { padding: 14px 0 16px; }
}

@media (max-width: 800px) {
  .landing { width: calc(100% - 48px); }
  .hero { gap: 28px; padding: 48px 0; }
  h1 { letter-spacing: -2px; }
  .event-details { min-width: 170px; padding-left: 24px; }
  .event-day { font-size: 60px; }
  .featured-card { padding: 28px 24px 28px; }
  .presentation-grid { gap: 14px; }
  .presentation-card { padding: 20px 18px 22px 20px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 82px; gap: 16px; }
  .wordmark { gap: 12px; }
  .wordmark-fgv { font-size: 26px; }
  .wordmark-epge { font-size: 19px; padding-left: 12px; }
  .header-label { max-width: 112px; text-align: right; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 38px 0; }
  .program-label { margin-top: 18px; font-size: 23px; }
  .event-details { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 0 0 0 16px; min-width: 0; }
  .event-day { grid-row: 1 / 3; font-size: 48px; align-self: center; letter-spacing: -1px; }
  .event-month { margin-top: 0; align-self: end; font-size: 14px; }
  .event-location { margin-top: 2px; font-size: 13px; }
  .featured-card {
    min-height: 290px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    background:
      linear-gradient(180deg, rgba(45, 62, 80, 0.05) 0%, rgba(45, 62, 80, 0.25) 24%, rgba(45, 62, 80, 0.9) 44%, rgba(45, 62, 80, 0.97) 100%),
      url("../General/images/praia-de-botafogo.jpg") -300px -175px / auto 520px no-repeat,
      var(--slate);
  }
  .area-presentations { margin-top: 28px; }
  .presentation-grid { grid-template-columns: 1fr; gap: 16px; }
  .presentation-card { padding: 20px 20px 22px; }
  .pending { padding-top: 22px; }
  .presentations { padding-bottom: 36px; }
  .site-footer { flex-wrap: wrap; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .featured-card, .available, .card-arrow { transition: none; }
}
