@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");
@import url("./preflight.css");

:root {
  --primary: #f06400;
  --primary-a-100: rgba(240, 100, 0, 0.1);

  --neutral-0: #fff;
  --neutral-100: #fafafa;
  --neutral-200: #f6f5f4;
  --neutral-300: #e7e5e3;
  --neutral-400: #a89f9a;
  --neutral-500: #7b716a;
  --neutral-600: #58514c;
  --neutral-700: #292523;
  --neutral-800: #191715;
  --neutral-900: #0b0a09;

  /* COLORS */
  --text: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-highlight: var(--primary);

  --text-reverse: var(--neutral-0);

  --background: var(--neutral-200);
  --card-background: var(--neutral-0);
  --button-background: var(--neutral-900);

  --border: var(--neutral-300);

  /* FONTS */
  --font: "Geist", sans-serif;

  --font-100: 0.5rem;
  --line-height-100: calc(1 / 0.5);

  --font-200: 0.75rem;
  --line-height-200: calc(1 / 0.75);

  --font-300: 0.875rem;
  --line-height-300: calc(1.25 / 0.875);

  --font-400: 1rem;
  --line-height-400: calc(1.5 / 1);

  --font-500: 1.125rem;
  --line-height-500: calc(1.75 / 1.125);

  --font-550: 1.25rem;

  --font-600: 1.5rem;
  --line-height-600: calc(2 / 1.5);

  --font-650: 2.25rem;

  --font-700: 3rem;
  --line-height-700: 1;

  --weight-400: 400;
  --weight-500: 500;
  --weight-600: 600;
  --weight-650: 650;
  --weight-700: 700;

  /* CARDS */
  --card-radius: 1.5rem;
  --card-padding: 2.25rem;
  --card-gap: 2.25rem;
  --container-width: 67.5rem;
}

body {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 4rem 1.5rem;

  /* GLOBAL */
  font-family: var(--font);
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--text);
  background-color: var(--background);
}

.section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.container {
  width: 100%;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background-color: var(--card-background);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}

.title {
  font-size: var(--font-700);
  font-weight: var(--weight-700);
  line-height: var(--line-height-700);
  letter-spacing: -0.01em;
}

.card-title {
  font-size: var(--font-600);
  font-weight: var(--weight-700);
  line-height: var(--line-height-600);
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: var(--font-600);
  font-weight: var(--weight-400);
  line-height: var(--line-height-600);
  letter-spacing: -0.01em;
}

.paragraph {
  font-size: var(--font-400);
  font-weight: var(--weight-400);
  line-height: var(--line-height-400);
  letter-spacing: -0.01em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
}

.tag {
  font-size: var(--font-200);
  font-weight: var(--weight-600);
  line-height: var(--line-height-200);
  letter-spacing: -0.02em;
  border-radius: 0.3125rem;
  background-color: var(--primary-a-100);
  color: var(--text-highlight);
  padding: 0.3125rem 0.6875rem;
}

.button {
  background-color: var(--neutral-200);
  color: var(--neutral-0);

  letter-spacing: -0.005em;
  font-size: var(--font-400);
  font-weight: var(--weight-650);
  line-height: var(--line-height-400);
  padding: 0.6875rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease-out 0.2s;
}

.button .btn-text {
  display: flex;
  gap: 0.25rem;
  z-index: 1;
  position: relative;
}

.button img {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(0);
  transition: filter 0.35s ease-out 0.2s;
}

.button::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--neutral-900);
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.35s ease-in-out;
}

.button:not(.loading):hover::before {
  transform: translate(-50%, -50%) scale(0);
}

.button:not(.loading):hover {
  color: var(--text);
}

.button:not(.loading):hover img {
  filter: invert(1);
}

.button.large {
  font-size: var(--font-500);
  line-height: var(--line-height-500);
  letter-spacing: -0.005em;
  padding: 0.75rem 1.25rem;
}

.btn-loader {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.contact-form:has(.button.loading),
.button.loading {
  pointer-events: none;
}

.button.loading .btn-text {
  opacity: 0;
}

.button.loading .btn-loader {
  display: inline-block;
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-basis: 100%;
}

.info a {
  color: var(--text-highlight);
  text-decoration: underline;
  font-weight: var(--weight-600);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: -1rem;
}

.badge {
  flex-basis: 16.125rem;
  border-radius: var(--card-radius);
  background-color: var(--neutral-0);
  padding: var(--card-gap) 1rem;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.badge-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: var(--font-600);
  line-height: var(--line-height-600);
  font-weight: var(--weight-700);
  color: var(--text-highlight);
  letter-spacing: -0.01em;
}

.badge-subtitle {
  font-size: var(--font-400);
  line-height: var(--line-height-400);
  font-weight: var(--weight-600);
  color: var(--text);
  letter-spacing: -0.01em;
}

.badge-note {
  font-size: var(--font-200);
  line-height: var(--line-height-200);
  font-weight: var(--weight-500);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  text-align: center;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 1rem;
}

.list-item {
  display: flex;
  gap: 0.875rem;
}

.list-item::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--primary);
  border-radius: 100%;
  transform: translateY(0.5rem);
}

.articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.article {
  flex: 1 0 11.25rem;
  min-width: 11.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 50rem;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
}

label {
  display: block;
  width: 100%;
  height: 4rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--font-600);
  font-weight: var(--weight-400);
  line-height: var(--line-height-600);
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

input:focus + label,
textarea:focus + label,
input:not(:placeholder-shown) + label,
textarea:not(:placeholder-shown) + label {
  opacity: 0;
  transform: translateY(-5rem);
  pointer-events: none;
}

label span {
  font-size: var(--font-600);
  font-weight: var(--weight-400);
  line-height: var(--line-height-600);
  letter-spacing: -0.01em;
  color: var(--text-highlight);
}

.form-field {
  position: relative;
  width: 100%;
}

input,
textarea {
  width: 100%;
  min-height: 4rem;
  font-size: var(--font-600);
  font-weight: var(--weight-400);
  line-height: var(--line-height-600);
  color: var(--text);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  transition: border-bottom 0.3s ease-in-out;
}

textarea {
  padding-top: 1rem;
}

input:focus,
textarea:focus {
  border: none;
  outline: none;
  border-bottom: 1px solid var(--primary);
}

.status-overlay {
  background-color: rgba(246, 245, 244, 0.4);
  backdrop-filter: blur(1rem);
  gap: 1.25rem;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 50%;
  bottom: 0;
  left: 50%;
  right: 0;
  z-index: 10;
  width: calc(100% + var(--card-padding) * 2);
  height: calc(100% + var(--card-padding) * 2);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.status-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.status-overlay > .title,
.status-overlay > .subtitle {
  text-align: center;
  max-width: 50rem;
}
/* HERO */

.hero-banner {
  display: block;
  position: relative;
  margin-top: calc(-1 * var(--card-padding));
  left: 50%;
  transform: translate(-50%);
  width: calc(100% + var(--card-padding) * 2);
  max-width: unset;
  height: 16rem;
  object-fit: cover;
  z-index: 0;
  flex-basis: 100%;
}

.hero-author {
  --pfp-width: 22.9375rem;
  --pfp-offset: var(--pfp-width) / 3;

  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--card-gap);
  margin-top: calc(-1 * var(--pfp-offset) - var(--card-gap));
  z-index: 1;
  flex-basis: 100%;
}

.hero-author-pfp {
  width: var(--pfp-width);
  height: var(--pfp-width);
  aspect-ratio: 1 / 1;
  padding: 0.3125rem;
  background-color: var(--card-background);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-author-pfp-img {
  --border-width: 3px;
  padding: 0.25rem;
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  border: var(--border-width) solid var(--primary);
  border-radius: 100%;
}

.hero-author-info {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--pfp-offset) + var(--card-padding));
  padding-bottom: var(--card-padding);
  gap: 0.5rem;
  flex: 1 1 20rem;
}

.hero-author-info-connect {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
}

.hero-author-info-connect-socials {
  display: flex;
  gap: 0.75rem;
}

.social-media-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  width: 2.875rem;
  height: 2.875rem;
  background-color: var(--neutral-200);
}

.social-media-button img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

/* ACTIVITIES */

