/* ===========================================================
   awkwardmuffin985 — personal site stylesheet
   palette + type system kept consistent across every section
   =========================================================== */

:root{
  --paper:#F6F4EC;
  --cream:#FFFDF7;
  --ink:#1c1c1c;
  --blue-soft:#d3e9f3;
  --blue-mid:#8fc1da;
  --blue-deep:#3d6e8c;
  --yellow:#eaa33e;
  --teal:#4f9a96;
  --gray:#d4d2c7;
  --border: 2.5px dashed var(--ink);
  --curve: 6px 16px 5px 18px;
  --font-display:'Caveat','Segoe Print',cursive;
  --font-body:'Patrick Hand','Comic Sans MS',cursive;
  --font-mono:'VT323','Courier New',monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--gray) 1px, transparent 1.3px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 L17 11 L26 14 L17 17 L14 26 L11 17 L2 14 L11 11 Z' fill='%23eaa33e' stroke='%231c1c1c' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, auto;
  overflow-x:hidden;
}

a, button{
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 L17 11 L26 14 L17 17 L14 26 L11 17 L2 14 L11 11 Z' fill='%233d6e8c' stroke='%231c1c1c' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, pointer;
}

::selection{ background: var(--yellow); color: var(--ink); }

/* ---------- ambient twinkling stars ---------- */
.am-bg-stars{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.am-bg-stars span{
  position: absolute;
  color: var(--blue-mid);
  font-size: 16px;
  opacity: 0.45;
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle{
  0%,100%{ opacity:0.15; transform: scale(0.8); }
  50%{ opacity:0.8; transform: scale(1.2); }
}

/* ---------- marquee ---------- */
.marquee-bar{
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--blue-soft);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.4px;
  padding: 5px 0;
}
.marquee-track{
  display: inline-block;
  padding-left: 100%;
  animation: scrollLeft 24s linear infinite;
}
@keyframes scrollLeft{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ---------- mini nav ---------- */
.mini-nav{
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 22px;
  border-bottom: 2px dashed var(--ink);
  flex-wrap:wrap;
  gap:10px;
}
.site-name{
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}
.crown-tiny{
  display:inline-block;
  color: var(--yellow);
  margin-left:4px;
  animation: crownSway 2.6s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes crownSway{ 0%,100%{ transform: rotate(-8deg);} 50%{ transform: rotate(8deg);} }
.nav-links{ display:flex; gap:16px; }
.nav-links a{
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--blue-deep);
  text-decoration:none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover{ color: var(--yellow); border-color: var(--yellow); }

/* ---------- page wrapper ---------- */
.page{
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 20px 10px;
}

/* ---------- hero ---------- */
.hero{
  display:flex;
  gap: 26px;
  flex-wrap:wrap;
  align-items:flex-start;
  margin-bottom: 30px;
}

.photo-frame{
  background:#fff;
  border:3px solid var(--ink);
  padding:10px 10px 14px;
  width:230px;
  flex-shrink:0;
  transform: rotate(-2.4deg);
  position:relative;
  box-shadow:4px 6px 0 rgba(0,0,0,0.10);
  margin-top:30px;
  transition: transform .2s;
}
.photo-frame:hover{ transform: rotate(0deg) scale(1.02); }

.washi-tape{
  position:absolute;
  top:-14px; left:18px;
  width:64px; height:26px;
  background: repeating-linear-gradient(45deg, var(--blue-mid) 0 6px, var(--blue-soft) 6px 12px);
  opacity:0.85;
  transform: rotate(-7deg);
  border:1px solid rgba(0,0,0,0.15);
}

.crown-wrap{
  position:absolute;
  top:-48px; right:6px;
  transform: rotate(-11deg);
  text-align:center;
  animation: crownSway 3s ease-in-out infinite;
  transform-origin: bottom center;
}
.crown-wrap svg{ width:58px; height:46px; display:block; margin:0 auto; }
.crown-label{
  font-family: var(--font-display);
  font-size:13px;
  color: var(--blue-deep);
  display:block;
  line-height:1.05;
  margin-top:-2px;
}

.photo-slot{ width:100%; aspect-ratio: 1 / 1; }
.photo-slot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:1px solid var(--ink);
}
.photo-placeholder{
  width:100%;
  height:100%;
  border:2px dashed var(--gray);
  background: var(--paper);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#888;
  font-family: var(--font-body);
}
.photo-placeholder .ph-icon{ font-size:30px; margin-bottom:4px; }

.photo-caption{
  font-family: var(--font-display);
  font-size:21px;
  text-align:center;
  margin:10px 0 0;
  line-height:1.15;
}
.photo-caption small{
  font-family: var(--font-body);
  font-size:12.5px;
  color:#555;
  display:block;
  margin-top:2px;
}

/* ---------- status panel ---------- */
.status-panel{
  flex:1;
  min-width:250px;
  background: var(--ink);
  border:5px solid #3a3a3a;
  border-radius:8px;
  padding:14px 16px 12px;
  font-family: var(--font-mono);
  color: var(--blue-soft);
  box-shadow: inset 0 0 0 2px #000, 4px 6px 0 rgba(0,0,0,0.12);
}
.status-title{ margin:0 0 4px; font-size:19px; letter-spacing:2px; color:#fff; }
.status-panel hr{ border:none; border-top:1px dashed var(--blue-mid); margin:6px 0 10px; opacity:0.6; }
.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:17px;
  padding:3px 0;
}
.status-row span:first-child{ color: var(--blue-mid); flex-shrink:0; }
.blink-cursor::after{ content:"_"; animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.mini-btn{
  background: transparent;
  border:1px solid var(--blue-mid);
  color: var(--blue-soft);
  border-radius:4px;
  font-family: var(--font-mono);
  font-size:14px;
  padding:0 6px;
  line-height:1.5;
  transition: transform .2s, background .2s;
}
.mini-btn:hover{ background: var(--blue-deep); transform: rotate(180deg); }

.battery-wrap{ display:flex; align-items:center; gap:6px; }
.battery-shell{
  width:60px; height:14px;
  border:2px solid var(--blue-soft);
  border-radius:2px;
  display:flex; padding:2px; gap:2px;
}
.battery-nub{ width:3px; height:6px; background: var(--blue-soft); align-self:center; margin-left:1px; border-radius:0 2px 2px 0; }
.battery-seg{ flex:1; background:#2a2a2a; border-radius:1px; }
.battery-seg.lit{ background: var(--yellow); }

/* ---------- shared "box" styling for content sections ---------- */
.about-box, .links-box{
  background: var(--cream);
  border: var(--border);
  border-radius: var(--curve);
  padding: 20px 24px 22px;
  margin-bottom: 26px;
  box-shadow: 4px 6px 0 rgba(0,0,0,0.08);
  position:relative;
  transition: transform .2s, box-shadow .2s;
}
.about-box{ transform: rotate(0.6deg); }
.links-box{ transform: rotate(-0.5deg); }
.about-box:hover, .links-box:hover{ transform: translateY(-2px) rotate(0deg); box-shadow:5px 8px 0 rgba(0,0,0,0.1); }

.about-box::after, .links-box::after{
  content:"";
  position:absolute;
  top:0; right:0;
  width:0; height:0;
  border-style:solid;
  border-width:0 22px 22px 0;
  border-color: transparent var(--paper) transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0,0,0,0.15));
}

.about-box h2, .links-box h2{
  font-family: var(--font-display);
  font-size:27px;
  margin:0 0 10px;
  color: var(--blue-deep);
}
.about-box p{ font-size:17px; line-height:1.5; margin:0 0 10px; }
.about-box p:last-child{ margin-bottom:0; }

/* ---------- link cards ---------- */
.link-grid{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.link-card{
  display:flex;
  align-items:center;
  gap:9px;
  background: var(--blue-soft);
  border:2px solid var(--ink);
  border-radius:8px;
  padding:10px 16px;
  text-decoration:none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size:16px;
  box-shadow:3px 4px 0 rgba(0,0,0,0.12);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.link-card svg{ width:22px; height:22px; flex-shrink:0; }
.link-card:hover{
  background: var(--yellow);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow:4px 6px 0 rgba(0,0,0,0.16);
}

/* ---------- footer ---------- */
.footer{
  position: relative;
  z-index:1;
  margin-top:10px;
  padding:16px 20px 26px;
  text-align:center;
  font-family: var(--font-mono);
  font-size:13.5px;
  color:#555;
  line-height:1.6;
}
.footer p{ margin:2px 0; }
.visitor-counter span{
  background: var(--ink);
  color: var(--yellow);
  padding:1px 6px;
  border-radius:2px;
  letter-spacing:2px;
}

/* ---------- responsive ---------- */
@media (max-width:600px){
  .hero{ padding:0; }
  .photo-frame{ width:100%; max-width:240px; margin:24px auto 0; }
  .status-panel{ width:100%; }
  .link-grid{ flex-direction:column; }
}

@media (prefers-reduced-motion: reduce){
  .am-bg-stars span, .marquee-track, .crown-tiny, .crown-wrap, .blink-cursor::after{
    animation:none !important;
  }
}