/* ===========================
   General Markets — Stylesheet
   =========================== */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-base: #EBEBEF;
  --color-base-2: #DCE0E6;
  --color-contrast: #1C2930;
  --color-contrast-2: #37505d;
  --color-contrast-3: #96A5B2;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: "Inter", sans-serif;
  --font-body: "Jost", sans-serif;
  --font-size-small: 1rem;
  --font-size-medium: 1.2rem;
  --font-size-large: clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 0.833), 2rem);
  --font-size-x-large: clamp(2rem, 2rem + ((1vw - 0.2rem) * 1.083), 2.65rem);
  --font-size-xx-large: clamp(2.65rem, 2.65rem + ((1vw - 0.2rem) * 1.417), 3.5rem);

  /* Spacing */
  --space-10: 1rem;
  --space-20: min(1.5rem, 2vw);
  --space-30: min(2.5rem, 3vw);
  --space-40: min(4rem, 5vw);
  --space-50: min(6.5rem, 8vw);
  --space-60: min(10.5rem, 13vw);

  /* Layout */
  --content-width: 620px;
  --wide-width: 1280px;
}

/* --- Fonts --- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 900;
  font-display: fallback;
  src: url('fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2');
  font-stretch: normal;
}

@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 100 900;
  font-display: fallback;
  src: url('fonts/Jost-VariableFont_wght.woff2') format('woff2');
}

@font-face {
  font-family: Jost;
  font-style: italic;
  font-weight: 100 900;
  font-display: fallback;
  src: url('fonts/Jost-Italic-VariableFont_wght.woff2') format('woff2');
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-base-2);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  font-weight: 400;
  line-height: 1.55;
}

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

a {
  color: var(--color-contrast);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-contrast);
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 { font-size: var(--font-size-xx-large); line-height: 1.15; }
h2 { font-size: var(--font-size-x-large); }
h3 { font-size: var(--font-size-large); }

/* --- Layout --- */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-50);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 5px;
  top: 5px;
  width: auto;
  height: auto;
  background: #eee;
  color: #444;
  padding: 15px 23px;
  z-index: 100000;
  text-decoration: none;
  font-size: 1em;
}

/* --- Header --- */
.site-header {
  padding-top: 2rem;
}

.site-header img {
  margin: 0 auto;
}

/* --- Intro Section --- */
.intro {
  padding: 2rem 0;
}

.intro p {
  margin-bottom: 1.2rem;
}

/* --- Store Sections --- */
.stores {
  padding: 0 0 2.5rem;
}

.store {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-50) var(--space-60);
  margin-bottom: var(--space-40);
}

.store__text {
  flex: 0 0 40%;
}

.store__image {
  flex: 0 0 50%;
}

.store__image img {
  border-radius: var(--space-20);
}

.store--reversed {
  flex-direction: row-reverse;
}

.store h2 {
  margin-bottom: 0.5rem;
}

.store h2 a {
  text-decoration: none;
}

.store h2 a:hover {
  text-decoration: underline;
}

.store p {
  margin-bottom: 1rem;
}

/* --- Checkmark List --- */
.checkmark-list {
  list-style-type: "\2713";
  padding-left: var(--space-10);
  line-height: 1.75;
}

.checkmark-list li {
  padding-inline-start: 1ch;
}

.checkmark-list sub {
  font-size: 0.75em;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-contrast);
  color: var(--color-base);
  padding: var(--space-60);
  text-align: center;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: var(--font-size-x-large);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: var(--space-10);
}

.footer__name {
  margin-top: var(--space-10);
}

.footer__title {
  color: var(--color-contrast-3);
  font-size: var(--font-size-small);
  font-weight: 300;
}

.footer__copyright {
  margin-top: var(--space-10);
}

/* --- Responsive --- */
@media (max-width: 781px) {
  .store {
    flex-direction: column;
  }

  .store__text,
  .store__image {
    flex: 1 1 100%;
  }

  .store__image {
    order: -1;
  }
}
