/* ============================================
   PUNPUN-INSPIRED DARK PERSONAL SITE
   Mood: melancholic, surreal, techy, quiet
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-elev: #181818;
  --ink: #e8e8e6;
  --ink-dim: #9a9a96;
  --ink-faint: #4a4a47;
  --accent: #c43030;        /* Punpun's red eye */
  --accent-soft: #8b1e1e;
  --line: #1f1f1f;
  --grid: rgba(255,255,255,0.03);
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
  position: relative;
}

/* subtle dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(196, 48, 48, 0.08);
}
.cursor-dot.hover { background: var(--accent); }

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
nav .logo {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
nav .logo::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav ul a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
nav ul a:hover, nav ul a.active {
  color: var(--ink);
}
nav ul a.active::before {
  content: '> ';
  color: var(--accent);
}
nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
nav ul a:hover::after { width: 100%; }

@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  nav ul { gap: 16px; }
  nav ul a { font-size: 10px; letter-spacing: 0.1em; }
}

/* ============ LAYOUT ============ */
main {
  position: relative;
  z-index: 2;
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  main { padding: 100px 20px 60px; }
}

section { margin-bottom: 120px; }

/* ============ HERO ============ */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero .greeting {
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 128px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}
.hero .tagline {
  color: var(--ink-dim);
  max-width: 540px;
  font-size: 16px;
  line-height: 1.7;
}
.hero .scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* glitch text */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
}
.glitch:hover::before {
  animation: glitch1 0.4s steps(2) infinite;
  color: var(--accent);
  opacity: 0.8;
  z-index: -1;
}
.glitch:hover::after {
  animation: glitch2 0.4s steps(2) infinite;
  color: #30c4c4;
  opacity: 0.8;
  z-index: -1;
}
@keyframes glitch1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
@keyframes glitch2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

/* ============ SECTION HEADERS ============ */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.section-label .num {
  color: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
h2 em { color: var(--accent); font-style: italic; }

h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

p { color: var(--ink-dim); margin-bottom: 16px; max-width: 640px; }
p strong { color: var(--ink); font-weight: 500; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

/* ============ CARDS / GRIDS ============ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.5s;
}
.card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-4px);
  background: var(--bg-elev);
}
.card:hover::before { width: 100%; }

.card .meta {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.card .tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-right: 6px;
  margin-top: 12px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-avatar {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-avatar svg { width: 70%; height: 70%; }
.about-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(196,48,48,0.05));
  pointer-events: none;
}

.detail-list {
  list-style: none;
  margin-top: 24px;
}
.detail-list li {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-list li .key {
  flex: 0 0 140px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  padding-top: 2px;
}
.detail-list li .val { color: var(--ink); }

/* ============ LOVES / TASTE ============ */
.taste-cat {
  margin-bottom: 64px;
}
.taste-cat h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.taste-cat h3::before {
  content: '◆';
  color: var(--accent);
  font-size: 8px;
}
.taste-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.taste-list li {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  transition: background 0.2s, padding-left 0.3s;
  cursor: none;
}
.taste-list li:hover {
  background: var(--bg-soft);
  padding-left: 32px;
}
.taste-list li .title { color: var(--ink); font-family: var(--serif); font-size: 18px; }
.taste-list li .by { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============ PROJECTS ============ */
.project-list {
  border-top: 1px solid var(--line);
}
.project {
  display: grid;
  grid-template-columns: 60px 1fr auto 80px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s, color 0.3s;
  cursor: none;
}
.project:hover { padding-left: 16px; }
.project .num { color: var(--ink-faint); font-size: 12px; }
.project .name { font-family: var(--serif); font-size: 24px; }
.project .stack { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.project .year { color: var(--ink-dim); font-size: 12px; text-align: right; }
.project:hover .name { color: var(--accent); }
@media (max-width: 700px) {
  .project { grid-template-columns: 40px 1fr; gap: 12px; }
  .project .stack, .project .year { grid-column: 2; }
  .project .name { font-size: 18px; }
}

/* ============ LEARNING / STACK ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.skill {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
  transition: all 0.3s;
}
.skill:hover { border-color: var(--accent); background: var(--bg-elev); }
.skill .name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 20px;
}
.skill .level {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.skill .bar {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.skill .bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--accent);
  width: var(--w, 0%);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skill.in-view .bar::after { width: var(--w, 0%); }
.skill .note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-dim);
  font-style: italic;
}

/* terminal block */
.terminal {
  background: #050505;
  border: 1px solid var(--line);
  padding: 24px;
  font-size: 13px;
  margin-top: 32px;
  position: relative;
}
.terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 8px; left: 12px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 4px;
}
.terminal pre {
  margin-top: 16px;
  white-space: pre-wrap;
  color: var(--ink-dim);
  font-family: var(--mono);
  line-height: 1.8;
}
.terminal .prompt { color: var(--accent); }
.terminal .out { color: var(--ink); }
.terminal .comment { color: var(--ink-faint); font-style: italic; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  transition: all 0.3s;
  cursor: none;
}
.contact-link:hover {
  padding-left: 16px;
  color: var(--accent);
}
.contact-link .arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
  transition: transform 0.3s, color 0.3s;
}
.contact-link:hover .arrow {
  transform: translateX(8px);
  color: var(--accent);
}

/* ============ QUOTE / PUNPUN VIBE ============ */
.quote-block {
  border-left: 2px solid var(--accent);
  padding: 24px 0 24px 32px;
  margin: 64px 0;
  max-width: 680px;
}
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
}
.quote-block .source {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 40px;
  margin-top: 80px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
  z-index: 2;
}
footer .heart { color: var(--accent); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============ EASTER EGG / SECRET ============ */
.secret-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}
.secret-overlay.show { display: flex; }
.secret-overlay h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 96px);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.secret-overlay p {
  font-family: var(--mono);
  color: var(--ink-dim);
  max-width: 500px;
}
.secret-overlay button {
  margin-top: 32px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s;
}
.secret-overlay button:hover {
  background: var(--accent);
}

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ PUNPUN BIRD ============ */
.punpun-corner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  z-index: 50;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: none;
}
.punpun-corner:hover {
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
}
.punpun-corner svg { width: 100%; height: 100%; }

