:root {
  --background: rgb(246, 248, 249);
  --side-pad: clamp(20px, 5vw, 76px);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10233b;
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 1720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 128px;
  padding: 52px 0 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.site-address {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.brand {
  color: #111214;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand span {
  color: #71767a;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-address {
  color: #6c7175;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.025em;
  transition: color 180ms ease;
}

.site-address:hover,
.site-address:focus-visible {
  color: #111214;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.error-shell {
  min-height: 100svh;
}

.error-main {
  display: flex;
  max-width: 680px;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 10vh, 120px) 0;
}

.error-code {
  margin: 0 0 16px;
  color: #6c7175;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: #111214;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.error-copy {
  max-width: 38ch;
  margin: 24px 0 34px;
  color: #6c7175;
  font-size: 1rem;
  line-height: 1.55;
}

.error-link {
  align-self: flex-start;
  padding-bottom: 5px;
  border-bottom: 1px solid #111214;
  color: #111214;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.error-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.error-link:hover span,
.error-link:focus-visible span {
  transform: translateX(4px);
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(34px, 6vh, 72px) 0 64px;
}

.trip-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(15, 39, 67, 0.1);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(34, 48, 65, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.trip-card:hover {
  box-shadow: 0 28px 62px rgba(34, 48, 65, 0.15);
  transform: translateY(-5px);
}

.trip-card:focus-visible {
  outline: 4px solid #0f2743;
  outline-offset: 4px;
}

.italy {
  background: linear-gradient(145deg, #dcebe1 0 32%, #f8f9f8 32% 68%, #f5dedf 68% 100%);
  color: #173a2d;
}

.slovenia {
  background: linear-gradient(145deg, #f8f9fb 0 32%, #dce9f4 32% 68%, #f5dddf 68% 100%);
  color: #10466e;
}

.france {
  background: linear-gradient(145deg, #dceaf7 0 32%, #f8f9fb 32% 68%, #f8e2e1 68% 100%);
  color: #064b8d;
}

.prague {
  background:
    conic-gradient(from 58deg at 0 50%, #dce9f5 0deg 64deg, transparent 64deg 360deg),
    linear-gradient(145deg, #f8f9fb 0 50%, #f5dddf 50% 100%);
  color: #11457e;
}

.card-topline {
  display: flex;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
}

.flag {
  font-size: 2rem;
  filter: saturate(0.9);
}

.status {
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  opacity: 0.7;
  white-space: nowrap;
  text-transform: uppercase;
}

.lock-icon {
  font-size: 1.18rem;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.72;
}

.card-dates {
  margin: 54px 0 12px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  white-space: nowrap;
}

.card-copy {
  max-width: 30ch;
  margin: 20px 0 36px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  opacity: 0.76;
}

.redacted {
  display: flex;
  align-items: center;
  gap: 8px;
  filter: blur(4px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.redacted span {
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.redacted-date {
  min-height: 14px;
  margin: 54px 0 12px;
}

.redacted-date span:first-child {
  width: 78px;
  height: 8px;
}

.redacted-date span:last-child {
  width: 38px;
  height: 8px;
}

.locked-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(23, 38, 58, 0.07));
  pointer-events: none;
}

.locked-card > * {
  position: relative;
  z-index: 1;
}

.open-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 750;
}

.open-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.trip-card:hover .open-link span {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .site-header {
    min-height: 94px;
    padding: 34px 0 26px;
  }

  .brand {
    font-size: 17px;
  }

  .site-address {
    font-size: 12px;
  }

  .trip-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .trip-card {
    min-height: 390px;
  }

  .error-main {
    padding: 64px 0;
  }

}

@media (max-width: 460px) {
  .site-address {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
