/* Homemade Y'all
   Palette: paper, ink, bluebonnet (actions + refrigerated), prickly pear (one accent), sage (quiet surfaces). */
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FFFDF8;
  --ink: #24211D;
  --muted: #655F56;
  --line: #E4DED3;
  --bluebonnet: #34479E;
  --bluebonnet-deep: #263579;
  --bluebonnet-soft: #E7EBF8;
  --pear: #B8325E;
  --pear-soft: #F8E6EC;
  --sage: #EDF1E8;
  --ok: #2F6B3F;
  --warn-bg: #FFF4D6;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --r-sm: 6px;
  --r: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bluebonnet); text-underline-offset: 3px; }
a:hover { color: var(--bluebonnet-deep); }
:focus-visible { outline: 3px solid var(--pear); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.wordmark svg { width: 28px; height: 28px; color: var(--pear); }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bluebonnet); text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans); padding: 13px 20px; border-radius: 999px;
  border: 2px solid var(--bluebonnet); background: var(--bluebonnet); color: #fff;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--bluebonnet-deep); border-color: var(--bluebonnet-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--bluebonnet); }
.btn.ghost:hover { background: var(--bluebonnet-soft); color: var(--bluebonnet-deep); }
.btn.small { padding: 9px 14px; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.nav .btn { color: #fff; text-decoration: none; }

@media (max-width: 720px) {
  .site-header .wrap { gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; font-size: .95rem; }
  .nav .btn { padding: 9px 14px; }
}
@media (max-width: 420px) { .nav .nav-about { display: none; } .nav { justify-content: flex-start; gap: 18px; } .nav .btn { margin-left: auto; } }

/* Hero: the sentence search is the page's one bold move */
.hero { padding: 48px 0 28px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-kicker { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; max-width: 46ch; }
.sentence {
  font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.32;
  margin: 0 0 22px; color: var(--ink);
}
.sentence .slot {
  font: inherit; color: var(--bluebonnet); background: transparent;
  border: 0; border-bottom: 3px solid var(--pear); border-radius: 0;
  padding: 0 4px 2px; margin: 0 4px; vertical-align: baseline;
}
.sentence input.slot { width: 9.5em; max-width: 100%; }
.sentence input.slot::placeholder { color: #A7A0C9; opacity: 1; }
.sentence select.slot { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: .9em;
  background-image: linear-gradient(45deg, transparent 50%, var(--pear) 50%), linear-gradient(-45deg, transparent 50%, var(--pear) 50%);
  background-position: right .15em top 58%, right 0 top 58%; background-size: .3em .3em; background-repeat: no-repeat; max-width: 100%; }
.sentence .slot:focus { outline: none; background: var(--bluebonnet-soft); }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 180px 180px var(--r) var(--r); }
.hero-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-figure { display: none; }
  .sentence input.slot { width: 100%; margin: 0; }
  .sentence .wrapline { display: block; }
}

/* Category chips */
.browse { padding: 8px 0 4px; }
.browse h2 { font-size: 1.25rem; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: 500 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--bluebonnet); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ic { color: var(--bluebonnet); width: 1em; height: 1em; }
.chip[aria-pressed="true"] .ic { color: #BFC9F2; }
.legend { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.legend .ic { color: var(--bluebonnet); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.toggle { position: relative; display: inline-flex; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.toggle span {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-sm);
  border: 1.5px dashed #C9C2B5; padding: 8px 12px; font-weight: 500; font-size: .95rem; background: var(--paper);
}
.toggle input:checked + span { border-style: solid; border-color: var(--bluebonnet); background: var(--bluebonnet-soft); color: var(--bluebonnet-deep); }
.toggle input:focus-visible + span { outline: 3px solid var(--pear); outline-offset: 2px; }
.toggle .ic { color: var(--bluebonnet); }

/* Results */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 14px; }
.results-head h2 { margin: 0; font-size: 1.6rem; }
.linkbtn { background: none; border: 0; color: var(--bluebonnet); font: 500 1rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; padding-bottom: 56px; }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.card .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--sage); }
.card:hover .photo { filter: brightness(.95); }
.card h3 { margin: 12px 0 2px; font-size: 1.3rem; }
.card:hover h3 { color: var(--bluebonnet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.card .where { color: var(--muted); font-size: .95rem; display: flex; gap: 5px; align-items: center; margin-bottom: 8px; }
.card .cats { font-size: .92rem; margin-bottom: 8px; }
.card .cats .cold { color: var(--bluebonnet); white-space: nowrap; }
.card .cats .ic { width: .95em; height: .95em; vertical-align: -2px; }
.monogram { display: grid; place-items: center; background: var(--sage); color: var(--ok); }
.monogram span { font-family: var(--serif); font-size: 3.2rem; letter-spacing: .02em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 500; color: var(--ok); background: #E8F1E9; border-radius: 999px; padding: 4px 10px 4px 8px; }
.badge .ic { width: 1em; height: 1em; }
.sample-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--pear); background: var(--pear-soft); border-radius: 4px; padding: 2px 8px; margin-top: 10px; align-self: flex-start; }
.empty { padding: 36px 0 64px; max-width: 52ch; }
.empty h2 { font-size: 1.5rem; }

/* Footer */
.site-footer { background: var(--ink); color: #E9E5DD; padding: 40px 0 32px; margin-top: 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer .wordmark { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .fine { color: #B9B3A8; font-size: .85rem; margin-top: 26px; max-width: 80ch; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Maker page */
.crumb { padding: 20px 0 8px; font-size: .95rem; }
.sample-banner { background: var(--pear-soft); color: #6E1D38; border-radius: var(--r-sm); padding: 12px 16px; margin: 6px 0 18px; font-size: .95rem; }
.profile { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 44px; padding: 8px 0 56px; align-items: start; }
.profile h1 { margin-bottom: 6px; }
.profile .where { color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.gallery { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; margin: 18px 0 26px; }
.gallery img, .gallery .monogram { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery.one { grid-template-columns: 1fr; }
.gallery .monogram span { font-size: 5rem; }
.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 1.45rem; }
.catlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.catlist li { display: grid; gap: 2px; }
.catlist strong { font-weight: 600; }
.catlist .coldnote { color: var(--bluebonnet-deep); font-size: .93rem; display: flex; gap: 6px; align-items: center; }
.badgelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.badgelist li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.badgelist .ic { color: var(--ok); width: 1.4em; height: 1.4em; margin-top: 1px; }
.badgelist span { color: var(--muted); font-size: .95rem; display: block; }
.order { position: sticky; top: 20px; background: var(--sage); border-radius: var(--r); padding: 24px; }
.order h2 { font-size: 1.5rem; margin-bottom: 6px; }
.order .lead { color: var(--muted); font-size: .95rem; }
.order .btn { width: 100%; margin: 6px 0 10px; }
.order .alt { display: grid; gap: 8px; margin: 4px 0 16px; }
.order .alt a { display: inline-flex; gap: 8px; align-items: center; }
.order dl { margin: 16px 0 0; display: grid; gap: 10px; font-size: .97rem; }
.order dt { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.order dd { margin: 0 0 0 1.75em; color: var(--muted); }
.ig-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ig-embeds blockquote { margin: 0 !important; min-width: 0 !important; }
details.report { margin-top: 18px; font-size: .95rem; }
details.report summary { cursor: pointer; color: var(--muted); }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 12px; }
  .order { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:nth-child(n+2) { display: none; }
}

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--muted); font-size: .92rem; font-weight: 400; }
input:not([type]), input[type="text"], input[type="search"]:not(.slot), input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid #CFC8BB; border-radius: var(--r-sm); padding: 11px 12px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bluebonnet); box-shadow: 0 0 0 3px var(--bluebonnet-soft); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bluebonnet); }
.field .check, .field label.check { font-weight: 400; }
.check small { display: block; color: var(--muted); font-size: .9rem; }
.check.disabled { opacity: .55; }
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.catpick .check { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff; }
.catpick .check:has(input:checked) { border-color: var(--bluebonnet); background: var(--bluebonnet-soft); }
.catpick .ic { color: var(--bluebonnet); width: 1em; height: 1em; vertical-align: -2px; }
.notice { border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 18px; font-size: .97rem; }
.notice.cold { background: var(--bluebonnet-soft); color: var(--bluebonnet-deep); }
.notice.stop { background: var(--pear-soft); color: #6E1D38; }
.notice.info { background: var(--warn-bg); color: #5B4310; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: 6px 0 10px; padding-left: 1.2em; }
.error-msg { color: var(--pear); font-weight: 500; font-size: .95rem; }

/* Wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 8px 0 64px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); padding-right: 10px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #C9C2B5; font-weight: 600; }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps li[aria-current="step"]::before { background: var(--bluebonnet); color: #fff; border-color: var(--bluebonnet); }
.steps li.done::before { content: "\2713"; background: var(--sage); border-color: var(--sage); color: var(--ok); }
.step h2 { font-size: 1.6rem; }
.wiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-card { background: var(--sage); border-radius: var(--r); padding: 22px; font-size: .97rem; position: sticky; top: 20px; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card ul { padding-left: 1.1em; margin: 0 0 12px; }
.success { padding: 24px 0 72px; max-width: 60ch; }
@media (max-width: 860px) { .wizard { grid-template-columns: 1fr; gap: 24px; } .aside-card { position: static; } }

/* Law + about pages */
.page-head { padding: 40px 0 10px; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 18px 0 64px; align-items: start; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.toc { position: sticky; top: 20px; font-size: .95rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.never { list-style: none; padding: 0 !important; margin: 0 0 14px; display: grid; gap: 8px; }
.never li { background: var(--pear-soft); color: #6E1D38; border-radius: var(--r-sm); padding: 10px 14px; margin: 0 !important; }
.label-sample { font-family: var(--sans); background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; padding: 16px 18px; font-size: .95rem; max-width: 46ch; }
.label-sample p { margin: 0 0 6px; }
.label-sample .caps { font-weight: 600; font-size: .85rem; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Photo uploads in the Add your business form */
.upload { display: grid; gap: 8px; }
.upload input[type="file"] { font: inherit; padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: #fff; width: 100%; }
.upload input[type="file"]:hover { border-color: var(--bluebonnet); }
.upload-status { margin: 0; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.upload-status img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.upload-status.bad { color: var(--pear); font-weight: 500; }
.cert-field { margin: 4px 0 6px 30px; }
@media (max-width: 520px) { .cert-field { margin-left: 0; } }
