/* Storefront styles: what a site's pages need beyond app.css. Served to a
   site's hosts inside /site.css, ahead of the site's theme colors. Written
   by hand, not by Tailwind: app.css resets headings, lists and tables, and
   a page's HTML comes from Markdown, so it carries no classes. */

/* The footer sits at the bottom of the window on a page shorter than it. */
body:has(> .site-footer) {
  display: flex;
  flex-direction: column;
}

body:has(> .site-footer) > main {
  flex: 1 0 auto;
}

.site-home {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.site-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.site-product {
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
}

.site-product-photo {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: -1.5rem -1.5rem 1.25rem;
  object-fit: cover;
  background: var(--ui-muted);
}

.site-product h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.site-product-price {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.site-product-description {
  margin-top: 0.75rem;
  color: var(--ui-muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.site-product-buy {
  margin-top: 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--ui-border);
}

.site-header a {
  display: inline-block;
  padding: 1.25rem 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-page {
  max-width: 42rem;
  padding: 3rem 0 4rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.site-page > * + * {
  margin-top: 1rem;
}

.site-page h1 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.site-page h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.site-page h3,
.site-page h4,
.site-page h5,
.site-page h6 {
  margin-top: 2rem;
  font-weight: 600;
}

.site-page ul,
.site-page ol {
  padding-left: 1.25rem;
}

.site-page ul {
  list-style: disc;
}

.site-page ol {
  list-style: decimal;
}

.site-page li + li {
  margin-top: 0.25rem;
}

.site-page a {
  color: var(--ui-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-page a:hover {
  color: var(--ui-primary-hover);
}

.site-page strong {
  font-weight: 600;
}

.site-page blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--ui-border);
  color: var(--ui-muted-foreground);
}

.site-page hr {
  margin: 2rem 0;
  border-color: var(--ui-border);
}

.site-page code {
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  background: var(--ui-muted);
  font-family: var(--ui-font-mono);
  font-size: 0.875em;
}

.site-page pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--ui-radius-control);
  background: var(--ui-muted);
}

.site-page pre code {
  padding: 0;
  background: none;
}

.site-page table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.site-page th,
.site-page td {
  padding: 0.5rem 1.5rem 0.5rem 0;
  border-bottom: 1px solid var(--ui-border);
  text-align: left;
  vertical-align: top;
}

.site-page th {
  font-weight: 600;
}

.site-page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ui-radius-control);
}

.site-footer {
  border-top: 1px solid var(--ui-border);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--ui-muted-foreground);
}

.site-footer a:hover,
.site-footer a[aria-current='page'] {
  color: var(--ui-foreground);
}

.site-header a:focus-visible,
.site-page a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--ui-ring);
  outline-offset: 2px;
  border-radius: 0.125rem;
}
:root{--ui-background:#fffaf0;--ui-foreground:#292524;--ui-surface:#ffffff;--ui-muted:#ffedd5;--ui-muted-foreground:#57534e;--ui-border:#fed7aa;--ui-ring:#c2410c;--ui-primary:#c2410c;--ui-primary-foreground:#ffffff;--ui-primary-hover:#9a3412;--ui-accent:#ffedd5;--ui-accent-foreground:#9a3412;}
