/* ============================================================
   FONTS
============================================================ */
@font-face {
  font-family: "basiic";
  src: url("basiic.ttf");
}

@font-face {
  font-family: "gaegu";
  src: url("Gaegu-Regular.ttf");
}

/* ============================================================
   CODING PAGE
============================================================ */

#coding {
  position: relative;
  padding: 20px;
  border-radius: 6px;

  /* cute tiled background image */
  background-image: url("https://64.media.tumblr.com/794879d919f6c6783550f9540852cf35/tumblr_inline_n25bfdzPwb1qhwjx8.png");
  background-repeat: repeat;
  background-size: auto;

  /* blend with your theme palette */
  background-color: var(--bg-panel-light);
  background-blend-mode: multiply;
}

.coding-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.coding-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.coding-thumb {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.coding-thumb img {
  width: 100%;
  border-radius: 4px;
}

.coding-title {
  margin: 4px 0 2px;
  font-weight: bold;
  font-size: 14px;
}

.coding-desc {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-soft);
}

#coding a {
  color: var(--link);
  font-size: 12px;
}


/* ============================================================
   THEME COLOURS
============================================================ */
:root {
  --bg-page: rgba(255, 248, 223, 0.9);
  --bg-panel: #f3d2ba;
  --bg-panel-light: #f9e3cd;
  --bg-panel-soft: #fbe9c9;
  --accent: #e9b8a6;
  --accent-soft: #f4c4a4;
  --border: #c89c7b;
  --text-main: #674d3f;
  --text-soft: #9b7359;
  --text-muted: #b27a4a;
  --link: #b2675e;
  --highlight: #f8e6b3;
  --bg-panel-hover: #fbe1c8;
}

body[data-theme="dark"] {
  --bg-page: rgba(58, 42, 33, 0.96);
  --bg-panel: #5a3b32;
  --bg-panel-light: #6c4a3d;
  --bg-panel-soft: #453228;
  --accent: #d89a7e;
  --accent-soft: #c18065;
  --border: #b2724e;
  --text-main: #ffe7c8;
  --text-soft: #f2c7a3;
  --text-muted: #f2c7a3;
  --link: #ffd0b2;
  --highlight: #7a513d;
  --bg-panel-hover: #7b5240;
}

/* ============================================================
   GLOBAL RESET / BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* background */
body {
  background-color: #ffeecf;
  background-image: url("https://killychan.neocities.org/backgrounds/polkadots.png");
  font-family: "basiic", system-ui, sans-serif;
  color: var(--text-main);
  cursor: url("creamhand.png"), auto;
}

