/* Toy & Hobby — Complete Style with Image Scaling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --brand-yellow: #f6c739;
  --brand-red: #e13a2b;
  --brand-blue: #0055ab;
  --brand-brown: #4b3a2a;
  --ink: #333333; 
  --bg-panel: rgba(255, 252, 244, 0.94);
  --shadow: 5px 5px 15px rgba(0,0,0,0.1);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-image: url("../images/background.png"); 
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

header {
  background-color: var(--brand-yellow);
  border-bottom: 6px solid var(--brand-red);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo { height: 75px; width: auto; }
.header-rocket { height: 55px; width: auto; }

/* TOP-DOWN STUD NAVIGATION */
nav { display: flex; gap: 12px; }

nav a {
  text-decoration: none;
  font-weight: 600;
  color: white;
  padding: 14px 24px;
  background: var(--brand-red);
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 6px;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.25) 22%, transparent 26%),
    radial-gradient(circle, rgba(0,0,0,0.12) 24%, transparent 28%);
  background-size: 22px 22px;
  background-position: 0 0, 1px 1px;
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
  transition: 0.1s;
}

nav a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0px rgba(0,0,0,0.3); }
nav a.active { background-color: var(--brand-blue); box-shadow: inset 3px 3px 6px rgba(0,0,0,0.3); }

main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 40px auto;
}

/* PANELS & FEATURE BOXES */
.panel, .feature-box {
  background: var(--bg-panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75,58,42,0.1);
  position: relative;
}

.panel { padding: 35px; margin-bottom: 30px; }

/* THE SELLOTAPE EFFECT */
.panel::after, .feature-box::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 30px;
  width: 80px;
  height: 25px;
  background: rgba(255, 235, 150, 0.4); 
  transform: rotate(2deg);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-right: 1px solid rgba(0,0,0,0.05);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.02);
  pointer-events: none;
  z-index: 5;
}

.feature-box::after { width: 60px; right: 15px; top: -8px; }

.page-branding { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; }
.page-logo-medium { width: 180px; height: auto; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto; }
.page-rocket-medium { width: 70px; height: auto; margin: 20px auto; display: block; }

h1, h2, h3 { font-weight: 600; letter-spacing: 0.05em; color: var(--brand-brown); }
.tagline { font-size: 2.8rem; margin: 0; text-align: center; }

/* 2x2 FEATURE GRID */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.feature-box {
  padding: 25px;
  text-decoration: none;
  color: inherit;
  border-bottom: 6px solid var(--brand-yellow);
  transition: 0.2s;
  background: white; 
}

.feature-box:hover { transform: translateY(-5px); border-bottom-color: var(--brand-red); }

/* --- MEMORY LANE IMAGE SIZING --- */
.memory-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.memory-item img {
  flex: 0 0 220px; /* This sets the smaller size permanently */
  width: 220px;    /* Extra enforcement */
  height: auto;
  border: 4px solid var(--brand-red);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.memory-item .content { flex: 1; min-width: 300px; }
.meta-tag { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-style: italic; color: var(--brand-red); font-weight: 600; }

@media (max-width: 768px) { 
    .features-grid { grid-template-columns: 1fr; }
    .memory-item { flex-direction: column; align-items: center; text-align: center; }
}

footer { text-align: center; padding: 50px 20px; color: var(--brand-brown); }

/* Memory Lane Timeline Pills */
.year-pill-placeholder, .year-pill-active {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.1);
}

.year-pill-placeholder {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.4);
}

.year-pill-active {
  background: var(--brand-yellow);
  color: var(--brand-brown);
  text-decoration: none;
  box-shadow: 2px 2px 0px var(--brand-red);
}

.year-pill-active:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--brand-red);
}