/* Design tokens, element defaults and typography. Plain CSS, no build step.
   Load order (see layouts/application): base, layout, components, catalog, cart. */

:root {
  /* Industry (title and heading) is never italic: each rule using it sets
     font-style: normal, so it doesn't inherit italics (the footer, menus). */
  --font-title: "industry-inc-inline", Helvetica, sans-serif;
  --font-heading: "industry-inc-base", Helvetica, sans-serif;
  --font-body: "freight-text-pro", Georgia, serif;

  --color-brown: #712600;
  --color-accent: #cf5050;
  --color-accent-visited: #9c2c2c;
  --color-text: #000;
  --color-muted: #666;
  --color-border: #ccc;
  --color-panel: #eee;
  --color-footer-primary: #3c3c3c;
  --color-footer-secondary: #1a1a1a;

  --page-max-width: 1300px;
  --page-width: 90%;
  --page-padding: clamp(1rem, 4vw, 57px);
  --gap: 1.5rem;
  --border-width: 0.1rem;
  --line-height: 1.5;
}

html {
  font-size: 16px;
}

/* Component display rules must never un-hide something marked hidden. */
[hidden] {
  display: none !important;
}

@media (min-width: 800px) {
  html { font-size: 18px; }
}

@media (min-width: 1500px) {
  html { font-size: 20px; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: var(--line-height);
  color: var(--color-text);
  background: #000 url("/assets/site/background-550ed030.jpg") center top / cover fixed;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-brown);
}

* + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.5em;
}

h1, h2 {
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-title);
  font-style: normal;
  font-size: 2.4rem;
  letter-spacing: -1px;
}

h2 {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

h3, h4, h5, h6 {
  font-style: italic;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1.5em;
}

a {
  color: var(--color-accent);
}

a:visited {
  color: var(--color-accent-visited);
}

img {
  max-width: 100%;
  height: auto;
}

/* catalog_image_tag wraps images in <picture> to offer AVIF/WebP; lay out just the <img>. */
picture {
  display: contents;
}

hr {
  clear: both;
  border: 0;
  border-bottom: var(--border-width) solid var(--color-border);
  margin: 1.5rem 0;
}

blockquote {
  margin: 1.5rem 2rem;
  font-style: italic;
  text-align: center;
  font-size: 1.2em;
  color: var(--color-brown);
}

input:is([type=text], [type=search], [type=email], [type=number], [type=tel]),
select,
textarea {
  box-sizing: border-box;
  padding: 0.2em 0.3em;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: #fff;
  font: inherit;
}

/* A heading centered between two horizontal rules. */
.heading-rule {
  display: flex;
  align-items: baseline;
  gap: 1em;
  text-align: center;
  clear: both;
}

.heading-rule::before,
.heading-rule::after {
  content: "";
  flex: 1;
  border-top: var(--border-width) solid var(--color-border);
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Rich text from catalog descriptions and static pages. */
.prose > :first-child {
  margin-top: 0;
}

.prose :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.5rem 0 0.75rem;
}

.prose :is(ul, ol) {
  margin: 1em 0;
}

.prose :is(p, ul, ol) + p {
  margin-top: 1em;
}

.prose table {
  border-collapse: collapse;
}

.prose :is(td, th) {
  padding: 0.25em 0.5em;
  border: 1px solid var(--color-border);
}

.prose .alignleft,
.prose .alignright,
.prose [align=left],
.prose [align=right] {
  display: block;
  margin: 1rem auto;
}

@media (min-width: 800px) {
  .prose .alignleft,
  .prose [align=left] {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 33%;
  }

  .prose .alignright,
  .prose [align=right] {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 33%;
  }
}

.prose .aligncenter {
  display: block;
  margin-inline: auto;
}

.prose figure {
  margin: 1rem 0;
}

.prose figcaption {
  font-size: 0.85em;
  font-style: italic;
  color: var(--color-muted);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1.5em 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
