/* Made by Dyl: public site */
:root {
  color-scheme: light;
  --cloth: #FFFFFF;
  --cloth-line: rgba(20, 20, 20, 0.06);
  --cloth-line-strong: rgba(20, 20, 20, 0.10);
  --surface: #F4F3F0;
  --ink: #161616;
  --ink-soft: #4A4A48;
  --edge: #141414;
  --pencil: #8B8A85;
  --mustard: #E2A83A;
  --navy: #22305C;
  --sky: #8CC4E8;
  --sold: #B5402F;
  --on-ink: #FFFFFF;
  --radius: 18px;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cloth);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
main { flex: 1; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(680px, 100% - 3rem); margin-inline: auto; }

/* Header */
.announce {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
  color: var(--mustard);
  -webkit-text-stroke: 7px var(--edge);
  paint-order: stroke fill;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--navy); }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

/* Type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6rem; text-wrap: balance; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
h1.display { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2.display { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.35; }
.muted { color: var(--ink-soft); }
p { margin: 0 0 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 3px solid var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 4px 4px 0 var(--sky); }
.btn:hover { transform: translate(-1px, -1px); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--sky); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-wide { width: 100%; text-align: center; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Home hero */
.hero { text-align: center; padding: 1.5rem 0 3.5rem; }
.hero .mark { width: min(460px, 100%); margin: 0 auto 0.5rem; }
.hero .lede { max-width: 32rem; margin: 0 auto 1.5rem; }
.hero .actions { justify-content: center; }
.mark { display: block; overflow: visible; height: auto; }
.mark text { font-family: var(--display); }
.mark .tufted { stroke: var(--edge); stroke-width: 20; stroke-linejoin: round; paint-order: stroke fill; }
.mark .top { fill: var(--mustard); }
.mark .bottom { fill: var(--navy); }

/* Sections */
.section { padding: 2.5rem 0 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }

/* Listing grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.25rem; }
.card { text-decoration: none; display: block; }
.card .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .photo img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.65rem 0.2rem 0; font-weight: 600; }
.card .meta .price { white-space: nowrap; }
.card .sub { padding: 0 0.2rem; color: var(--ink-soft); font-size: 0.95rem; }
.badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 0.85rem;
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.badge.sold { background: var(--sold); color: #fff; }
.no-photo { display: grid; place-items: center; height: 100%; color: var(--pencil); font-family: var(--display); font-size: 1.4rem; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters a {
  text-decoration: none; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px; border: 2px solid var(--ink);
}
.filters a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

.empty { padding: 3rem 1rem; text-align: center; border: 2px dashed var(--pencil); border-radius: var(--radius); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; padding: 1rem 0 4rem; align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; gap: 1.5rem; } }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--surface); aspect-ratio: 4 / 5;
  overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.slides .no-photo { flex: 1; }
.dots { display: none; justify-content: center; gap: 0.4rem; margin-top: 0.7rem; }
.dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--pencil); opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.dots span.on { opacity: 1; background: var(--ink); transform: scale(1.25); }
.backlink { margin: 0.5rem 0 1rem; }
.buybar { display: none; }
.thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.thumbs button {
  flex: 0 0 72px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--surface);
}
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.details h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.details .price { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 2px solid var(--cloth-line-strong); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 600; }
.description { white-space: pre-line; }
.callout {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border-radius: var(--radius);
}
.callout p:last-child { margin: 0; }

/* Custom process */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; margin-bottom: 0.6rem;
  border-radius: 50%; background: var(--mustard); color: #161616;
  border: 3px solid var(--edge);
  font-family: var(--display); font-size: 1.05rem;
}
.steps strong { display: block; margin-bottom: 0.2rem; }
.steps span { color: var(--ink-soft); font-size: 0.97rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.choices label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; cursor: pointer;
}
.choices input { accent-color: var(--navy); }
.choices label:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.estimate {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--navy); color: #fff;
}
.estimate strong { font-size: 1.35rem; display: block; }
.nav-short { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.field .label { font-weight: 600; }
.upload {
  display: grid; gap: 0.25rem; place-items: center; text-align: center;
  padding: 1.25rem 1rem; border: 2px dashed var(--ink); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.upload-title { font-weight: 600; }
.upload .hint { margin: 0; }
#photos:focus-visible + .upload { outline: 3px solid var(--sky); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: color-mix(in srgb, var(--sold) 15%, transparent); border: 2px solid var(--sold); border-radius: 12px; padding: 0.8rem 1rem; }

/* Prose pages */
.prose { padding: 1rem 0 4rem; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.faq dt { font-weight: 600; margin-top: 1.25rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; margin-top: 2rem; border-top: 2px solid var(--cloth-line-strong); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

.preview-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--mustard); color: #161616; text-align: center;
  padding: 0.45rem 1rem; font-weight: 600; font-size: 0.95rem;
}
.preview-bar a { color: inherit; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap, .narrow { width: calc(100% - 2rem); }

  .site-header { padding: 0.75rem 0 0.5rem; }
  .site-header .wrap { gap: 0.6rem; }
  .wordmark { font-size: 1.6rem; -webkit-text-stroke-width: 6px; }
  .site-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  .site-nav a { text-align: center; padding: 0.6rem 0.4rem; font-size: 0.95rem; background: var(--surface); }
  .site-nav a[aria-current="page"] { background: var(--ink); }
  .nav-long { display: none; }
  .nav-short { display: inline; }

  .hero { padding: 0.75rem 0 2.25rem; }
  .hero .actions { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
  .hero .actions .btn, .section > .btn, .empty .btn { text-align: center; }
  .section { padding: 1.75rem 0 2.25rem; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
  .card .photo { border-width: 2px; border-radius: 14px; }
  .card .meta { flex-direction: column; gap: 0.1rem; padding-top: 0.5rem; font-size: 0.95rem; line-height: 1.3; }
  .card .sub { font-size: 0.85rem; }
  .badge { top: 0.5rem; left: 0.5rem; font-size: 0.75rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 0.25rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: 0 0 auto; }

  .product { padding-top: 0; gap: 1.25rem; }
  .backlink { margin: 0.25rem 0 0.75rem; font-size: 0.95rem; }
  .slides { margin-inline: -1rem; border-width: 0; border-radius: 0; }
  .dots { display: flex; }
  .thumbs { display: none; }
  .details .price { margin-bottom: 0.75rem; }
  .has-buybar { padding-bottom: 5rem; }
  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--cloth) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--ink);
  }
  .buybar div { display: grid; line-height: 1.25; }
  .buybar strong { font-size: 1.2rem; }
  .buybar span { font-size: 0.85rem; color: var(--ink-soft); }
  .buybar .btn { flex: 0 0 auto; padding: 0.8rem 1.6rem; box-shadow: 3px 3px 0 var(--sky); }

  .steps { gap: 0.5rem; margin: 1rem 0 1.5rem; grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: start; padding: 0.8rem 0.9rem; border-radius: 14px; }
  .steps li::before { grid-row: span 2; margin: 0; width: 1.9rem; height: 1.9rem; font-size: 0.95rem; }
  .steps strong { margin: 0; }
  .steps span { font-size: 0.9rem; }

  .row.keep { grid-template-columns: 1fr 1fr; }
  .form { gap: 1rem; }
  .form > .btn { width: 100%; text-align: center; padding: 0.95rem; }
  .choices label { padding: 0.6rem 0.95rem; }
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { font-size: 16px; }

  .prose { padding-bottom: 2.5rem; }
  .site-footer { padding: 1.75rem 0 2rem; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-footer nav { flex-direction: column; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
