/* ===========================
   Font Face Declarations
   =========================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "KuchenHollow";
  src: url("assets/fonts/KuchenHollow.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "incise";
  src: url("assets/fonts/incise.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ===========================
   Root & Reset
   =========================== */

html {
  font-size: 12.96px;
  -webkit-text-size-adjust: none;
}

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #fff;
  color: #000;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  cursor: url("assets/cursor.png"), auto !important;
}

a:active {
  opacity: 0.7;
}

img {
  border: 0;
  padding: 0;
}

i, em {
  font-style: italic;
}

b, strong {
  font-weight: bolder;
}

/* ===========================
   Page Layout
   =========================== */

.page-wrapper {
  width: 100%;
  min-height: 100vh;
}

.page-content {
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.85);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.3;
  padding: 5rem;
}

/* ===========================
   Grid System
   =========================== */

.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.grid-col-left,
.grid-col-right {
  width: calc(50% - 1rem);
}

/* ===========================
   Bio Text (small element)
   =========================== */

.page-content small {
  display: inline-block;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.79);
  line-height: 1.2;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* ===========================
   Links
   =========================== */

.page-content a {
  padding-bottom: 0.1em;
  border-bottom: 0em solid rgba(127, 127, 127, 0.2);
  text-decoration: none;
  color: inherit;
}

.page-content small a {
  color: rgb(0, 0, 0);
  border-bottom-width: 0em;
}

/* ===========================
   Portrait + SVG Decoration
   =========================== */

.portrait-wrapper {
  position: relative;
  text-align: center;
}

.portrait {
  display: block;
  width: 59%;
  height: auto;
  margin: 0 auto;
}

.marker-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 999;
}

/* Position the SVG decorations relative to the portrait */
.decoration-group {
  /* Will be positioned via JS or manual offset */
}

.orange-line {
  stroke: rgb(255, 157, 11);
  stroke-width: 3.6;
}

.yellow-square {
  fill: #FBD400;
}

/* CSS-based decoration fallback (more reliable than SVG positioning) */
.portrait-wrapper::before {
  content: "";
  position: absolute;
  left: 15%;
  top: 3%;
  width: 46px;
  height: 46px;
  background: #FBD400;
  z-index: 10;
}

.portrait-wrapper::after {
  content: "";
  position: absolute;
  left: 17%;
  top: 0;
  bottom: 0;
  width: 3.6px;
  background: rgb(255, 157, 11);
  z-index: 9;
}

/* Hide the inline SVG since we're using CSS pseudo-elements */
.marker-overlay {
  display: none;
}

/* ===========================
   Responsive / Mobile
   =========================== */

@media (max-width: 1023px) {
  .page-content {
    padding: 2rem;
  }

  .grid-row {
    flex-direction: column;
    gap: 0;
  }

  .grid-col-left,
  .grid-col-right {
    width: 100%;
  }

  .grid-col-right {
    margin-bottom: 2rem;
  }

  .portrait {
    width: 100%;
  }

}

@media (max-width: 899px) {
  html {
    font-size: calc(4.937px + 0.8914vw);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 1.92vw;
  }
}

/* ===========================
   Selection
   =========================== */

::selection {
  background: rgba(251, 212, 0, 0.3);
}
