@font-face {
  font-family: "Supermercado One";
  src: url("resources/fonts/Supermercado_One/SupermercadoOne-Regular.ttf")
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Mitr";
  src: url("resources/fonts/Mitr/Mitr-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Mitr";
  src: url("resources/fonts/Mitr/Mitr-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mitr";
  src: url("resources/fonts/Mitr/Mitr-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0a0670;
  --body: #16151d;
  --purple: #652561;
  --teal: #43a9a0;
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 4px 8px rgba(45, 38, 56, 0.2);
  --content-width: 440px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f1ef;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--body);
  font-family: "Mitr", system-ui, sans-serif;
  background: url("resources/materials/1.jpg") center top / cover repeat-y;
}

a {
  color: inherit;
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--content-width));
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  inset: 0 -34px auto;
  z-index: -1;
  height: 386px;
  content: "";
  background: url("resources/materials/4.jpg") center top / cover no-repeat;
  border-bottom-right-radius: 50% 80px;
  border-bottom-left-radius: 50% 80px;
  box-shadow: 0 8px 12px rgba(44, 37, 39, 0.24);
}

.hero {
  padding: 28px var(--gutter) 12px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Supermercado One", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  margin: 15px auto 0;
  color: #12111d;
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.24;
}

.intro-card {
  width: calc(100% - 48px);
  margin: 1px auto 0;
  padding: 21px 22px 31px;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(134, 125, 128, 0.24);
  border-radius: 17px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(1px);
}

.intro-card p {
  margin: 0 0 11px;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.42;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.intro-card a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.intro-strong {
  padding-top: 2px;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.42 !important;
}

.divider {
  width: 190px;
  margin: 15px auto 23px;
}

.divider img {
  width: 100%;
}

.story-links {
  display: grid;
  gap: 26px;
  width: calc(100% - 48px);
  margin: 0 auto;
}

.story-card {
  display: block;
  overflow: hidden;
  color: var(--purple);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.975 / 1;
  object-fit: cover;
}

.story-card span {
  display: block;
  min-height: 31px;
  padding: 5px 8px 7px;
  font-size: 0.81rem;
  font-weight: 500;
  line-height: 1.35;
}

.contact {
  margin-top: 60px;
  padding: 20px 18px 18px;
  color: white;
  text-align: center;
  background: var(--teal);
  border-radius: 17px 17px 0 0;
}

.contact p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 360px) {
  :root {
    --gutter: 18px;
  }

  .intro-card,
  .story-links {
    width: calc(100% - 34px);
  }

  .intro-card {
    padding-inline: 16px;
  }
}

@media (min-width: 700px) {
  .page-shell::before {
    height: 386px;
  }
}