/* link cursor */
a,
button,
.nav-link,
.menu-toggle {
  cursor: url("creampoint.png"), pointer;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* main page frame */
.page {
  max-width: 980px;
  margin: 70px auto 40px auto;
  background: var(--bg-page);
  border: 2px solid var(--border);
  box-shadow: 0 0 0 3px #fdf3dd;
  padding: 50px 18px 18px 18px; /* room for banner overlap */
  position: relative;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.top-header {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.site-banner {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   MAIN 3-COLUMN LAYOUT
------------------------------------------------------------ */
.layout-3col {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: stretch;
}

/* center column is scrollable, sidebars fixed height */
.content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px;
  overflow-y: auto;
  height: calc(100vh - 170px);
}

.sidebar-left,
.sidebar-right {
  height: calc(100vh - 170px);
  overflow-y: auto;
}

/* sections swap with JS */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* ------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------ */
h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

h2 {
  font-size: 16px;
  margin: 6px 0;
}

h3 {
  font-size: 14px;
  margin: 4px 0;
}

p {
  margin: 3px 0 7px;
  line-height: 1.5;
}

.hint {
  font-size: 12px;
  color: var(--text-soft);
}

/* ============================================================
   LEFT SIDEBAR / NAV
============================================================ */
.sidebar-left {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px;
}

.site-mini {
  text-align: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.mini-title {
  display: block;
  font-size: 16px;
}

.theme-toggle {
  margin-top: 6px;
  font-family: "basiic";
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-panel-light);
  color: var(--text-main);
}

.main-menu {
  font-size: 13px;
}

.menu-section {
  margin-bottom: 8px;
  border: 1px dashed var(--border);
  background: var(--bg-panel-light);
}

.menu-toggle {
  width: 100%;
  text-align: left;
  padding: 4px 8px;
  background: var(--accent-soft);
  border: none;
  font-size: 13px;
  color: var(--text-main);
  font-family: "basiic", sans-serif !important;
  letter-spacing: 0.3px;
}

.menu-section ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.menu-section li {
  padding: 2px 8px;
  border-top: 1px dotted rgba(0, 0, 0, 0.08);
}

.menu-section li:first-child {
  border-top: none;
}

.nav-link {
  display: block;
  color: var(--text-soft);
}

.nav-link.active {
  background: var(--highlight);
  border-radius: 3px;
}

/* art hub sub-menu */
.art-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.art-sub {
  list-style: none;
  margin: 2px 0 0 12px;
  padding: 2px 0 0 0;
  border-left: 1px dotted rgba(0, 0, 0, 0.1);
}

.art-sub li {
  border-top: none;
  padding-left: 6px;
}

.art-sub.hide {
  display: none;
}

/* ============================================================
   GENERIC CARDS / GRIDS / LISTS
============================================================ */
.card {
  background: var(--bg-panel-light);
  border: 1px solid var(--border);
  padding: 8px 10px;
  margin-bottom: 8px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

/* dot list with tiny pixel bullets */
.dot-list {
  margin: 4px 0;
  padding-left: 0;
  list-style: none;
}

.dot-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 3px;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  background-image: url("https://antikrist.lol/images/pixels/minis/0176.gif");
  background-size: contain;
  background-repeat: no-repeat;
}

.dot-label {
  display: inline-block;
  margin-right: 4px;
}

/* image cards */
.image-card {
  text-align: center;
}

.image-slot {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border);
  padding: 4px;
}

.image-slot img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.image-slot.square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-slot.rectangle img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.caption {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 3px;
}

/* inline pixels */
.pixel-emoji {
  vertical-align: middle;
  margin-left: 2px;
}

/* ============================================================
   HOME BUBBLE (optional, if you add it later)
============================================================ */
.home-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.home-character {
  width: 140px;
  height: auto;
  display: block;
}

.home-bubble {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 260px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.home-bubble h1 {
  margin: 0 0 0.4rem 0;
  font-size: 1.4rem;
}

/* ============================================================
   DIARY — NOTEBOOK + ARCHIVES
============================================================ */

/* pencil cursor ONLY inside diary */
#diary,
#diary * {
  cursor: url("https://doqmeat.com/journal/!g/cursor-pencil.png"), auto;
}

/* diary outer shell */
.diary-shell {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* tab */
.diary-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-panel-light);
  border: 1px solid var(--border);
  font-family: "basiic";
  font-size: 14px;
}

/* meta row */
.diary-meta-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-family: "basiic";
  border-bottom: 1px dashed var(--border);
  padding: 4px 2px 6px 2px;
}

.diary-meta-label {
  color: var(--text-muted);
}

.diary-meta-value {
  font-weight: bold;
  margin-left: 4px;
}

.diary-meta-spacer {
  flex: 1;
}

/* archive button */
.diary-archive-btn {
  padding: 5px 10px;
  font-family: "basiic";
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-panel-light);
  cursor: pointer;
  width: fit-content;
}

.diary-archive-btn:hover {
  background: var(--bg-panel-hover);
}

