/* ========================================
   FONT DECLARATIONS
   ======================================== */
@font-face {
  font-family: 'PP Neue Montreal Book';
  src: url('PPNeueMontreal-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Medium';
  src: url('PPNeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Bold';
  src: url('PPNeueMontreal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal Mono';
  src: url('PPNeueMontrealMono-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Editorial New Ultralight';
  src: url('PPEditorialNew-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Editorial New';
  src: url('PPEditorialNew-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('PPNeueMontreal-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary-color: #666666;
  --secondary-color: #484848;
  --accent-color: #323232;
  --light: #8e8e8e;
  --card-w: 55vw;
  --card-h: 37vh;
}

/* ========================================
   BASE STYLES (MOBILE FIRST)
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  background-color: #F5F5F5;
  margin: 2rem;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

p {
  color: var(--primary-color);
  font-family: 'PP Neue Montreal Mono', monospace;
  font-size: 1rem;
  line-height: 160%;
  letter-spacing: 0.03rem;
  margin: 0 0 2rem 0;
}

h1 {
  color: #7e7e7e;
  font-family: 'PP Editorial New Ultralight', sans-serif;
  font-weight: 100;
  font-size: 2.25rem;
  margin: 7rem 0 1rem 0;
}

h2 {
  color: #7e7e7e;
  font-family: 'PP Editorial New Ultralight', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.03rem;
  margin: 1rem 0;
}

i {
  font-family: 'PP Editorial New Ultralight', sans-serif;
  font-style: italic;
  letter-spacing: 0.03rem;
  color: var(--primary-color);
  font-weight: 100;
}

/* ========================================
   ABOUT GRID (TEXT + PHOTO)
   ======================================== */
.about-grid {
  display: block;
  margin: 2rem 0;
}

.about-text {
  margin-bottom: 2rem;
}

.about-image {
  display: none;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* ========================================
   POLAROID CONTAINER (DECK + CAPTION)
   ======================================== */
.polaroid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

/* ========================================
   DECK CONTAINER
   ======================================== */
.deck {
  position: relative;
  width: 85vw;
  height: 50vh;
  touch-action: none;
}

/* ========================================
   CAPTION AREA
   ======================================== */
.caption-area {
  font-family: 'PP Neue Montreal Mono', monospace;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-align: center;
  min-height: 1.5rem;
  letter-spacing: 0.02rem;
  place-items: center;
  width: 50%;
}

/* ========================================
   CARDS (FOR IMAGES)
   ======================================== */
.card {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  top: 50%;
  left: 50%;
  border-radius: 4px;
  cursor: grab;
  will-change: transform;
  transform: translate(-50%, -50%) rotate(var(--idle-rot, 3deg));
  transition: transform 0.25s ease;
  overflow: hidden;
}

.card.top:active {
  cursor: grabbing;
}

/* ========================================
   IMAGE STYLES
   ======================================== */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ========================================
   DESKTOP VIEW (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  :root {
    --card-w: 320px;
    --card-h: 380px;
  }

  body {
    margin: 5rem 5rem 0 5rem;
  }

  h1 {
    font-size: 2.5rem;
    margin: 3rem 0;
    width: 60%;
  }

  h2 {
    font-size: 2.1rem;
    margin: 0rem 0 1rem 0;
  }

  p {
    margin: 0 0 2.5rem 0;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 4rem;
    align-items: start;
    margin: 3rem 0;
    width: 100%;
  }

  .about-text {
    margin-bottom: 0;
    width: 100%;
  }

  .about-image {
    display: flex;
    justify-content: flex-end;
  }

  .about-image img {
    width: 400px;
    height: 450px;
  }

  .deck {
    width: 420px;
    height: 480px;
    margin: 0 auto;
  }

  .card {
    box-shadow: 0 3px 2px rgba(43, 43, 43, 0.15);
  }

  .caption-area {
    font-size: 0.9rem;
  }
}
