:root {
  --primary: hsl(187, 85%, 60%);
  --link-hover: hsl(7, 94%, 75%);
  --brand-blue: #44b7e2;
  --brand-pink: hsl(358, 68%, 69%);
}

* {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 2em;
}

body {
  font-family: Roboto;
  background-color: hsl(306, 12%, 84%);
}

a {
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

main {
  color: white;
  padding: 50px;
  max-width: 1200px;
  margin: auto;
}

header {
  margin-bottom: 4rem;
  text-align: center;
}

.logo {
  font-family: "Fugaz One";
  font-size: 1.5em;
  color: hsl(358, 68%, 69%);
}

header h2 {
  margin-top: 0;
  font-weight: 100;
}

header svg {
  width: 1em;
  fill: currentColor;
  position: relative;
  top: 2px;
  margin: 0 5px;
  display: inline-block;
}

@media screen and (min-width: 600px) {
  header {
    grid-template-columns: 50% 1fr;
  }

  .showcase {
    grid-column: 2;
    grid-row: 1/5;
  }

  .intro,
  .info,
  .author {
    grid-column: 1;
  }
}

@media screen and (min-width: 900px) {
  header {
    grid-template-columns: 60% 1fr;
  }
}

.showcase {
  z-index: 99;
  max-width: min(330px, 80vw);
  margin: auto;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.25em;
}

p {
  margin: 0 0 0.25em;
  line-height: 1.5;
}

p.small {
  font-size: 0.875rem;
  opacity: 0.75;
}

h1,
h2,
h3 {
  font-family: "Roboto Condensed";
}

h1 sup {
  font-weight: 300;
  font-size: 0.5em;
}

h2 {
  margin-top: 4em;
  margin-bottom: 0.25em;
}

h1 a,
h2 a,
h3 a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
}

h1 a:before,
h2 a:before,
h3 a:before {
  content: "⚓";
  position: absolute;
  transform: translate(-100px, -5px);
  width: 1em;
  height: 1em;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

h2 + p,
h2 + p + p {
  font-style: italic;
  margin-bottom: 1em;
}

h2 sup {
  font-weight: 300;
  font-size: 0.75em;
  margin-left: 0.5em;
  font-style: italic;
  opacity: 0.8;
}

hr {
  border: none;
  background: white;
  height: 1px;
  opacity: 0.25;
  margin: 1em -1em;
}

mark {
  background: #006065;
  color: white;
  font-style: italic;
  font-weight: bold;
  padding-inline: 0.25em;
  border-radius: 3px;
}

.back-to-top {
  font-weight: bold;
  position: fixed;
  bottom: 1em;
  right: 1em;
  padding: 0.5em 1em;
  border-radius: 5em;
  background: var(--primary);
  color: hsl(192, 87%, 15%);
  text-decoration: none;
  box-shadow: 0 7px 13px -5px currentColor;
}

.subtitle {
  display: block;
  font-size: 2rem;
  margin-top: 0.5rem;
  color: var(--brand-blue);
}

.presents {
  color: var(--brand-blue);
  display: inline-block;
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.landing h1 {
  font-family: "Fugaz One", sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--brand-pink);
}

.landing .subtitle {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--brand-pink);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--link-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
  text-align: center;
}

.modal h2 {
  color: var(--brand-pink);
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-family: "Fugaz One", sans-serif;
}

.modal p {
  color: var(--brand-blue);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal button {
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal button:hover {
  transform: translateY(-2px);
}

.primary-cta {
  background: var(--brand-pink);
  color: white;
  border: 2px solid var(--brand-pink);
}

.secondary-cta {
  background: transparent;
  border: 2px solid var(--brand-pink);
  color: var(--brand-pink);
}

.primary-cta:hover,
.primary-cta:focus {
  background: var(--link-hover);
  border-color: var(--link-hover);
}

.secondary-cta:hover,
.secondary-cta:focus {
  border-color: var(--link-hover);
  color: var(--link-hover);
}
