@import url('https://fonts.googleapis.com/css2?family=Birthstone&family=Cabin:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html {
  font-size: 16px;
}

body {
  font-size: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

:root {
  --primary-color: #d88e39;
  --secondary-color: #eace9b;
  --theme-color: #651b15;
  --border-color: #6f6f6f;
  --theme-white: #ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--theme-color);
  color: var(--secondary-color);
  margin: 0;
  padding: 20px;
}

header {
  padding: 48px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.header-title {
  font-family: 'Cabin', sans-serif;
  text-align: center;
  letter-spacing: 4px;
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.header-subtitle {
  font-family: 'Birthstone', cursive;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}

.header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}

.header-info p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary-color);
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: center;
  border-bottom: 1px dashed var(--secondary-color);
}

header p i {
  margin-right: 0.5em;
}

.edition {
  position: relative;

  background-color: var(--primary-color);
  color: var(--theme-color);
  margin-bottom: 2rem;

  font-family: 'Birthstone', cursive;
  font-size: 1rem;

  text-align: center;

  border-radius: 1rem;
}

.edition::before,
.edition::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 0.5rem;
  width: 0.5rem;

  transform: translate(-50%, -50%);
  border-radius: 50%;

  background-color: var(--theme-color);
}

.edition::before {
  left: 1rem;
}

.edition::after {
  right: 1rem;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 500px, 100%), 1fr));
  flex-wrap: wrap;
  gap: 32px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--theme-color);
  padding: 16px 32px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  background-color: var(--theme-white);
  background: linear-gradient(0deg, rgba(248, 225, 223, 1) 0%, rgba(255, 255, 255, 1) 100%);
  background: radial-gradient(circle, rgba(248, 225, 223, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: start;
  min-height: 150px;
  gap: 16px;
}

.card-header-content {
  font-size: 1.5rem;
  font-family: 'Cabin', sans-serif;
  letter-spacing: 4px;
  margin: 32px 0;
}

.card-header-index {
  color: var(--theme-white);
  background-color: var(--theme-color);
  font-size: 1.5rem;
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  padding: 24px 12px;
  margin-right: 12px;
  text-align: center;
}

.card-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--theme-color);
}

.card-quick-link-desc {
  font-size: 0.875rem;
  margin: 1rem 0;
  font-weight: 400;
  color: var(--theme-color);
}

.card-location {
  font-size: 0.875rem;
  word-break: break-all;
  padding: 16px 0;
}

.card-location a {
  color: var(--theme-color);
  text-decoration: dashed underline;
  text-underline-offset: 4px;
}

.card-location i {
  margin-right: 4px;
}

.card-footer {
  padding: 16px 0;
}

.card-footer .rule-title {
  display: inline-block;
  color: var(--theme-white);
  background-color: var(--theme-color);
  padding: 6px 12px;
  font-size: 0.75rem;

  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-footer .rule-title i {
  margin-right: 4px;
}

.card-footer .rule-description {
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 3.5rem;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 250px, 100%), 1fr));
}

#heading-home-card {
  background: var(--secondary-color);
}
