/* Sheett navigation and homepage. */
.site .rail {
  border-top: 4px solid var(--brand);
  background: #fffdfb;
}
.site .rail nav a.active {
  box-shadow: inset 0 -2px var(--brand);
}
.sheett-home {
  --sheett-gutter: clamp(16px, 4vw, 55px);
}
.sheett-hero-copy {
  overflow-wrap: anywhere;
}
.sheett-hero-copy h1 {
  margin: 0 0 1rem;
  color: #28201e;
  font: 800 clamp(2rem, 4vw, 4.5rem)/1.02 Inter, Arial, sans-serif;
  letter-spacing: -.045em;
}
.sheett-hero-copy p {
  max-width: 38ch;
  margin: 0 0 1.4rem;
  color: #5d4840;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}
.sheett-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.sheett-hero-links a {
  padding: .65rem .9rem;
  border: 1px solid #bd5a35;
  border-radius: .4rem;
  color: var(--brand-text);
  background: #fffdfb;
  font-size: .9375rem;
  font-weight: 700;
}
.sheett-hero-links a:first-child {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
}
.sheett-search-panel {
  display: grid;
  grid-template-columns: minmax(9rem, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1.15rem var(--sheett-gutter);
  background: #fff0e6;
  border-block: 1px solid #eaccbb;
}
.sheett-search-panel h2 {
  margin: 0 0 .3rem;
  font: 750 clamp(1.15rem, 2.25vw, 1.65rem)/1.2 Inter, Arial, sans-serif;
}
.sheett-search-panel a {
  text-decoration: underline;
  color: var(--brand-text);
  font-size: .875rem;
  font-weight: 700;
}
.sheett-search-panel .search {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.sheett-search-panel .search input[type="search"] { min-width: 0; }
.sheett-category-section {
  padding-inline: var(--sheett-gutter);
}
.site .sheett-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
}
.sheett-category-card {
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  isolation: isolate;
  border-radius: .55rem;
  color: #fff;
  background: #30241e;
}
.sheett-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.sheett-category-card::before {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #241711ed);
  z-index: -1;
}
.sheett-category-card span {
  padding: .6rem;
  color: #fff;
  font-size: clamp(.875rem, 1.27vw, 1.1rem);
  font-weight: 750;
}
.sheett-category-card:hover span { text-decoration: underline; }
.site .image-drop {
  background: #fff8f2;
  border-color: #ca7758;
}
.site .listing-info {
  border-block-start: 4px solid var(--brand);
  background: #fffaf6;
  padding: clamp(14px, 2.5vw, 28px);
  border-radius: .4rem;
}
@media (max-width: 760px) {
  .sheett-hero-copy h1 { margin-bottom: .55rem; }
  .sheett-hero-copy p { margin-bottom: .8rem; }
  .sheett-search-panel { grid-template-columns: 1fr; gap: .65rem; }
  .site .sheett-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage section order and widths follow the Sheett production page. */
.site:has(.sheett-home) { max-width: none; }
.site:has(.sheett-home) .rail {
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
}
.sheett-home {
  --sheett-gutter: max(25px, calc((100vw - 1180px) / 2));
  background: #fffdfb;
}
.sheett-home .sheett-hero {
  max-width: 1230px;
  margin-inline: auto;
  padding: clamp(22px, 3.5vw, 45px) 25px;
}
.sheett-home .sheett-hero-copy h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}
.sheett-home .sheett-hero-copy p { max-width: 58ch; }
.sheett-kicker {
  margin: 0 0 10px;
  color: var(--brand-text);
  font: 700 .8125rem/1.3 Inter, Arial, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.sheett-hero-copy p.sheett-kicker { margin-bottom: 10px; }
.sheett-home .sheett-search-panel {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  padding-block: 36px;
}
.sheett-search-panel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sheett-search-panel .search { min-height: 44px; margin-bottom: .45rem; }
.sheett-search-panel .search input {
  flex: 1;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #bb998c;
}
.sheett-search-panel .search button { border: 0; padding: .65rem 1rem; }
.sheett-attributes {
  max-width: 1230px;
  margin: 0 auto;
  padding: 18px 25px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-size: .875rem;
  font-weight: 700;
}
.sheett-attributes li::before { content: '• '; color: var(--brand-text); }
.sheett-home :is(.sheett-category-section, .sheett-featured, .sheett-toolkit, .sheett-steps, .sheett-faq) {
  padding: clamp(30px, 5vw, 65px) var(--sheett-gutter);
}
.sheett-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .75rem 1.5rem;
  margin-bottom: 22px;
}
.sheett-section-title h2, .sheett-steps h2, .sheett-faq h2 {
  margin: 0;
  font: 800 clamp(1.65rem, 3.4vw, 2.55rem)/1.05 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
}
.sheett-section-title > p { margin: 0; max-inline-size: 42ch; }
.sheett-section-title > a { text-decoration: underline; color: var(--brand-text); font-weight: 700; }
.sheett-steps {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 30px 65px;
  background: #32221b;
  color: #fff6f0;
}
.sheett-steps .sheett-kicker { color: #ffab89; }
.sheett-steps a { text-decoration: underline; font-weight: 700; }
.sheett-steps ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid #805d4f;
  background: #805d4f;
  list-style: none;
  counter-reset: workflow;
}
.sheett-steps li {
  counter-increment: workflow;
  padding: 16px;
  background: #32221b;
}
.sheett-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: .55rem;
  color: #ffab89;
  font-weight: 700;
}
.sheett-steps li p { margin: .35rem 0 0; font-size: .9rem; }
.sheett-toolkit, .sheett-faq { background: #fff0e6; }
.sheett-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sheett-tool-grid > * { min-width: 0; padding: clamp(15px, 3vw, 28px); background: #fffdfb; }
.sheett-tool-grid h3 { margin: 0 0 .85rem; font-size: 1.2rem; }
.sheett-checklist label {
  display: block;
  padding: .55rem 0;
  border-top: 1px solid #ead3c8;
  font-size: .9375rem;
}
.sheett-checklist button {
  margin-top: .65rem;
  border: 0;
  color: var(--brand-text);
  background: transparent;
  text-decoration: underline;
}
.sheett-weight label, .sheett-weight legend { font-size: .9375rem; font-weight: 600; }
.sheett-weight fieldset { border: 0; margin: .75rem 0; padding: 0; min-width: 0; }
.sheett-weight fieldset div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sheett-weight input {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .5rem;
  border: 1px solid #bb998c;
  font: inherit;
}
.sheett-weight button {
  border: 0;
  padding: .6rem .9rem;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 700;
}
.sheett-tool-grid button { cursor: pointer; }
.sheett-weight p { margin: .65rem 0 0; }
.sheett-weight output { font-weight: 700; }
.sheett-featured .live-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheett-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px 48px;
}
.sheett-faq .home-faq { padding: 0; margin: 0; }
.sheett-faq .home-faq .rowhead { display: none; }
.sheett-faq .home-faq-list { display: block; }
.sheett-faq .home-faq-list details { margin-bottom: .4rem; }
@media (max-width: 780px) {
  .sheett-home { --sheett-gutter: 18px; }
  .sheett-home .sheett-hero {
    padding: 20px 18px 24px;
  }
  .sheett-home .sheett-hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .sheett-home .sheett-search-panel, .sheett-steps, .sheett-tool-grid, .sheett-faq { grid-template-columns: 1fr; }
  .sheett-attributes, .sheett-home .sheett-category-grid, .sheett-featured .live-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sheett-section-title { display: block; }
  .sheett-section-title > :is(p,a) { display: block; margin-top: .6rem; }
}
.sheett-footer {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding: 34px var(--sheett-gutter) 22px;
  color: #fff6f0;
  background: #32221b;
}
.sheett-footer a { display: block; margin-top: .45rem; }
.sheett-footer a:hover { text-decoration: underline; }
.sheett-footer img { object-fit: contain; }
.sheett-footer .sheett-legal {
  grid-column: 1 / -1;
  padding-top: .85rem;
  border-top: 1px solid #805d4f;
  margin: 0;
  font-size: .875rem;
}
@media (max-width: 640px) {
  .sheett-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheett-footer > div:first-child { grid-column: 1 / -1; }
}
