/* ==========================================================================
   Rizki Muhammad Fadhil - Portfolio Stylesheet
   Scrapbook & Graph-Paper Zine Direction (Reference-Matched)
   ========================================================================== */

@font-face {
  font-family: 'DynaPuff';
  src: url('assets/fonts/DynaPuff-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Bold-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light Theme: Yellow Primary (#F5C63C / #FFB32B) from ref-color.jpeg */
  --bg-paper: #FDF9EA;
  --bg-grid: rgba(196, 148, 44, 0.18);
  --surface-card: #FFFDF4;
  --cobalt: #F5C63C;
  --cobalt-deep: #8A5300;
  --cobalt-ink: #231B36;
  --hero-title-fill: #5344A9;
  --hero-title-stroke: #FDF9EA;
  --ink: #231B36;
  --ink-muted: #52456A;
  --coral: #D44A35;
  --coral-hover: #B83825;
  --coral-soft: #F47F6B;
  --plum: #7A5197;
  --berry: #BB5098;
  --amber: #FFB32B;
  --gold: #F5C63C;
  --sage-border: #5344A9;
  --sage-highlight: rgba(245, 198, 60, 0.36);
  --pill-bg: #FDF9EA;
  --pill-ink: #5344A9;
  --paper-cut-fill: rgba(255, 252, 236, 0.9);
  --border-subtle: rgba(138, 83, 0, 0.2);
  --shadow-paper: 0 12px 28px rgba(102, 70, 12, 0.14);

  --font-display: 'DynaPuff', 'Outfit', cursive, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1120px;
}

[data-theme="dark"] {
  /* Dark Theme: Purple Primary (#5344A9 / #7A5197) from ref-color.jpeg */
  --bg-paper: #161229;
  --bg-grid: rgba(187, 80, 152, 0.14);
  --surface-card: #211B3A;
  --cobalt: #5344A9;
  --cobalt-deep: #D2B8FF;
  --cobalt-ink: #FAF3E0;
  --hero-title-fill: #7A5197;
  --hero-title-stroke: #FAF3E0;
  --ink: #FAF3E0;
  --ink-muted: #D2C6E3;
  --coral: #F47F6B;
  --coral-hover: #FF9A88;
  --coral-soft: #BB5098;
  --plum: #7A5197;
  --berry: #BB5098;
  --amber: #FFB32B;
  --gold: #F5C63C;
  --sage-border: #FFB32B;
  --sage-highlight: rgba(122, 81, 151, 0.38);
  --pill-bg: #231C40;
  --pill-ink: #F5C63C;
  --paper-cut-fill: rgba(33, 27, 58, 0.85);
  --border-subtle: rgba(250, 243, 224, 0.16);
  --shadow-paper: 0 16px 36px rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-paper);
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a[href],
button {
  cursor: pointer;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cobalt);
  color: var(--cobalt-ink);
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--coral);
  transition: width 0.08s linear;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg-paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cobalt-deep);
  text-decoration: none;
}

.wordmark__dot {
  color: var(--coral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  background: color-mix(in srgb, var(--cobalt) 12%, transparent);
  color: var(--cobalt-deep);
}

.nav__link--cta {
  background: var(--coral);
  color: #FFFFFF;
}

.nav__link--cta:hover {
  background: var(--coral-hover);
  color: #FFFFFF;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-btn:hover,
.menu-btn:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.ico--sun {
  display: none;
}

[data-theme="dark"] .ico--sun {
  display: block;
}

[data-theme="dark"] .ico--moon {
  display: none;
}

.menu-btn {
  display: none;
}

.menu-btn .ico--close {
  display: none;
}

.menu-btn[aria-expanded="true"] .ico--open {
  display: none;
}

.menu-btn[aria-expanded="true"] .ico--close {
  display: block;
}

/* ==========================================================================
   Hero Painted Brush Scrapbook Card
   ========================================================================== */
.hero {
  padding: 28px 0 36px;
}

.scrap-stage {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding: 84px 48px 66px;
}

/* Rough painted chalk/brush blue rectangle */
.brush-card {
  position: absolute;
  inset: 22px 32px 14px;
  background-color: var(--cobalt);
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(10, 42, 74, 0.14) 0%, transparent 50%);
  filter: url(#brush-edge);
  box-shadow: var(--shadow-paper);
  transform: translateZ(0);
  z-index: 0;
}

.bunting {
  position: absolute;
  top: 0;
  width: 240px;
  height: 60px;
  z-index: 3;
  pointer-events: none;
}

.bunting--left {
  left: -10px;
}

.bunting--right {
  right: -10px;
}

.binder-clip {
  position: absolute;
  top: 4px;
  left: 38%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.binder-clip__wire {
  width: 28px;
  height: 16px;
  border: 3px solid #F5C63C;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.binder-clip__body {
  width: 66px;
  height: 28px;
  background: #FFB32B;
  border: 2px solid #231B36;
  border-radius: 3px;
}

.punch-holes {
  position: absolute;
  left: 44px;
  top: 52%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 78px;
  z-index: 2;
  pointer-events: none;
}

.punch-holes span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-paper);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}

/* Floating Stickers */
.sticker {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg));
  transition: transform 0.25s ease-out;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.sticker--planet {
  top: 26px;
  left: -18px;
  --rot: -10deg;
}

