:root {
  --navy: #11183D;
  --cream: #F7F1E8;
  --white: #FFFFFF;
  --linen: #FBF7F0;
  --border: rgba(247, 241, 232, 0.2);
  --shadow: 0 20px 60px rgba(2, 8, 32, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(17, 24, 61, 0.98), rgba(17, 24, 61, 0.92)),
    var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.market-page {
  display: grid;
  min-height: 100dvh;
  align-content: center;
  gap: clamp(38px, 8vw, 76px);
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px) 0;
  text-align: center;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  max-width: 154px;
  max-height: 42px;
  object-fit: contain;
}

.brand-logo[src] + .brand-text {
  display: none;
}

.brand-text {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.market-hero {
  display: grid;
  gap: clamp(20px, 4vw, 34px);
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.market-hero p {
  margin: 0;
  color: rgba(247, 241, 232, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.market-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(6px, 1vw, 10px);
}

.market-card {
  display: grid;
  min-height: clamp(148px, 20vw, 210px);
  place-items: center;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--navy);
  background: var(--cream);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.market-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.6vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.market-card:hover,
.market-card:focus-visible {
  color: var(--cream);
  background: #172255;
  box-shadow: 0 24px 72px rgba(2, 8, 32, 0.36);
  transform: translateY(-3px);
}

.market-card:focus-visible {
  outline: 3px solid rgba(247, 241, 232, 0.72);
  outline-offset: 5px;
}

@media (max-width: 680px) {
  .market-page {
    width: min(100% - 32px, 1040px);
    gap: 34px;
  }

  .market-options {
    grid-template-columns: 1fr;
  }

  .market-card {
    min-height: 128px;
    border-radius: 20px;
  }
}

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