/* archive list panel */
.archive-list {
  background: var(--bg-panel-light);
  border: 1px solid var(--border);
  padding: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.archive-list.hide {
  display: none;
}

.archive-list h2 {
  font-size: 15px;
  margin-bottom: 8px;
  font-family: "basiic";
}

.archive-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.archive-list li {
  padding: 5px 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-family: "basiic";
  color: var(--link);
  border-radius: 4px;
  background: var(--bg-panel-soft);
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.archive-list li:hover {
  background: var(--bg-panel-hover);
  text-decoration: underline;
}

/* clicked / active entry */
.archive-list li.active-entry {
  background: var(--highlight);
  border-color: var(--border);
  font-weight: bold;
}

/* notebook area */
.diary-notebook {
  margin-top: 2px;
  padding: 18px 22px;
  border: 1px solid #d8a58a;
  border-radius: 3px;

  /* warm vintage paper */
  background-color: #f7e7c4;

  /* notebook lines */
  background-image:
    linear-gradient(to right, #d06a57 45px, transparent 45px),
    repeating-linear-gradient(
      to bottom,
      #f7e7c4 0px,
      #f7e7c4 26px,
      #f0d7b4 26px,
      #f0d7b4 27px
    );

  font-family: "gaegu", "basiic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #5a4637;

  position: relative;
  overflow-y: auto;
  min-height: 350px;
}

/* red notebook margin line */
.diary-notebook::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(220, 70, 70, 0.75);
}

/* entry spacing */
.diary-entry {
  margin-left: 58px;
  margin-bottom: 22px;
}

.diary-entry-header {
  margin-bottom: 6px;
}

.diary-entry-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 4px;
}

.diary-entry-info {
  font-size: 12px;
  color: var(--text-muted);
}

.diary-entry-info span {
  margin-right: 4px;
}

.diary-entry p {
  font-size: 14px;
  margin-bottom: 6px;
}

/* dark mode aesthetic */
body[data-theme="dark"] .diary-shell {
  background: #5a3b32;
  border-color: #b2724e;
}

body[data-theme="dark"] .diary-tab {
  background: #7a513d;
  border-color: #b2724e;
  color: #ffe7c8;
}

body[data-theme="dark"] .diary-notebook {
  background-color: #3b2c25;
  border-color: #b2724e;

  background-image:
    linear-gradient(to right, #b2724e 45px, transparent 45px),
    repeating-linear-gradient(
      to bottom,
      #3b2c25 0px,
      #3b2c25 26px,
      #5a3b32 26px,
      #5a3b32 27px
    );

  color: #f4d8ba;
}

body[data-theme="dark"] .diary-notebook::before {
  background: rgba(240, 180, 140, 0.7);
}

body[data-theme="dark"] .diary-entry-title {
  color: #ffe7c8;
}

/* ============================================================
   FINAL ABOUT-ME FIX — CLEAN WRAP, NO BOXES, NO BREAKING
============================================================ */

/* make the layout flow naturally */
#about .about-grid {
  display: block !important;
  width: 100% !important;
}

/* avatar floats left & DOES NOT grow too large */
#about .about-left {
  float: left !important;
  width: 180px !important;         /* FIXED: smaller + consistent */
  margin-right: 22px !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}

/* avatar image style (no border, no box, soft corner) */
#about .about-photo {
  width: 100% !important;
  max-width: 180px !important;     /* PREVENTS OVERFLOW */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 10px;
  margin: 0 auto !important;
}

/* allow text to wrap correctly beside avatar */
#about .about-right {
  overflow: visible !important;
  display: block !important;
  padding-top: 0 !important;
  max-width: 600px;                /* stops huge text lines */
}

/* ============================================================
   ABOUT — SIDE-BY-SIDE LIKES + DISLIKES
============================================================ */

#about .likes-dislikes {
  clear: both !important;
  margin-top: 25px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  display: flex !important;
  flex-wrap: wrap;          /* stays cute even on small screens */
  gap: 40px !important;     /* space between the two lists */
}

#about .likes-column,
#about .dislikes-column {
  flex: 1 1 200px;          /* each takes equal width */
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

#about .likes-dislikes h2 {
  margin-bottom: 6px;
  font-size: 16px;
}

#about .likes-dislikes ul {
  padding-left: 0 !important;
  margin-top: 6px;
}

#about .likes-dislikes li {
  margin-bottom: 4px;
}


/* ============================================================
   RIGHT SIDEBAR
============================================================ */
.sidebar-right {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 13px;
}

.side-box {
  background: var(--bg-panel-light);
  border: 1px solid var(--border);
  padding: 6px 8px;
  margin-bottom: 8px;
}

/* avatar */
.status-avatar {
  text-align: center;
  margin-bottom: 4px;
}

.status-avatar img {
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
  border: 1px solid var(--border);
  background: var(--bg-panel-soft);
}

/* chatbox frame */
.cbox-frame {
  background: #ffeed0;
  border: 1px dashed var(--border);
  padding: 2px;
  min-height: 160px;
}

/* mini devlog */
.devlog-side-mini {
  max-height: 150px;
  overflow-y: auto;
}

.dev-entry {
  margin-bottom: 6px;
  font-size: 12px;
}

