/* EPISH / Loopy: warm paper, confident colour, a little off-centre. */
:root {
  --paper: #f8f4e9;
  --ink: #211c18;
  --secondary: #4b4842;
  --muted: #625d54;
  --line: #ded7c9;
  --blue: #2850ed;
  --focus: #2446cf;
  --gold: #ffbd27;
  --coral: #ff5934;
}
.site-header { border-bottom: 1.5px solid var(--ink); }
.header-inner { flex-wrap: nowrap; gap: 20px; padding-block: 12px; }
.brand-logo { width: 148px; }
.desktop-nav { gap: clamp(15px, 2vw, 30px); margin: 0 auto; }
.nav-link { display: flex; align-items: center; gap: 7px; min-height: 48px; font-size: 13px; color: var(--secondary); }
.drawn-nav-icon { display: block; width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; pointer-events: none; transition: transform .18s ease-out; }
.desktop-nav .drawn-nav-icon { width: 26px; height: 26px; }
.nav-link.active { color: var(--ink); font-weight: 700; }
.nav-link.active::after { height: 2px; bottom: 1px; background: var(--ink); border-radius: 1px; }
.header-actions { margin-left: 0; }
.header-actions .btn { background: #eae7df; color: var(--ink); border: 0; border-radius: 10px; box-shadow: none; }
.header-actions .btn:hover { background: #e1ded5; }
.build-strip { background: #ede8da; color: var(--muted); min-height: 34px; padding-block: 6px; font-size: 10px; }
.build-strip:hover { background: #e8e1d0; }
.drawn-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr); gap: 20px; align-items: center; padding: 48px 0 44px; }
.drawn-hero-copy { position: relative; z-index: 1; }
.drawn-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .025em; font-weight: 600; color: var(--secondary); margin-bottom: 22px; }
.drawn-hero h1 { max-width: none; font-size: clamp(48px, 5.9vw, 86px); line-height: 1.02; font-weight: 760; letter-spacing: -.055em; text-wrap: initial; }
.drawn-word { position: relative; display: inline-block; color: var(--blue); }
.drawn-word::after { content: ''; position: absolute; bottom: -.1em; left: 2%; width: 98%; height: .105em; border-bottom: .055em solid currentColor; border-radius: 45% 50% 45% 35%; transform: rotate(-2deg); pointer-events: none; }
.drawn-hero .hero-description { max-width: 38ch; font-size: 18px; margin-top: 26px; line-height: 1.55; }
.drawn-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.drawn-primary, .drawn-compose .form-actions .btn.acid { background: var(--ink); color: #fffdf7; border: 0; border-radius: 10px; box-shadow: none; min-height: 48px; padding-inline: 23px; font-size: 14px; }
.drawn-primary:hover, .drawn-compose .form-actions .btn.acid:hover { background: #45413b; }
.drawn-text-button { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; background: none; padding: 8px 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.drawn-text-button svg { color: var(--coral); }
.drawn-hero-art { position: relative; margin: 0; padding: 4px 18px 0; justify-self: center; width: 100%; max-width: 385px; }
.drawn-hero-art > img { width: 100%; height: 345px; object-fit: contain; transform: rotate(4deg); }
.drawn-note { position: absolute; z-index: 1; left: -26px; top: -6px; border: 1.5px solid var(--ink); border-radius: 47% 45% 49% 43%; padding: 14px 22px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.3; text-align: center; transform: rotate(-8deg); }
.drawn-hero-art figcaption { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; transform: rotate(-3deg); }
body[data-route="explore"] .section-heading { border-top: 1px solid var(--line); padding-top: 22px; }
body[data-route="explore"] .spotlight-art { border: 0; border-radius: 16px; }
body[data-route="explore"] .save-button { border: 0; }
body[data-route="explore"] .feature-banner { background: #e9ede0; border: 0; border-radius: 16px; }
body[data-route="explore"] .feature-banner .btn { background: var(--ink); color: white; }
.drawn-compose { max-width: 1340px; }
.drawn-compose-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 38px 0 28px; }
.drawn-compose-hero .drawn-kicker { margin-bottom: 18px; }
.drawn-compose-hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.04; font-weight: 750; letter-spacing: -.045em; max-width: 16ch; text-wrap: initial; margin-bottom: 22px; }
.drawn-compose-hero p:not(.drawn-kicker) { font-size: 16px; line-height: 1.6; }
.drawn-creator-art { margin: 0; justify-self: center; width: min(100%, 340px); }
.drawn-creator-art img { height: 265px; width: 100%; object-fit: contain; }
.drawn-creator-art figcaption { font-size: 12px; text-align: center; color: var(--muted); transform: rotate(-3deg); }
.drawn-compose .compose-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; }
.drawn-form { background: #fffdf7; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; padding: 28px; }
.drawn-form-heading { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; }
.drawn-form-heading:not(:first-child) { margin-top: 32px; }
.drawn-form-heading > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--gold); border: 1.5px solid var(--ink); border-radius: 46% 52% 47% 49%; transform: rotate(-5deg); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.drawn-form-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.drawn-form .upload-drop { border: 1px dashed #a9a398; background: #f4f1e9; border-radius: 12px; min-height: 190px; }
.drawn-form .upload-drop > .drawn-nav-icon { position: static; width: 46px; height: 46px; object-fit: contain; }
.drawn-form .upload-drop strong { font-weight: 600; font-size: 14px; text-wrap: balance; }
.drawn-form .field input, .drawn-form .field textarea, .drawn-form .field select { border-color: #a9a398; border-radius: 8px; background: #fffefb; }
.drawn-form .field input:focus, .drawn-form .field textarea:focus, .drawn-form .field select:focus { border-color: var(--blue); }
.drawn-form .check-field input { accent-color: var(--blue); }
.drawn-form .check-field { padding: 14px; border: 1px solid #d9dfce; border-radius: 9px; background: #eff2e8; }
.drawn-form .form-actions { flex-wrap: wrap; }
.drawn-form .field label { font-size: 13px; }
.drawn-form .field small { font-size: 11px; }
.drawn-compose .compose-preview { padding-top: 12px; }
.drawn-compose .compose-preview > .eyebrow { margin-bottom: 20px; }
.drawn-compose .compose-preview .art-wrap { border: 0; border-radius: 16px; }
.drawn-compose .drawn-info { background: #f0ead9; border: 0; padding: 24px; border-radius: 9px 17px 11px 14px; margin-top: 24px; }
.drawn-stamp { display: inline-block; padding: 5px 8px; border: 1.5px solid var(--blue); color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .06em; transform: rotate(-4deg); margin-bottom: 18px; }
.drawn-info h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.drawn-info p { color: var(--secondary); font-size: 13px; line-height: 1.65; }
@media (min-width: 601px) and (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; gap: 8px 18px; }
  .desktop-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px; margin: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .header-actions { margin-left: auto; }
  .header-actions .new-idea { display: inline-flex; }
  .drawn-hero h1 { font-size: clamp(40px, 6vw, 62px); }
  .drawn-hero { grid-template-columns: 1.45fr 1fr; }
  .drawn-hero-art { padding: 0; }
  .drawn-hero-art > img { height: 280px; }
  .drawn-note { left: -12px; top: -18px; font-size: 10px; padding: 10px 15px; }
  .drawn-hero .hero-description { font-size: 16px; }
  .drawn-hero-actions { gap: 15px; }
}
@media (max-width: 850px) {
  .drawn-compose .compose-layout { grid-template-columns: 1fr; max-width: 100%; }
  .drawn-compose .compose-preview { display: none; }
  .drawn-compose-hero { grid-template-columns: 1.3fr 1fr; gap: 15px; }
  .drawn-creator-art img { height: 220px; }
  .drawn-compose-hero h1 { font-size: 42px; }
}
@media (max-width: 600px) {
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner { min-height: 70px; gap: 10px; padding: 10px 16px; }
  .brand .brand-logo { width: 108px; }
  .header-actions { margin-left: auto; gap: 4px; }
  .header-actions .btn { font-size: 12px; padding: 9px 10px; min-height: 40px; }
  .header-actions .icon-btn, .avatar-btn { width: 38px; height: 44px; }
  .drawn-hero { display: block; position: relative; padding: 27px 0 30px; }
  .drawn-kicker { font-size: 10px; gap: 6px; margin-bottom: 15px; }
  .drawn-hero h1 { font-size: clamp(36px, 10.2vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
  .drawn-hero .hero-description { font-size: 15px; max-width: 36ch; margin-top: 22px; }
  .drawn-hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 25px; padding-right: 115px; }
  .drawn-primary { padding-inline: 16px; font-size: 12px; min-height: 44px; gap: 7px; white-space: nowrap; }
  .drawn-text-button { font-size: 12px; }
  .drawn-hero-art { position: absolute; width: 137px; height: 147px; right: -4px; bottom: 20px; padding: 0; }
  .drawn-hero-art > img { height: 147px; transform: rotate(7deg); }
  .drawn-note, .drawn-hero-art figcaption { display: none; }
  body[data-route="explore"] .section-heading { padding-top: 20px; }
  .mobile-nav { background: var(--paper); border-top: 1.5px solid var(--ink); padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
  .mobile-nav button { position: relative; gap: 3px; padding: 6px 2px; color: var(--secondary); font-size: 10px; border-radius: 8px 11px 9px 10px; }
  .mobile-nav button.active { background: #eae7df; color: var(--ink); font-weight: 700; }
  .mobile-nav .nav-icon { width: 30px; height: 30px; }
  .mobile-nav .drawn-nav-icon { width: 29px; height: 29px; }
  .mobile-nav .wishlist-count { background: var(--ink); color: white; border-color: var(--paper); }
  .drawn-compose-hero { position: relative; display: block; padding: 28px 0 28px; }
  .drawn-compose-hero h1 { font-size: clamp(34px, 9.4vw, 46px); max-width: 16ch; margin-bottom: 18px; }
  .drawn-compose-hero p:not(.drawn-kicker) { font-size: 14px; max-width: 24ch; padding-right: 3px; }
  .drawn-creator-art { position: absolute; width: 135px; right: -7px; bottom: 21px; }
  .drawn-creator-art img { height: 120px; }
  .drawn-creator-art figcaption { display: none; }
  .drawn-compose .drawn-form { padding: 22px 17px; box-shadow: none; }
  .drawn-form-heading { gap: 9px; margin-bottom: 21px; }
  .drawn-form-heading h2 { font-size: 16px; }
  .drawn-form .upload-drop { padding: 18px 12px; min-height: 180px; }
  .drawn-form .upload-drop strong { font-size: 13px; }
  .drawn-compose .form-actions .btn { font-size: 13px; }
}
@media (max-width: 359px) {
  .brand .brand-logo { width: 94px; }
  .header-inner { gap: 6px; }
  .header-actions .btn { font-size: 11px; padding-inline: 8px; }
  .drawn-hero-art { width: 118px; right: -9px; }
  .drawn-hero-actions { padding-right: 104px; }
  .drawn-compose-hero p:not(.drawn-kicker) { font-size: 13px; max-width: 24ch; }
  .drawn-creator-art { width: 113px; right: -8px; bottom: 26px; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover .drawn-nav-icon, .mobile-nav button:hover .drawn-nav-icon { transform: rotate(-7deg) translateY(-2px); }
  .drawn-hero-art:hover > img { transform: rotate(0deg); transition: transform .2s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .drawn-nav-icon, .drawn-hero-art > img { transition: none !important; transform: none !important; }
}

/* Category browsing: a quiet editorial row beneath the main navigation. */
.category-navigation { display:flex; align-items:center; gap:12px; padding:0 32px; border-top:1px solid var(--line); }
.category-rail.chips { display:flex; flex:1; min-width:0; gap:18px; overflow-x:auto; margin:0; padding:0; scrollbar-width:thin; }
.category-link { background:transparent; flex-shrink:0; min-height:48px; padding:10px 0; font-size:12px; color:var(--secondary); white-space:nowrap; border-bottom:2px solid transparent; }
.category-link:hover, .category-link.active { color:var(--blue); border-bottom-color:var(--blue); }
.category-link.active { font-weight:700; }
.all-categories { background:transparent; display:flex; flex-shrink:0; gap:7px; align-items:center; min-height:44px; border-left:1px solid var(--line); padding-left:14px; font-size:12px; font-weight:650; }
.category-selection { display:flex; align-items:center; gap:16px; margin-top:12px; font-size:12px; color:var(--muted); }
.category-selection button { background:transparent; display:flex; gap:8px; align-items:center; min-height:44px; color:var(--ink); }
.category-selection button:first-child { font-weight:650; }
.category-directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; margin-top:28px; }
.category-directory h3 { font-size:14px; padding-bottom:12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.category-directory button { background:transparent; display:block; width:100%; min-height:44px; text-align:left; font-size:14px; padding:9px 6px; border-radius:5px; }
.category-directory button:hover, .category-directory button[aria-pressed="true"] { color:var(--blue); background:#2850ed0c; }
@media(min-width:1440px) { .category-rail.chips { justify-content:space-between; } }
@media(max-width:600px) { .category-navigation { padding:0 16px; gap:10px; } .category-rail.chips { gap:20px; } .category-link { font-size:13px; } .all-categories { font-size:11px; padding-left:10px; } .category-directory { grid-template-columns:1fr; gap:20px; } }