.activity-meta {
  flex-basis: 8rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.activity-meta-details {
  text-align: center;
  font-size: var(--font-300);
  line-height: var(--line-height-300);
  font-weight: var(--weight-600);
  letter-spacing: -0.02em;
}

.activity-meta-details strong {
  font-weight: var(--weight-600);
  color: var(--text-highlight);
}

.activity-main {
  flex: 1;
  flex-basis: 18rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-link {
  display: block;
  width: 8rem;
  height: 8rem;
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
}

.activity-link-img {
  width: 100%;
  height: 100%;
}

.activity-link-arrow {
  position: absolute;
  border-radius: 100%;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--text-highlight);
  top: 0.5625rem;
  right: 0.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-link-arrow-img {
  width: 1.25rem;
  height: 1.25rem;
}

/* CMC */
.coinmarketcap-currency-widget {
  flex: 1;
  min-height: 8.5rem;
  border-radius: var(--card-radius);
  background-color: var(--card-background);
}

.coinmarketcap-currency-widget br {
  display: none !important;
}

/* CMC CONTAINER */
.coinmarketcap-currency-widget > div {
  /* NORMALIZE */
  border: none !important;
  border-radius: var(--card-radius) !important;
  font-family: var(--font) !important;
  min-width: unset !important;

  /* STYLES */
  padding: 1.5rem;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

/* CMC FIRST ROW */
.coinmarketcap-currency-widget > div > div:first-of-type {
  /* NORMALIZE */
  padding: 0 !important;

  /* STYLES */
  gap: 0.75rem;
}

.coinmarketcap-currency-widget > div > div:nth-of-type(3) {
  /* NORMALIZE */
  padding: 0 !important;
  font-style: normal !important;
  clear: unset !important;
  border-top: none !important;

  /* STYLES */
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

/* CMC SECOND ROW */
.coinmarketcap-currency-widget > div > div:nth-of-type(2) {
  /* NORMALIZE */
  border-top: none !important;
  display: flex;
  flex-wrap: wrap;
}

.coinmarketcap-currency-widget > div > div:nth-of-type(2) > div {
  /* NORMALIZE */
  border-right: none !important;
  padding: 0 !important;
  float: unset !important;
  width: auto !important;
  text-align: left !important;

  /* STYLES */
  display: block;
  flex: 1 1 6rem;
  font-size: var(--font-200) !important;
  line-height: var(--line-height-200) !important;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.coinmarketcap-currency-widget > div > div:nth-of-type(2) > div::first-letter {
  text-transform: uppercase;
}

.coinmarketcap-currency-widget > div > div:nth-of-type(2) > div > span {
  font-size: var(--font-300) !important;
  line-height: var(--line-height-300) !important;
  font-weight: var(--weight-600);
  letter-spacing: -0.01em;
  display: block;
  text-transform: uppercase;
}

.coinmarketcap-currency-widget > div > div:nth-of-type(2) > div > span > span {
  font-size: var(--font-100) !important;
  line-height: var(--line-height-100);
  font-weight: var(--weight-600) !important;
  letter-spacing: -0.01em;
}

/* CMC COPYRIGHT */
.coinmarketcap-currency-widget > div > div:nth-of-type(3) > a {
  color: var(--text-highlight) !important;
  font-size: var(--font-200) !important;
  line-height: var(--line-height-200) !important;
  letter-spacing: -0.01em;
}

/* CMC ICON */
.coinmarketcap-currency-widget > div > div:first-of-type > div:first-of-type {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.375rem;
  overflow: hidden;
}

.coinmarketcap-currency-widget > div > div:first-of-type > div > img {
  width: 100% !important;
  height: 100% !important;
}

/* CMC TICKER & PRICE */
.coinmarketcap-currency-widget > div > div:first-of-type > div:nth-of-type(2) {
  flex: 1;
  width: auto;
  display: flex;
  flex-direction: column;
}

.coinmarketcap-currency-widget
  > div
  > div:first-of-type
  > div:nth-of-type(2)
  > span {
  font-size: var(--font-300) !important;
  line-height: var(--line-height-300) !important;
  font-weight: var(--weight-600);
  letter-spacing: -0.01em;
}

/* CMC TICKER */
.coinmarketcap-currency-widget
  > div
  > div:first-of-type
  > div:nth-of-type(2)
  a {
  color: var(--text) !important;
}

/* CMC PRICE */
.coinmarketcap-currency-widget
  > div
  > div:first-of-type
  > div:nth-of-type(2)
  > span
  > span:first-of-type {
  color: var(--text) !important;
  font-size: var(--font-300) !important;
  line-height: var(--line-height-300);
  font-weight: var(--weight-600) !important;
  letter-spacing: -0.01em;
}

.coinmarketcap-currency-widget
  > div
  > div:first-of-type
  > div:nth-of-type(2)
  > span
  > span:nth-of-type(2) {
  color: var(--text) !important;
  font-size: var(--font-100) !important;
  line-height: var(--line-height-100);
  font-weight: var(--weight-600) !important;
  letter-spacing: -0.01em;
}

.coinmarketcap-currency-widget
  > div
  > div:first-of-type
  > div:nth-of-type(2)
  > span
  > span:nth-of-type(3) {
  font-size: var(--font-300) !important;
  line-height: var(--line-height-300);
  font-weight: var(--weight-600) !important;
  letter-spacing: -0.01em;
}

@media screen and (max-width: 1024px) {
  body {
    padding-top: 1.5rem;
  }

  .coinmarketcap-currency-widget > div > div:nth-of-type(3) {
    top: unset;
    bottom: -0.5rem;
    transform: translateY(100%);
    left: 0;
    right: 0;
    margin: 0 auto;
  }
}

@media screen and (max-width: 960px) {
  .hero-author {
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .hero-author-info {
    flex: 0;
    padding: 0;
  }
}

@media screen and (max-width: 640px) {
  .badges {
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .badge {
    flex-basis: auto;
    order: 0;
  }

  .coinmarketcap-currency-widget {
    order: 1;
  }

  .hero-author-pfp {
    --pfp-width: 16rem;
  }

  .hero-banner {
    height: 12rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-author-pfp {
    margin-left: auto;
    margin-right: auto;
  }
  :root {
    --card-padding: 1rem;
    --card-gap: 1.5rem;
  }
  body {
    padding: 1rem;
  }
  .hero-author-info-connect {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .hero-author-info-connect {
    justify-content: center;
    align-items: center;
  }

  .title {
    text-align: center;
    font-size: var(--font-650);
  }
  .subtitle {
    text-align: center;
    font-size: var(--font-550);
  }
  .container,
  .tags {
    justify-content: center;
  }

  .hero-banner {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
  }

  .hero > .container {
    padding-top: calc(var(--card-padding) + 12rem);
  }
}