/* loading screen */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader .text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.loader .text::after {
  content: '';
  display: inline-block;
  width: 8px;
  animation: dots 1.2s infinite;
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ============================================
   NEW: floating punpun/aiko images, music player,
   clickable taste links, decorative sky strip
   ============================================ */

/* floating decorative images scattered around pages */
.floater {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}
.floater.small { width: 90px; }
.floater.med   { width: 130px; }
.floater.large { width: 180px; }
.floater.tilt-l { transform: rotate(-8deg); }
.floater.tilt-r { transform: rotate(7deg); }
.floater.delay-1 { animation-delay: 0.8s; }
.floater.delay-2 { animation-delay: 1.6s; }
.floater.delay-3 { animation-delay: 2.4s; }
.floater.fade { opacity: 0.4; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}
.floater.tilt-l { --r: -8deg; }
.floater.tilt-r { --r: 7deg; }

/* hide some floaters on small screens to keep mobile clean */
@media (max-width: 768px) {
  .floater.hide-mobile { display: none; }
  .floater { opacity: 0.5; width: 70px !important; }
}

/* decorative sky banner */
.sky-banner {
  width: 100%;
  margin: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: block;
}

/* taste list — clickable search links */
.taste-list li {
  position: relative;
  cursor: none;
}
.taste-list li a.search-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 16px;
  cursor: none;
}
.taste-list li::after {
  content: '↗';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, right 0.3s;
  pointer-events: none;
}
.taste-list li:hover::after {
  opacity: 1;
  right: 8px;
}
.taste-list li:hover .by {
  color: var(--accent);
}

/* ============ MUSIC PLAYER (bottom-left) ============ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.music-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.music-toggle.playing {
  border-color: var(--accent);
  color: var(--ink);
}
.music-toggle .eq {
  display: inline-flex;
  align-items: flex-end;
  height: 14px;
  gap: 2px;
}
.music-toggle .eq span {
  display: inline-block;
  width: 2px;
  background: var(--ink-faint);
  height: 4px;
  transition: background 0.3s;
}
.music-toggle.playing .eq span {
  background: var(--accent);
  animation: eq 0.9s ease-in-out infinite;
}
.music-toggle.playing .eq span:nth-child(2) { animation-delay: 0.15s; }
.music-toggle.playing .eq span:nth-child(3) { animation-delay: 0.3s; }
.music-toggle.playing .eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50%      { height: 14px; }
}

/* punpun corner adjustment (sits next to music toggle if needed) */
.punpun-corner { z-index: 51; }

/* ============ PUNPUN PANEL (a "manga panel" decorative block) ============ */
.panel {
  position: relative;
  border: 2px solid #f2f0ec;
  background: var(--bg-soft);
  padding: 32px;
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.panel-text p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.panel-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.panel-img img {
  max-width: 200px;
  width: 100%;
}
@media (max-width: 700px) {
  .panel { grid-template-columns: 1fr; padding: 20px; }
  .panel-img img { max-width: 140px; }
}

/* polaroid frame for inline images */
.polaroid {
  display: inline-block;
  background: #f2f0ec;
  padding: 12px 12px 32px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
  transform: rotate(-2deg);
  transition: transform 0.4s;
  cursor: none;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04); }
.polaroid img { display: block; width: 200px; }
.polaroid .caption {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
  color: #0a0a0a;
  font-size: 12px;
}