.meta {
  font-size: 11px;
  color: var(--text-soft);
}

/* main devlog page list */
.devlog-list {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}
/* ------------------------------------------------------------
   CAT PAGE — COMPACT SCRAPBOOK LAYOUT
------------------------------------------------------------ */
.cat-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0 20px;
  background: 
    url("https://64.media.tumblr.com/2ee9d2cd8c55b2b11962ebbb9f0c97aa/tumblr_inline_mns6ogt0wA1qz4rgp.gif");
  background-size: cover;
  background-position: center;
}


/* image + facts row */
.cat-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 650px;
  margin: 0 auto 12px auto;
}

/* main cat photo */
.cat-main {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* fact list */
.cat-details {
  flex: 1;
  min-width: 230px;
}

.cat-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-size: 14px;
}

.cat-details li {
  margin-bottom: 4px;
}

/* story paragraph under everything */
.cat-story {
  max-width: 650px;
  margin: 8px auto 18px auto;
  line-height: 1.45;
  font-size: 14px;
}

/* gallery title */
.cat-gallery-title {
  max-width: 650px;
  margin: 18px auto 8px auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* gallery grid */
.cat-gallery {
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cat-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* prevents giant images */
.cat-page img {
  max-width: 100%;
}


/* lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   GUITAR PAGE FIX — WRAPPED TEXT + LEFT MASCOT + CUTE BG
------------------------------------------------------------ */

.guitar-page {
  position: relative;
  padding: 20px 10px 40px;
}

.guitar-bg {
  background-image: url("https://64.media.tumblr.com/5f7bff3b9920e1afc14aad7b33a66280/tumblr_inline_n1ubnaGKv41qmvw6b.gif");
  background-size: 320px;
  background-repeat: repeat;
  opacity: 0.18;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* title */
.guitar-title {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

/* mascot + text that wraps around naturally */
.guitar-intro {
  max-width: 650px;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
}

/* sticker mascot */
.guitar-mascot {
  width: 160px;
  float: left;          /* THIS MAKES TEXT WRAP NATURALLY */
  margin: 5px 18px 10px 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.12));
}

/* text next to mascot */
.guitar-text p {
  line-height: 1.7;
  margin-bottom: 10px;
}

.guitar-tiktok {
  font-size: 14px;
  text-decoration: underline;
  color: var(--link);
}

/* subtitle */
.guitar-subtitle {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

/* guitar polaroid grid */
.guitar-collage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
  position: relative;
  z-index: 3;
}

.guitar-item {
  width: 200px;
  text-align: center;
  transition: 0.2s;
}

.guitar-item img {
  width: 100%;
  border-radius: 4px;
}

/* tilt effects */
.tilt-left { transform: rotate(-4deg); }
.tilt-right-small { transform: rotate(2.5deg); }
.tilt-left-small { transform: rotate(-2.5deg); }

.guitar-item:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 5;
}

.caption {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 6px;
}


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dotted var(--border);
  text-align: center;
  font-size: 11px;
}

.blinkies {
  margin-bottom: 4px;
}

.blinkies img {
  image-rendering: pixelated;
  margin: 0 3px;
  height: 28px;
}

