/* Crochetnox: soft pink, serif headings, script logo. Colors live here. */
:root {
  --bg: #fff5f7;
  --surface: #ffffff;
  --blush: #fde4ea;
  --pink: #c9557a;
  --pink-dark: #a63d61;
  --pink-soft: #f4c3d0;
  --ink: #3b2a30;
  --muted: #7a6369;
  --line: #f1d6de;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(201, 85, 122, .12);
  --serif: "Merriweather", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --script: "Dancing Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; margin-inline: auto; }
.narrow-left { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.6em; border-radius: 999px; border: 2px solid var(--pink);
  background: var(--pink); color: #fff; font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--pink); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-pink { background: var(--pink); }
.text-link { font-weight: 600; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 245, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1140px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { text-decoration: none; font-family: var(--script); font-size: 2rem; line-height: 1; white-space: nowrap; }
.logo-crochet { color: var(--ink); }
.logo-luma { color: var(--pink); }
.logo-mark { font-size: .7em; margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .dropdown-toggle {
  font: 600 .95rem var(--body); color: var(--ink); text-decoration: none; padding: 8px 14px;
  border-radius: 999px; background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .dropdown-toggle:hover, .nav > a[aria-current="page"] { background: var(--blush); color: var(--pink-dark); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.dropdown-menu a:hover { background: var(--blush); color: var(--pink-dark); }
.dropdown.open .dropdown-menu { display: block; }
@media (hover: hover) and (min-width: 821px) { .dropdown:hover .dropdown-menu { display: block; } }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px 10px; border-radius: 10px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; background: var(--blush); }
}

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, var(--pink-soft), transparent 45%), linear-gradient(180deg, var(--blush), var(--bg)); padding: clamp(40px, 7vw, 90px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--script); color: var(--pink); font-size: 1.5rem; margin: 0 0 .3em; }
.hero h1 em { color: var(--pink); font-style: italic; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; margin-bottom: 1.6em; }
.hero-note { display: block; margin-top: 14px; font-size: .9rem; color: var(--muted); letter-spacing: .03em; }
.hero-photo { position: relative; aspect-ratio: 1; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; overflow: hidden; box-shadow: 0 20px 50px rgba(201, 85, 122, .25); border: 8px solid #fff; background: var(--pink-soft); }
.hero-photo::before { content: "🐰"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 8rem; }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo { max-width: 380px; margin-inline: auto; } }

/* Section titles */
section { scroll-margin-top: 90px; }
.browse, .latest { padding: clamp(40px, 6vw, 70px) 0 0; }
.section-title { text-align: center; position: relative; padding-bottom: 14px; margin-bottom: 32px; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 3px; border-radius: 3px; background: var(--pink); transform: translateX(-50%); }
.section-title.pink { color: var(--pink-dark); }

/* Thumbnails with emoji placeholder */
.thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--a, var(--blush)), var(--b, var(--pink-soft))); }
.thumb.ph > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* Category circles */
.circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; }
.circle-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; width: 130px; }
.thumb.circle { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow); transition: transform .25s; }
.circle-cat:hover .thumb.circle { transform: translateY(-4px) rotate(-3deg); }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; text-align: center; white-space: nowrap; }
.circle-cat:hover .pill { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin-bottom: 32px; }
.post-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(59, 42, 48, .06); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 4 / 3; }
.post-card .thumb img { transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-body { padding: 16px 20px 20px; position: relative; }
.post-body h3 { margin: 0 0 6px; padding-right: 28px; font-size: 1.05rem; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card:hover .card-link { color: var(--pink-dark); }
.pattern-details { margin: 0; font-size: .85rem; color: var(--muted); }
.read-more { position: absolute; right: 18px; bottom: 18px; color: var(--pink); font-weight: 700; transition: transform .2s; }
.post-card:hover .read-more { transform: translateX(4px); }
.cat-label { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); margin-bottom: 4px; }

/* Author box */
#author-slot { padding: 40px 0 60px; }
.author-box { display: grid; grid-template-columns: auto 1fr 260px; gap: 32px; align-items: center; background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.author-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 5px solid var(--blush); background: var(--pink-soft); }
.author-photo.big { width: 220px; height: 220px; }
span.author-photo { display: grid; place-items: center; font-size: 3.5rem; flex: none; }
span.author-photo.big { font-size: 6rem; }
.author-text p, .connect p { color: var(--muted); margin: 0 0 10px; }
.connect { border-left: 1px solid var(--line); padding-left: 32px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--pink-dark); font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .2s, color .2s; }
.socials a:hover { background: var(--pink); color: #fff; }
@media (max-width: 820px) {
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .connect { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .socials { justify-content: center; }
}

/* Inner pages */
main.container { padding-bottom: 60px; }
.page-head { text-align: center; padding: 48px 0 24px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--pink); }
.about-intro { text-align: center; margin-bottom: 32px; }
.about-intro h2 span { color: var(--pink); font-family: var(--script); font-size: 1.3em; }
.about-top { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 24px; }
@media (max-width: 700px) { .about-top { grid-template-columns: 1fr; justify-items: center; } }

/* Patterns list toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 12px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips button { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; }
.chips a:hover, .chips button:hover { border-color: var(--pink); }
.chips .active, .chips [aria-current="page"], .chips [aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
input, textarea { font: inherit; color: var(--ink); }
#search, .contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
#search { max-width: 280px; border-radius: 999px; }
#search:focus, .contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--blush); }
.category-intro:not(:empty) { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Contact */
.note { background: var(--blush); border-left: 4px solid var(--pink); padding: 14px 18px; border-radius: 10px; font-size: .95rem; }
.contact-form { display: grid; gap: 16px; margin-top: 28px; background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: .95rem; }
.contact-form button { justify-self: start; }
.req { color: var(--pink); }
.contact-form label > input, .contact-form label > textarea { display: block; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: #2f7a4f; }
.form-msg.err { color: #b3261e; }

/* Single pattern article */
.post { max-width: 780px; margin: 0 auto; padding-top: 32px; }
.post .thumb, .post > img { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: 24px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.meta, .pattern-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.meta > *, .pattern-meta > * { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.materials, .steps { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; border: 1px solid var(--line); }
.steps label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.steps input[type="checkbox"] { accent-color: var(--pink); width: 18px; height: 18px; margin-top: 5px; flex: none; }
.steps input:checked + span { color: var(--muted); text-decoration: line-through; }

/* Footer */
.site-footer { background: var(--ink); color: #f6dfe6; text-align: center; padding: 40px 16px 32px; font-size: .9rem; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pink-soft); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.image-note { font-family: var(--script); font-size: 1.3rem; color: var(--pink-soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn, .skip { display: none !important; } body { background: #fff; } }
