/* Home page: the reference's editorial typography, amber accents and dark canvas. */
.home-page {
  --home-ink: #f5efdf;
  --home-muted: #c7bfb1;
  --home-accent: #edaf45;
  --home-background: #12110f;
  --home-panel: #1c1b17;
  --home-border: #807566;
  --home-gutter: clamp(20px, 5.8vw, 96px);
  color: var(--home-ink);
  background: var(--home-background);
}

.home-page :is(a, button) { scroll-margin-block: 12px; }

.home-page :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--home-ink);
  outline-offset: 5px;
}

.home-page .site-header {
  position: relative;
  z-index: 2;
  min-height: 68px;
  padding: 8px var(--home-gutter);
  gap: 24px;
  border-bottom: 6px double #253132;
  background: linear-gradient(#0e1519, rgb(14 21 25 / 92%));
}

.home-page .brand { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.home-page .brand-mark { width: 28px; height: 28px; background: transparent; border: 1px solid var(--home-border); border-radius: 50%; font-size: 1rem; }
.home-page .brand-name [lang="bn"] { color: var(--home-accent); font-size: 1.1rem; }
.home-page .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.home-page .site-header nav > a,
.home-page .text-button { display: inline-flex; align-items: center; min-height: 36px; color: var(--home-ink); font-size: .95rem; font-weight: 500; }
.home-page .site-header nav > a:hover,
.home-page .text-button:hover { text-decoration: underline; text-underline-offset: .3em; }
.home-page .page-shell { width: 100%; max-width: none; padding: 0; }
.home-page .messages { margin: 0; padding: 16px var(--home-gutter); }
.home-page .message { color: var(--home-ink); background: var(--home-panel); border-color: var(--home-border); }
.home-invitation-notice { padding: 16px var(--home-gutter); color: var(--home-accent); background: var(--home-panel); }
.home-page .trip-card > .shared-trip-label { margin-bottom: 8px; color: var(--home-accent); font-size: .85rem; }

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 40px;
  padding: 24px var(--home-gutter) 32px;
  background: linear-gradient(180deg, #172b32 0%, #324747 32%, #20241f 62%, #12110f 100%);
}

.home-hero-content { min-width: 0; }
.home-overview { min-width: 0; padding: 18px 12px 12px; background: var(--home-background); }
.home-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; color: var(--home-accent); font-size: .75rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.home-kicker::before { content: ""; flex: 0 0 36px; height: 1px; background: currentColor; }
.home-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-hero h1 em { color: var(--home-accent); font-weight: 400; }
.home-intro { max-width: 700px; margin: 12px 0 0; color: var(--home-ink); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.home-trip-dates { margin: 10px 0 0; color: var(--home-muted); font-size: 1rem; overflow-wrap: anywhere; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.home-page .button { min-height: 38px; border-radius: 4px; padding: 8px 16px; gap: 12px; text-align: center; font-size: .9rem; font-weight: 600; line-height: 1.5; }
.home-page .home-button,
.home-page .site-header nav > .home-button { color: #17130c; background: var(--home-accent); border: 1px solid var(--home-accent); }
.home-page .home-button:hover { background: #f6c166; border-color: #f6c166; }
.home-page .home-button-secondary { color: var(--home-ink); border: 1px solid var(--home-border); background: var(--home-background); }
.home-page .home-button-secondary:hover { background: #302b23; }
.home-journeys { max-width: 1600px; padding: 20px var(--home-gutter) 32px; margin-inline: auto; scroll-margin-top: 24px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.home-section-heading .home-kicker { margin-bottom: 8px; }
.home-section-heading h2 { margin: 0; font: 400 clamp(1.65rem, 2.2vw, 2rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.home-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 12px 0; margin: 0; border-block: 1px solid #514a40; }
.home-totals div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; min-width: 0; }
.home-totals dt { color: var(--home-muted); font-size: .95rem; overflow-wrap: anywhere; }
.home-totals dd { margin: 0; font: 400 1.65rem/1.2 Georgia, "Times New Roman", serif; }
.home-page .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-page .trip-card { display: flex; flex-direction: column; min-width: 0; min-height: 320px; padding: 18px; border: 1px solid #514a40; border-radius: 8px; background: var(--home-panel); box-shadow: none; overflow-wrap: anywhere; }
.home-page .trip-card-top { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.home-page .status-pill { color: var(--home-ink); background: #37372b; font-size: .7rem; letter-spacing: .06em; }
.home-page .monitoring { color: var(--home-muted); font-weight: 500; }
.home-page .trip-card h3 { margin: 10px 0 12px; font: 400 clamp(1.3rem, 1.7vw, 1.6rem)/1.2 Georgia, "Times New Roman", serif; }
.home-page .trip-card h3 a { display: inline-block; min-height: 32px; text-decoration: none; }
.home-page .trip-card h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.home-page .trip-card > p { color: var(--home-muted); font-size: 1rem; }
.home-page .facts { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.home-page .facts dt { color: var(--home-muted); font-size: .75rem; }
.home-page .facts dd { font-size: 1rem; font-weight: 500; }
.home-page .latest-update { flex-direction: column; gap: 8px; margin-top: auto; padding: 12px; font-size: .95rem; border-color: var(--home-accent); background: #2b2b23; }
.home-page .latest-update strong { font-weight: 550; }
.home-page .latest-update time { color: var(--home-muted); font-size: .9rem; }
.home-page .latest-update.empty { color: var(--home-muted); border-color: var(--home-border); background: #24241f; }
.home-trip-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-top: 8px; color: var(--home-accent); font-size: 1rem; text-decoration: none; }
.home-trip-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.home-page .empty-state { background: var(--home-panel); border-color: #514a40; box-shadow: none; padding: clamp(24px, 5vw, 64px); }
.home-page .empty-state h3 { margin: 0; font: 400 1.65rem/1.2 Georgia, "Times New Roman", serif; }
.home-page .empty-state p { max-width: 560px; margin: 20px auto 28px; color: var(--home-muted); }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--home-gutter); border-top: 1px solid #514a40; color: var(--home-muted); font-size: .85rem; }
.home-footer p { margin: 0; }
.home-footer [lang="bn"] { font-family: "Nirmala UI", "Bangla Sangam MN", system-ui, sans-serif; line-height: 1.5; letter-spacing: normal; }

@media (min-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 290px; gap: 32px; }
  .home-hero-content { padding-left: clamp(0px, 3.3vw, 54px); }
  .home-section-heading { max-width: 785px; }
}

@media (min-width: 1600px) {
  .home-page { --home-gutter: max(96px, calc((100vw - 1408px) / 2)); }
  .home-journeys { max-width: none; }
}

@media (max-width: 900px) {
  .home-page .site-header { position: relative; flex-wrap: wrap; align-items: flex-start; }
  .home-page .site-header nav { flex: 1 1 100%; justify-content: flex-start; gap: 8px 24px; }
  .home-page .site-header nav > .home-button { margin-left: auto; }
}

@media (max-width: 700px) {
  .home-page .trip-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page .trip-card { min-height: 0; }
  .home-page .latest-update { margin-top: 6px; }
}

@media (max-width: 480px) {
  .home-page .site-header { gap: 16px; padding-block: 16px; }
  .home-page .site-header nav { gap: 8px 20px; }
  .home-page .site-header nav > .home-button { margin-left: 0; }
  .home-kicker { font-size: .7rem; letter-spacing: .09em; gap: 12px; }
  .home-kicker::before { flex-basis: 24px; }
  .home-actions { align-items: stretch; flex-direction: column; }
  .home-totals { gap: 16px; }
  .home-totals dt { font-size: .75rem; }
  .home-page .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .facts > div:first-child { grid-column: 1 / -1; }
}

@media (forced-colors: active) {
  .home-page .button, .home-page .trip-card { border: 1px solid ButtonText; }
}