.sticker--nametag {
  top: 44px;
  right: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  --rot: 6deg;
}

.nametag-pill {
  display: inline-block;
  padding: 7px 20px;
  background: #FDF7E2;
  color: #C54430;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  border: 3px solid #FFB32B;
  border-radius: 999px;
}

.nametag-arrow {
  margin-top: 2px;
  margin-right: 12px;
}

.sticker--rolepill {
  bottom: 24px;
  left: 36px;
  --rot: -4deg;
}

.sticker--rolepill span {
  display: inline-block;
  padding: 8px 22px;
  background: #FDF7E2;
  color: #C54430;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  border: 3.5px solid #FFB32B;
  border-radius: 999px;
}

.sticker--character {
  bottom: 72px;
  right: 170px;
  --rot: 5deg;
}

.sticker--notepad {
  top: 132px;
  right: -22px;
  --rot: 18deg;
}

.sticker--cursor {
  bottom: 78px;
  left: 60%;
  --rot: -12deg;
}

.sticker--paperclip {
  bottom: -10px;
  right: 112px;
  --rot: -26deg;
}

.sticker--sparkle-a {
  top: 168px;
  left: 215px;
  --rot: 8deg;
}

.sticker--sparkle-b {
  top: 102px;
  left: 58%;
  --rot: -10deg;
}

/* Torn Paper-Cut Separator */
.paper-cut-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 6px 0 -8px;
  filter: drop-shadow(0 4px 6px rgba(20, 48, 72, 0.08));
}

.paper-cut-divider svg {
  width: 100%;
  height: 44px;
  display: block;
}

/* Center Stacked Chunky Title */
.scrap-stage__center {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7.6vw, 4.7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--hero-title-fill);
  /* White sticker cutout outline matching the reference */
  paint-order: stroke fill;
  -webkit-text-stroke: 10px var(--hero-title-stroke);
  text-shadow:
    0 5px 0 rgba(35, 27, 54, 0.25);
}

.hero-title__top,
.hero-title__bottom {
  display: block;
}

.hero-title__bottom {
  margin-top: -4px;
  transform: rotate(-2deg);
}

.hero-year {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.year-bracket {
  width: 6px;
  height: 38px;
  background: #F47F6B;
  position: relative;
}

.year-bracket::before,
.year-bracket::after {
  content: '';
  position: absolute;
  left: -3px;
  width: 12px;
  height: 6px;
  background: #F47F6B;
}

.year-bracket::before {
  top: 0;
}

.year-bracket::after {
  bottom: 0;
}

.year-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: #5344A9;
  -webkit-text-stroke: 3px #F5C63C;
  paint-order: stroke fill;
  letter-spacing: 0.04em;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--sage-border);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn--primary {
  background: #F9F7E4;
  color: var(--coral);
}

.btn--primary:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--coral);
  color: #FFFFFF;
  border-color: #F9F7E4;
}

.btn--secondary:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Middle Graph-Paper Scrapbook Spread
   ========================================================================== */
.section {
  padding: 36px 0 56px;
}

.zine-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  align-items: start;
}

.zine-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--cobalt-deep);
}

.zine-heading--spaced {
  margin-top: 28px;
}

/* Scalloped Postage Stamp Frame */
.stamp-wrap {
  position: relative;
  width: 220px;
  margin: 8px auto 18px;
}

.tape-tab {
  position: absolute;
  top: -8px;
  right: -12px;
  z-index: 4;
  padding: 4px 14px;
  background: #F4A27E;
  color: #1C221E;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transform: rotate(22deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.stamp-backing {
  position: absolute;
  inset: 10px -8px -6px 8px;
  background: var(--coral-soft);
  transform: rotate(-7deg);
  z-index: 0;
}

.stamp-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 220px;
  height: 260px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.stamp-scallop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 2px;
  background: var(--bg-paper);
}

.identity-block {
  margin-bottom: 24px;
}

