/* ==========================================================================
   PANNATHON Portfolio 2026 — Base Reset & 4-Way Reusable Primitives
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--editorial-ink);
  background-color: var(--ivory-canvas);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2.5px solid var(--swatch-cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Image 1: Editorial Art-Book Chapter Marker ("Part. 01" + Diagonal M/P)
   -------------------------------------------------------------------------- */
.chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.chapter-head__left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.chapter-head__part {
  font-family: var(--font-editorial);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--editorial-muted);
}

.chapter-head__num {
  font-family: var(--font-editorial);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--editorial-ink);
  letter-spacing: -0.04em;
}

.chapter-head__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chapter-head__serif {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--editorial-ink);
}

.chapter-head__sub {
  font-size: 0.82rem;
  color: var(--editorial-muted);
}

.chapter-head__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(30, 29, 24, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  user-select: none;
}

.chapter-badge__icon {
  font-size: 0.82rem;
  line-height: 1;
}

.chapter-badge--mint {
  background: linear-gradient(180deg, #F0FCFB 0%, #D9F5F2 100%);
  border: 1.5px solid var(--binder-mint-deep);
  color: #216066;
}

.chapter-badge--pink {
  background: linear-gradient(180deg, #FFF6FA 0%, #FFE4F0 100%);
  border: 1.5px solid var(--y2k-pink);
  color: var(--y2k-pink-deep);
}

.chapter-badge--butter {
  background: linear-gradient(180deg, #FFFCE6 0%, #FFF1AE 100%);
  border: 1.5px solid #E9CE68;
  color: #705514;
}

.chapter-badge--status {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4F8 100%);
  border: 1.5px solid var(--y2k-pink);
  color: var(--editorial-ink);
}

.chapter-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--swatch-emerald);
  box-shadow: 0 0 0 3px rgba(46, 192, 67, 0.22);
  flex-shrink: 0;
}

.editorial-swatch {
  display: inline-block;
  width: 44px;
  height: 16px;
  border-radius: 2px;
}

.editorial-swatch--cobalt { background-color: var(--swatch-cobalt); }
.editorial-swatch--emerald { background-color: var(--swatch-emerald); }
.editorial-swatch--ochre { background-color: var(--swatch-ochre); }
.editorial-swatch--pink { background-color: var(--y2k-pink-deep); }

/* --------------------------------------------------------------------------
   Image 3: Y2K Retro Pink Browser Window Chrome (_ □ X)
   -------------------------------------------------------------------------- */
.retro-win {
  background-color: var(--white);
  border: 2px solid var(--y2k-pink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
}

.retro-win__bar {
  background: linear-gradient(90deg, #FFB2D3 0%, #FFA0C8 100%);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.retro-win__url {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  padding: 2px 10px;
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--y2k-pink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-win__controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.retro-win__ctrl {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--y2k-pink-deep);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Image 4: Y2K Cyber-Zine Glossy 3D Pill Bars
   -------------------------------------------------------------------------- */
.glossy-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--font-editorial);
  font-weight: 700;
  color: var(--editorial-ink);
  box-shadow: var(--shadow-glossy);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: transform var(--dur-fast) var(--ease-out);
}

.glossy-pill:hover { transform: translateY(-2px) scale(1.03); }
.glossy-pill--pink { background: linear-gradient(180deg, var(--zine-pink-top) 0%, var(--zine-pink-bot) 100%); }
.glossy-pill--mint { background: linear-gradient(180deg, var(--zine-mint-top) 0%, var(--zine-mint-bot) 100%); }
.glossy-pill--chrome { background: linear-gradient(180deg, var(--zine-chrome-top) 0%, var(--zine-chrome-bot) 100%); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

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

.btn--ink {
  background-color: var(--editorial-ink);
  color: var(--white);
}

.btn--ink:hover { background-color: #35332B; }

.btn--cobalt {
  background-color: var(--swatch-cobalt);
  color: var(--white);
}

.btn--cobalt:hover { background-color: #166DA3; }

.btn--pink {
  background-color: var(--y2k-pink-deep);
  color: var(--white);
}

.btn--pink:hover { background-color: #DF5A94; }

.btn--outline {
  border: 1.5px solid var(--editorial-ink);
  color: var(--editorial-ink);
  background-color: transparent;
}

.btn--outline:hover { background-color: var(--editorial-ink); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
