* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

:root {
    --bodyColor: radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.12), transparent 60%),
                 radial-gradient(100% 50% at 120% 10%, rgba(238, 212, 99, 0.14), transparent 70%),
                 radial-gradient(120% 50% at 10% 80%, rgba(125, 248, 207, 0.1), transparent 70%),
                 radial-gradient(120% 80% at 90% 90%, rgba(121, 112, 245, 0.1), transparent 70%),
                 linear-gradient(160deg, #0a0c12 0%, #0b0e16 45%, #090c12 100%);
    --fontColor: Whitesmoke;
    --sideColor: rgb(12, 12, 12);
    --aboutPanel:  radial-gradient(120% 100% at 10% 20%, rgba(124,240,201,0.08), transparent),
                radial-gradient(90% 80% at 90% 0%, rgba(140,182,255,0.12), transparent),
                #0f1115;
    --footer: var(--sideColor);
    --postColor: #131212b0;
    --borderColor: rgb(70, 70, 70);
    --accent-1: rgb(150, 150, 150);
    --accent-2: #70d6ff;
    --accent-3: #ffb247;
    --postBodyPadding: 1rem 2rem;
}

body {
    background: var(--bodyColor);
    color: var(--fontColor);
    font-family: "Oxanium", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 250px minmax(0, calc(100vw - 250px));
    grid-template-areas:
    "sidebar main"
    "sidebar footer"; 
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--accent-2);
}

/* /////////////////// Sidebar /////////////////// */

.sideBar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sideColor);
}

.site-name {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
}

.link {
    text-decoration: none;
    margin: 0 1rem 1rem;
}

.link,
.about-trigger {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    display: block;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    justify-self: center;
}

.about-trigger {
    margin-top: auto;
    margin-bottom: 2rem;
    background: none;
    border: none;
}

.link:hover,
.link:focus-visible,
.about-trigger:hover,
.about-trigger:focus-visible {
    color: var(--accent-3);
    background-color: rgba(145, 145, 145, 0.199);
    border-radius: 15px;
    cursor: pointer;
}

.link i{
    margin-right: .5rem;
}

/* /////////////////// Main Content //////////////// */

.feature {
  max-width: 50%;
  margin: 3rem auto 3rem;
  padding: 2.5rem;
  background: var(--postColor);
  border: 1px solid black;
  border-radius: 20px;
  line-height: 1.75rem;
  overflow: hidden;
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-title h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0 0 0.35rem;
}

.poster-frame {
  display: flex;
  float: right;
  width: 35%;
  margin-left: clamp(1rem, 3vw, 2.5rem);
  background-color: whitesmoke;
  padding: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 5;
}

.poster-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  overflow: hidden;
}

.body-copy {
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  color: #e9edfb;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  text-decoration: underline;
}

.body-copy p {
  margin: 0 0 1.05rem;
  text-align: justify;
}

.inlinePicture {
  display: flex;
  width: 35%;
  margin: auto;
  margin-top: 2rem;
  background-color: whitesmoke;
  padding: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1.25;
}

.inlinePicture img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: top;
  object-fit: cover;
  border-radius: 15px;
}


/* ///////////////////// About Me ///////////////////////// */

.about-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 90vw);
    padding: 32px 28px;
    background: radial-gradient(120% 100% at 10% 20%, rgba(124,240,201,0.08), transparent),
                radial-gradient(90% 80% at 90% 0%, rgba(140,182,255,0.12), transparent),
                #0f1115;;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.about-panel.open {
  transform: translateX(0);
}

.about-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.panel-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo-container {
  width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  margin-bottom: 2rem;
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 3px solid black;
  border-radius: 5px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  text-decoration: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: inherit;
  background: black;
  border: none;
  border-radius: 15px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}


.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0.96;
}

/* //////////////// Footer //////////////// */

footer {
  height: 8vw;
  width: 100%;
  background: var(--footer);
  grid-area: footer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
}

footer i {
  color: red;
}

@media (max-width: 900px) {

  body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main"
      "footer";
  }

  .sideBar {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.75rem;
    overflow-x: auto;
    z-index: 20;
  }

  .site-name {
    margin: 0;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .link,
  .about-trigger {
    display: none;
  }

  .feature {
    max-width: 100%;
    margin: 1rem auto 2rem;
    padding: 1.25rem;
    background: transparent 100%;
    border: none;
  }

  .poster-frame {
    float: none;
    width: min(320px, 100%);
    margin: 1rem auto 1.25rem;
  }

  .inlinePicture {
    width: min(320px, 100%);
  }

  .body-copy {
    font-size: 1rem;
    letter-spacing: 0.06rem;
  }

  .body-copy p {
    text-align: left;
  }

  footer {
    height: auto;
    padding: 1.25rem 0;
  }
}

/* ---------------- Extra small phones ---------------- */
@media (max-width: 520px) {
  .page-title h1 {
    font-size: 1.8rem;
  }

  .sideBar {
    padding: 0.6rem;
    gap: 0.15rem;
  }

  .link i {
    margin-right: 0.35rem;
  }
}
