/* Minimal, industry-standard reset */
/* Box sizing and border-box for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
* {
  margin: 0;
}

/* Improve text rendering and base line-height */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Media elements: block and responsive by default */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* Headings and paragraphs: prevent weird overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Create a root stacking context (safe for portals/modals) */
#root,
#__next {
  isolation: isolate;
}

:root {
  --purple-lt: rgb(124, 140, 253);
  --yellow: rgb(253, 251, 122);
  --purple: rgb(94, 23, 235);
  --gray-wm-lt: rgb(255, 248, 239);
  --text-dk: rgb(54, 45, 100);
  --text-lt: rgb(255, 252, 239);

  --font-display: "Coustard", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-serif: "Ancizar Serif", Georgia, serif;
  --grid-row-full: 100%;
  --container-max: 1200px;
  --size-icon-md: 60px;
  --vspace-lg-elem: 2rem; /* vertical space used on layout and primary elements */
   --vspace-inline-elem: 1.5rem;
  --hspace-lg-elem: auto; /* horizontal space used on layout and primary elements */
}

body {
  color: var(--text-dk);
  background: var(--purple);
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}
p {
  font-family: var(--font-serif);
}

.container {
  display: block;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--vspace-lg-elem);
  text-align: center;
  width: 100%;
}

.container p {
    margin-bottom: var(--vspace-lg-elem);
}

/* Page structure */
main {
  display: grid;
  grid-template-rows: repeat(3, auto);
}

main .hero,
main .map,
main .about {
    display: block;
    width: var(--grid-row-full);
}



.hero {
  background: var(--purple-lt);
}
.art {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  margin: var(--vspace-lg-elem) var(--hspace-lg-elem);
}
.map {
  background: var(--yellow);
}
.about {
  background: var(--purple);
}

/* Centered inner content block */
.content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  }

.map .art {
    margin-bottom: var(--vspace-lg-elem);
    display: flex;
}
.map h2, .about h2 {
    font-family: var(--font-sans);
    color: var(--text-dk);
    font-size: 2rem;
    text-align: left;
    font-weight: 800;
    font-style: italic;
    margin-bottom: var(--vspace-inline-elem);
    line-height: 1.35em;
}
.map p, .about p {
    font-family: var(--font-serif);
    color: var(--text-dk);
    font-size: 1.8rem;
    text-align: left;
    line-height: 1.5em;
}
.map p a {
    font-weight: bold;
    text-decoration: underline;
}
.map .btn {
    background-color: var(--purple);
    color: var(--yellow);
}
.map p em, .about p em {
    font-style: normal;
    font-weight: normal;
    font-size: 1.5em;
}

.map .actions .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 124px;
    max-width: 124px;
    align-content: space-around;
    margin: var(--vspace-lg-elem);
}

.about p, .about h2 {
    color: var(--text-lt);
}

.about h2 {
  margin-top: 2rem;
    margin-left: 0rem;
}



.about p {
    font-weight: 700;
}

/* Map section: responsive 2-col layout */
@media (min-width: 900px){
  .map > .container{ 
    display: grid; 
    grid-template-columns: minmax(260px,1fr) minmax(300px,1fr); 
    gap: 1.5rem; 
    align-items: start;
    padding-inline: 0;
  }
  .about > .container {
    display: block;
    padding-inline: var(--vspace-lg-elem);
    padding-block: var(--vspace-lg-elem);
  }

  .about h2 {
    margin-left: 4rem;
}

  .map > .container > .content {
    padding: 3rem;
    }
  
  .map > .container > img.art{ grid-column: 1; }
  .map > .container > :not(img){ grid-column: 2; }
  .map > .container > h2,
  .map > .container > p{ max-width: 60ch; justify-self: start; text-align: left; }
}

@media (min-width: calc(var(--container-max)*1.3)){
    main .map .container {
        max-width: calc(var(--container-max)*1.3);
    }
}

/* Shared link baseline */
a {
  text-decoration: none;
  color: inherit;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Cooperative action row */
.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 530px;
    margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: var(--gray-wm-lt);
  color: var(--text-dk);
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--purple);
  color: var(--yellow);
}

.icons {
  display: inline-flex;
  inline-size: var(--size-icon-md);
  block-size: var(--size-icon-md);
  justify-content: center;
  align-items: center;
}
.icons img {
  inline-size: 100%;
  block-size: auto;
}
.ig {
    display: inline-flex;
    inline-size: var(--size-icon-md);
    block-size: var(--size-icon-md);
    justify-content: center;
    align-items: center;
}

.icons:hover img {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .content {
    padding: 48px 24px;
  }
}

.hero p {
  font-family: var(--font-display);
  color: white;
  font-size: 2rem;
  text-align: left;
}

p.credit {
  text-align: right;
  margin-right: 4rem;
}

p.accent {
  font-family: var(--font-sans);
  color: var(--yellow);
  font-size: 1.8rem;
  font-weight: bold;
  font-style: italic;
  text-align: center;
  margin: 2rem auto;
}

a.btn, a.icons {
    margin-inline: auto;
}
footer, .footer {
    display: block;
    position: relative;
    bottom: 0;
    width: 100%;
    height: 20px;
    background-color: rgb(0,0,0);
}

.footer-inner {
    display: block;
    position: relative;
    bottom: 0;
    width: 100%;
    height: auto;
    background-color: rgb(0,0,0);
}

.footer-inner p {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.3rem;
    color: var(--text-lt);
}
    