.credits {
  margin: 0;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .layout-3col {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 720px) {
  .page {
    margin: 40px 8px;
    padding: 60px 10px 12px 10px;
  }

  .layout-3col {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    margin-bottom: 8px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .content {
    height: 480px;
  }
}
/* ============================================================
   CROCHET PAGE — full styling
============================================================ */

.crochet-page {
  position: relative;
  padding: 20px;
  border-radius: 6px;

  /* soft beige base */
  background-color: var(--bg-panel-light);

  /* ensure background layer stays under content */
  overflow: hidden;
}

/* faded crochet background overlay */
.crochet-page::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("https://64.media.tumblr.com/0a09fae00b105f3afeafe92ee942859a/tumblr_inline_n1ubjdnsWp1qmvw6b.gif");
  background-repeat: repeat;
  background-size: auto;

  opacity: 0.25;  /* adjust: 0.15 (softer), 0.25 (default), 0.35 (stronger) */
  pointer-events: none;

  z-index: 0;
}

/* all real content stays above the faded background */
.crochet-page > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   TITLE
------------------------------------------------------------ */
.crochet-title {
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------
   INTRO SECTION
------------------------------------------------------------ */
.crochet-intro {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.crochet-mascot {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.crochet-text {
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
}

/* ------------------------------------------------------------
   MENU TOGGLE BUTTON
------------------------------------------------------------ */
.crochet-toggle {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;

  font-size: 13px;
  font-family: "basiic";

  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.crochet-toggle:hover {
  background: var(--bg-panel-hover);
}

/* ------------------------------------------------------------
   MENU PANEL
------------------------------------------------------------ */
.crochet-menu {
  margin-top: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 6px;
  width: 200px;
}

.crochet-menu.hide {
  display: none;
}

.crochet-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.crochet-menu li {
  padding: 6px 0;
}

.crochet-link {
  font-size: 14px;
  color: var(--link);
}

.crochet-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   SUB PAGES (patterns + works)
------------------------------------------------------------ */
.crochet-sub {
  margin-top: 18px;
  padding: 10px 4px;
}

.hidden-sub {
  display: none;
}

.hidden-sub.active {
  display: block;
}

.crochet-sub h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.crochet-sub p {
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   RESPONSIVE CLEANUP (optional)
------------------------------------------------------------ */
@media (max-width: 720px) {
  .crochet-intro {
    flex-direction: column;
  }

  .crochet-mascot {
    width: 140px;
    margin-bottom: 10px;
  }
}
/* patterns grid */
.pattern-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 10px;
}

.pattern-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.pattern-card img {
  width: 100%;
  border-radius: 6px;
}

.pattern-title {
  margin: 6px 0 2px;
  font-weight: bold;
  font-size: 14px;
}

.pattern-note {
  font-size: 12px;
  color: var(--text-soft);
}

/* works grid */
.works-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 14px;
}

.work-card {
  background: #fffdf8;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  box-shadow: 2px 2px 0 #d7c4a2;
}

.work-card img {
  width: 100%;
  border-radius: 6px;
}

.work-caption {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-soft);
}
/* ------------------------------------------------------------
   CRAFTS — TILTED POLAROID GRID
------------------------------------------------------------ */

.crafts-page {
  position: relative; /* REQUIRED so bg sits behind content */
}

.crafts-bg {
  background-size: 450px;
  background-repeat: repeat;
  opacity: 0.25;

  position: absolute;
  inset: 0;

  /* FIXED — removing z-index:-1 makes it visible */
  z-index: 0;

  pointer-events: none;
}

.crafts-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

/* the card */
.craft-polaroid {
  text-align: center;
  transition: transform 0.2s ease;
  width: 100%;
}

/* photo */
.craft-polaroid img {
  width: 100%;
  display: block;
}

/* caption */
.polaroid-caption {
  font-size: 12px;
  margin-top: 6px;
  color: var(--text-soft);
}

/* tilt variations */
.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(4deg); }
.tilt-left-small { transform: rotate(-2.5deg); }
.tilt-right-small { transform: rotate(2.5deg); }

/* hover */
.craft-polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 5;
}
/* ------------------------------------------------------------
   EDITING PAGE — BG + CENTERED LOGO
------------------------------------------------------------ */

.editing-page {
  position: relative; /* REQUIRED */
  padding: 20px;
}

.editing-bg {
  background-image: url("https://64.media.tumblr.com/0a09fae00b105f3afeafe92ee942859a/tumblr_inline_n1ubjdnsWp1qmvw6b.gif");
  background-size: 450px;
  background-repeat: repeat;

  /* FIX OPACITY — 1.22 is impossible */
  opacity: 0.3;

  position: absolute;
  inset: 0;

  /* FIX — removing -1 makes it visible */
  z-index: 0;

  pointer-events: none;
}

/* Title */
.editing-title {
  text-align: center;
  margin-bottom: 20px;
}

/* Center block */
.editing-center {
  text-align: center;
  margin-bottom: 20px;
}

/* AE logo */
.editing-logo {
  width: 120px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.15));
}

/* voengi text */
.editing-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* links */
.editing-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-link {
  font-size: 14px;
  color: var(--link);
  text-decoration: underline;
  cursor: url("creampoint.png"), pointer;
}

/* story text */
.editing-story {
  margin-top: 15px;
  line-height: 1.6;
  font-size: 14px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