.identity-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--coral);
}

.identity-role {
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.identity-school {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.identity-school .ico {
  color: var(--coral);
}

/* Contact List */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.18s ease;
}

.contact-list a:hover {
  color: var(--coral);
}

.contact-list .ico {
  color: var(--coral);
}

/* Right Main Area */
.about-wrap {
  margin-bottom: 30px;
}

.about-card {
  position: relative;
  padding: 22px 26px;
  color: var(--cobalt-ink);
  z-index: 1;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  filter: url(#brush-edge);
  transform: translateZ(0);
  z-index: -1;
}

.about-card p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.about-card p + p {
  margin-top: 10px;
}

.zine-subgrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

/* Education Timeline (Coral dots & line) */
.ref-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--coral);
  display: grid;
  gap: 16px;
}

.ref-timeline li {
  position: relative;
  display: grid;
  gap: 2px;
}

.ref-timeline__dot {
  position: absolute;
  left: -25px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.ref-timeline strong {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  background: var(--sage-highlight);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
}

.ref-timeline span {
  display: inline-block;
  width: fit-content;
  padding: 2px 6px;
  background: color-mix(in srgb, var(--bg-paper) 86%, transparent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Goals */
.goal-note {
  padding: 12px 14px;
  background: var(--sage-highlight);
  border-left: 4px solid var(--sage-border);
}

.goal-note p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.65;
}

/* Activity & Experience (Green highlights matching ref) */
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.activity-highlight {
  display: inline-block;
  padding: 2px 8px;
  background: var(--sage-highlight);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--ink);
}

.activity-list p {
  margin: 4px 0 0;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--bg-paper) 86%, transparent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Coral Hand-Drawn Line-Art Icons directly on Graph Paper */
.coral-icon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 14px;
}

.coral-icon-grid li,
.interest-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.coral-art {
  width: 52px;
  height: 52px;
  color: var(--coral);
  transition: transform 0.2s ease;
}

.coral-icon-grid li:hover .coral-art,
.interest-row li:hover .coral-art {
  transform: scale(1.08) rotate(-3deg);
}

.coral-icon-grid span,
.interest-row span {
  display: inline-block;
  padding: 3px 9px;
  background: var(--sage-highlight);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.interest-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
}

/* ==========================================================================
   Bottom Painted Cobalt Showcase Band
   ========================================================================== */
.showcase-band {
  position: relative;
  background-color: var(--cobalt);
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(10, 42, 74, 0.16) 0%, transparent 50%);
  color: var(--cobalt-ink);
  padding: 64px 0 72px;
  margin-top: 24px;
}

.showcase-brush-top {
  position: absolute;
  top: -16px;
  left: -2%;
  width: 104%;
  height: 32px;
  background: var(--cobalt);
  filter: url(#brush-edge);
  transform: translateZ(0);
}

.showcase-band__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.showcase-num {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--cobalt-ink);
  opacity: 0.88;
  margin-bottom: -6px;
}

.showcase-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brush-stroke-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 12px 42px;
}

.brush-smudge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: url(#brush-edge);
  z-index: 0;
}

.brush-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  color: #FFFFFF;
  text-shadow: 0 3px 0 rgba(180, 74, 46, 0.45);
}

.showcase-title__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.05em;
  color: var(--hero-title-fill);
  paint-order: stroke fill;
  -webkit-text-stroke: 8px var(--hero-title-stroke);
}

.pill-cloud {
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 780px;
}

.domain-pill {
  min-height: 46px;
  padding: 10px 22px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  border: 3.5px solid var(--sage-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.domain-pill.is-active {
  background: var(--coral);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.spotlight-panel {
  margin: 28px auto 0;
  max-width: 640px;
  background: var(--surface-card);
  color: var(--ink);
  border: 3px solid var(--sage-border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  box-shadow: var(--shadow-paper);
}

.spotlight-panel__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--coral);
}

.spotlight-panel__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer__bottom p {
  margin: 0;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--cobalt-deep);
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
}

.back-top:hover {
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .zine-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .zine-left {
    max-width: 420px;
    margin-inline: auto;
    text-align: center;
  }

  .contact-list a {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--bg-paper);
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-paper);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .scrap-stage {
    padding: 58px 20px 44px;
  }

  .brush-card {
    inset: 16px 8px 8px;
  }

  .punch-holes,
  .sticker {
    display: none;
  }

  .zine-subgrid {
    grid-template-columns: 1fr;
  }

  .coral-icon-grid,
  .interest-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 9999;
  will-change: clip-path;
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .sticker {
    transform: rotate(var(--rot, 0deg)) !important;
  }
}
