/* Craft Studio by Buse — colours taken from the logo: pink, orange, green, sunny yellow, aqua squiggle. */
:root {
  --pink: #f8c8dc;
  --pink-soft: #fde9f1;
  --orange: #f26a1f;
  --orange-dark: #c94f0e;
  --green: #4f8a2b;
  --yellow: #ffe34d;
  --aqua: #c4f0f0;
  --ink: #2a1a14;
  --muted: #6b5249;
  --paper: #fffaf6;
  --radius: 22px;
  --shadow: 0 6px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pink-soft); color: var(--ink); font: 400 17px/1.6 'DM Sans', system-ui, sans-serif; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3, .footer-brand { font-family: 'Bagel Fat One', 'DM Sans', sans-serif; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 22px;
  font: 700 16px/1.2 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.big { font-size: 19px; padding: 14px 30px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--pink);
  border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); user-select: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); }
.brand span { font-family: 'Bagel Fat One', sans-serif; font-size: 24px; color: var(--orange); line-height: 1; -webkit-text-stroke: .5px var(--ink); }
.brand small { display: block; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px; color: var(--green); -webkit-text-stroke: 0; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
#nav { display: flex; gap: 8px; }
#nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 2px solid transparent; }
#nav a:hover { border-color: var(--ink); background: #fff; }
#nav a[aria-current="page"] { background: var(--yellow); border-color: var(--ink); }
.menu-toggle { display: none; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; }
@media (max-width: 720px) {
  .site-header { padding: 10px 16px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 20px; }
  .menu-toggle { display: block; }
  #nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  #nav.open { display: flex; }
}
.admin-bar { background: var(--green); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; }
.admin-bar button { margin-left: 12px; background: #fff; border: 0; border-radius: 999px; padding: 4px 14px; font-weight: 700; cursor: pointer; }

/* Hero carousel */
.hero { position: relative; background: var(--orange); border-bottom: 3px solid var(--ink); overflow: hidden; }
.slides { position: relative; height: min(70vh, 580px, 40vw); } /* 40vw keeps two portrait photos + text fitting on narrower screens */
.slide { position: absolute; inset: 0; display: flex; color: var(--ink); text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
/* full-height photo, width from its own proportions, so the whole picture is visible; text takes the rest */
.slide img { flex: none; height: 100%; width: auto; max-width: 34%; object-fit: cover; border-right: 3px solid var(--ink); }
.slide img.second { border-right: 0; border-left: 3px solid var(--ink); }
.slide-text { flex: 1; align-self: center; padding: 32px 40px 88px; text-align: center; }
.slide-text h2 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 12px; color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.slide-text p { font-size: 19px; margin: 0 auto 24px; color: #fff; max-width: 32ch; }
.slide-text .kicker { display: inline-block; background: var(--green); color: #fff; padding: 4px 14px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 14px; border: 2px solid var(--ink); }
.slide .btn { background: var(--yellow); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .slide.active img { animation: drift 9s ease-out both; }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}
.slide-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.slide-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.slide-btn.pause { font-size: 12px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; padding: 0; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--yellow); width: 30px; border-radius: 999px; }
@media (max-width: 800px) {
  .slides { height: auto; aspect-ratio: auto; display: grid; }
  .slide { position: relative; grid-area: 1 / 1; flex-direction: column; }
  .slide img { width: 100%; height: auto; max-width: none; max-height: 60vh; object-fit: contain; background: var(--orange-dark); border-right: 0; border-bottom: 3px solid var(--ink); }
  .slide img.second { display: none; }
  .slide-text { text-align: left; }
  .slide-text p { margin-left: 0; }
  .slide-controls { left: 16px; right: 16px; transform: none; }
  .slide-text { padding: 20px 16px 84px; }
  .slide-controls { left: 16px; right: 16px; justify-content: center; }
}

/* Home sections */
.intro { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.intro h1 { font-size: clamp(32px, 5vw, 52px); color: var(--orange); margin: 0 0 12px; -webkit-text-stroke: 1px var(--ink); }
.intro > p { max-width: 60ch; margin: 0 auto 28px; font-size: 19px; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.perks li { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.perks span { display: block; font-size: 28px; }
.section-title { font-size: 34px; color: var(--green); margin: 48px 0 18px; }
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.upcoming li:not(.empty) > a { display: flex; gap: 16px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.upcoming li:not(.empty) > a:hover { background: var(--aqua); }
.upcoming .date { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-content: center; text-align: center; font-weight: 700; line-height: 1; font-size: 13px; text-transform: uppercase; }
.upcoming .date b { font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: 28px; }
.upcoming .full a { opacity: .6; }
.empty { background: #fff; border: 2px dashed var(--muted); border-radius: var(--radius); padding: 18px; list-style: none; }
.cta-band { background: var(--green); color: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 32px; margin: 56px auto; text-align: center; box-shadow: var(--shadow); }
.wrap.cta-band { max-width: 1088px; }
.cta-band h2 { font-size: 34px; margin: 0 0 8px; color: var(--yellow); }
.cta-band p { max-width: 56ch; margin: 0 auto 18px; }

/* Page basics */
.page-title { font-size: clamp(38px, 6vw, 60px); color: var(--orange); -webkit-text-stroke: 1px var(--ink); margin: 40px 0 10px; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); }
.crumbs { margin: 24px 0 0; font-size: 15px; }

/* Workshop cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 28px 0 64px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h2 { font-size: 28px; margin: 0; color: var(--orange); }
.card-body p { margin: 0; }
.card-body .meta { color: var(--muted); font-size: 15px; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.card-body .next { margin-bottom: 12px; }

/* Workshop detail */
.workshop-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 16px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; cursor: pointer; width: 72px; height: 72px; background: #fff; opacity: .7; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--orange); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.details h1 { font-size: clamp(36px, 5vw, 54px); color: var(--orange); -webkit-text-stroke: 1px var(--ink); margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.facts div { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.about-workshop { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.about-workshop video { width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); background: #000; max-height: 520px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li::before { content: '✦'; color: var(--orange); margin-right: 10px; }
@media (max-width: 820px) { .workshop-top, .about-workshop { grid-template-columns: 1fr; gap: 24px; } }

/* Calendar */
.calendar-section { margin-bottom: 64px; }
.calendar { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head h3 { font-size: 30px; margin: 0; color: var(--orange); text-align: center; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); font-size: 24px; cursor: pointer; line-height: 1; }
.cal-admin-hint { display: none; background: var(--aqua); border-radius: 12px; padding: 8px 12px; font-weight: 600; margin: 0 0 12px; }
.is-admin .cal-admin-hint { display: block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: 86px; border: 2px solid #eadbd3; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; background: var(--paper); font: inherit; color: inherit; }
.cal-day b { font-size: 15px; }
.cal-day.has { background: var(--pink); border-color: var(--ink); }
.cal-day.today { outline: 3px solid var(--green); outline-offset: -1px; }
.cal-day.past { opacity: .5; }
button.cal-day { cursor: pointer; }
button.cal-day:hover { background: var(--aqua); }
.chip { background: var(--orange); color: #fff; border-radius: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.chip.full { background: var(--muted); text-decoration: line-through; }
a.chip { text-decoration: none; }
.chip.w0 { background: var(--orange); } .chip.w1 { background: var(--green); } .chip.w2 { background: #2f6fb5; }
.chip.w0.full, .chip.w1.full, .chip.w2.full { background: var(--muted); }
.cal-legend { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-legend .chip { width: 14px; height: 14px; padding: 0; border-radius: 50%; display: inline-block; }
.cal-legend a { color: var(--ink); }
.cal-list .chip { color: #fff; }
.cal-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.cal-list li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; border-bottom: 1px dashed #e0cfc6; padding: 8px 0; }
.cal-list li.past { opacity: .55; }
.cal-list li.full strong { text-decoration: line-through; }
.cal-list em { color: var(--muted); }
.tag { background: var(--muted); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 10px; font-weight: 700; }
@media (max-width: 640px) {
  .calendar { padding: 12px; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 46px; padding: 4px; align-items: center; }
  .cal-day b { font-size: 13px; }
  .chip { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; } /* dot on phones; the list below has the times */
}

/* Dialogs */
dialog { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); width: min(440px, calc(100vw - 32px)); background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(42, 26, 20, .55); }
dialog h2 { margin: 0 0 16px; color: var(--orange); font-size: 26px; }
dialog label { display: block; font-weight: 600; margin-bottom: 12px; }
dialog input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.form-error { color: #b00020; font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }
.day-editor .row { border: 2px solid #eadbd3; border-radius: 14px; padding: 12px; margin: 0 0 12px; }
.day-editor .check { display: flex; gap: 8px; align-items: center; }
.day-editor .remove { background: none; border: 0; color: #b00020; font-weight: 700; cursor: pointer; padding: 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 28px 0; }
.product { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-cell:nth-child(odd) .product { transform: rotate(-.6deg); } .product-cell:nth-child(even) .product { transform: rotate(.6deg); }
.card-admin { display: flex; gap: 8px; margin: 12px 0 0; }
a.product { display: block; color: var(--ink); text-decoration: none; transition: transform .15s; }
.product-cell a.product:hover { transform: translateY(-4px) rotate(0); }
.product img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-bottom: 3px solid var(--ink); background: #fff; }
.product-body { display: block; padding: 14px 18px 18px; }
.product .count { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green); }
.product .price { font-weight: 700; color: var(--ink); margin: 4px 0 12px; }
.product h2 { margin: 0 0 4px; font-size: 22px; color: var(--orange); }
.product p { margin: 0; color: var(--muted); }
.shop-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; margin: 20px 0 64px; }
.about-grid img { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.about .sign { font-family: 'Bagel Fat One', sans-serif; font-size: 24px; color: var(--green); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--pink); text-align: center; padding: 36px 16px; }
.site-footer a { color: var(--yellow); }
.site-footer p { margin: 4px 0; }
.footer-brand { font-size: 28px; color: var(--orange); } .footer-brand span { color: var(--pink); }
#fb { touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; } /* no double-tap zoom or text selection while tapping */

/* Admin editors (workshop details, products) */
body:not(.is-admin) .admin-only { display: none !important; }
.details .admin-only { margin-top: 16px; }
dialog.wide { width: min(640px, calc(100vw - 32px)); }
dialog textarea, dialog select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; resize: vertical; }
dialog label small { font-weight: 400; color: var(--muted); }
dialog h3 { margin: 8px 0 10px; color: var(--green); }
dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
dialog .actions .delete { margin-right: auto; color: #b00020; }
.design-row { border: 2px solid #eadbd3; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; }
.design-row[open] { border-color: var(--ink); }
.design-row summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.design-row summary img { width: 44px; height: 54px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.design-row summary img[src=""] { visibility: hidden; }
.design-row[open] summary { margin-bottom: 12px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.photo { position: relative; }
.photo img { width: 64px; height: 80px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; display: block; }
.photo .x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: #b00020; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.photos .file { display: grid; place-items: center; width: 64px; height: 80px; margin: 0; border: 2px dashed var(--muted); border-radius: 10px; font-size: 13px; text-align: center; cursor: pointer; }
.photos .file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photos .file:focus-within { outline: 3px solid var(--orange); }
.design-row .remove { background: none; border: 0; color: #b00020; font-weight: 700; cursor: pointer; padding: 0; }
.design-row .move { background: none; border: 0; color: var(--green); font-weight: 700; cursor: pointer; padding: 0; margin-right: 12px; }
.slide-admin { margin-top: 16px; }
@media (max-width: 520px) { dialog .two { grid-template-columns: 1fr; } }

/* Product page options */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.options label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.options select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; font: 600 17px 'DM Sans', sans-serif; color: var(--ink); background: #fff; text-transform: none; letter-spacing: 0; cursor: pointer; }
.shop-links.left { justify-content: flex-start; }
.design-title { font-weight: 600; color: var(--muted); margin: -4px 0 8px; }
.price-tag { font-family: 'Bagel Fat One', sans-serif; font-size: 30px; color: var(--green); margin: 8px 0 0; min-height: 1em; }
.design-text { max-width: 70ch; margin: 40px 0 24px; }
.pre { white-space: pre-line; }

/* Visitor stats (admin) */
.admin-bar a { color: inherit; font-weight: 700; margin: 0 8px; }
.stats-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stats-range.countries .btn { padding: 6px 14px; font-size: 15px; }
.stats-total { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats-total small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.stats-table td.by { text-align: left; font-size: 14px; }

.stats-daily { display: flex; align-items: flex-end; gap: 3px; height: 120px; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 12px; margin: 0 0 32px; }
.stats-daily span { flex: 1; min-height: 2px; background: var(--orange); border-radius: 4px 4px 0 0; }
.stats section { margin-bottom: 40px; }
.stats-table { width: 100%; border-collapse: collapse; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.stats-table th, .stats-table td { padding: 10px 12px; text-align: right; border-bottom: 1px dashed #e0cfc6; white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; white-space: normal; display: flex; gap: 12px; align-items: center; }
.stats-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.stats-table img { width: 40px; height: 50px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); flex: none; }
.stats-table small { display: block; color: var(--muted); }
@media (max-width: 560px) { .stats-table th, .stats-table td { padding: 8px 6px; font-size: 14px; } .stats-table td:nth-child(4), .stats-table th:nth-child(4), .stats-table th:nth-child(5), .stats-table td.by { display: none; } }
