/* Sterling Treats — sterlingtreats.com
   Cream paper, sage, and brass. Scoped class names live on the body.st site. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,560;0,9..144,680;1,9..144,560&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --ink: #1c1612;
  --ink-soft: #5a4d43;
  --paper: #f6f0e6;
  --paper-2: #fffaf3;
  --sage: #24382e;
  --sage-mid: #3d5c4a;
  --brass: #a6843d;
  --brass-deep: #6d5222;
  --ember: #9a4328;
  --line: rgba(28, 22, 18, 0.14);
  --shadow: 0 18px 40px rgba(36, 56, 46, 0.12);
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: 22px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(166, 132, 61, 0.16), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(36, 56, 46, 0.12), transparent 50%),
    var(--paper);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sage-mid);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav-shop {
  background: var(--sage);
  color: #f6f0e6 !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.nav-shop:hover {
  background: var(--sage-mid);
  color: #fffaf3 !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  padding: 48px 0 20px;
  align-items: stretch;
}

.walk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  grid-template-areas:
    "copy video"
    "panel video";
  gap: 22px 32px;
  align-items: start;
}

.hero.walk {
  padding-bottom: 8px;
}

.hero-copy {
  grid-area: copy;
}

.walk > .short {
  grid-area: video;
  align-self: start;
}

.walk > .panel {
  grid-area: panel;
  margin-top: 0;
}

.short {
  margin: 0;
}

.short-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.short-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.short figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.kicker {
  margin: 0 0 10px;
  color: var(--brass-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.lede,
.sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.lede {
  max-width: 40rem;
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--sage);
  color: #f6f0e6;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  border: 1px solid var(--sage);
  cursor: pointer;
}

.btn:hover {
  background: #1a2b22;
  color: #fffaf3;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.stat strong {
  font-weight: 650;
}

.section {
  padding: 36px 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 18px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: rgba(255, 250, 243, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card p:last-child,
.product p:last-child {
  margin-bottom: 0;
}

.product {
  display: grid;
  gap: 8px;
  background: var(--sage);
  color: #f6f0e6;
  border-radius: 22px;
  padding: 22px;
  min-height: 100%;
}

.product a {
  color: #f3e2b8;
}

.product .price {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0;
}

.product .btn {
  background: #f3e2b8;
  color: var(--sage);
  border-color: #f3e2b8;
  justify-self: start;
}

.product .btn:hover {
  background: #fffaf3;
  color: var(--ink);
}

.bits {
  background: #6d5222;
}

.mark-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bone {
  width: 72px;
  height: 72px;
  flex: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--brass-deep);
  font-family: var(--display);
  font-size: 1.3rem;
}

.pull {
  margin: 8px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

.list li + li {
  margin-top: 6px;
}

.note {
  background: #efe4cf;
  border-left: 4px solid var(--brass);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-2);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.span-2 {
  grid-column: 1 / -1;
}

label {
  font-weight: 650;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.mission-cta {
  background: var(--ink);
  color: #f6f0e6;
}

.mission-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 40px 0;
}

.mission-cta-copy {
  flex: 1 1 280px;
  max-width: 40rem;
}

.mission-cta .kicker {
  color: #f3e2b8;
}

.mission-cta h2 {
  margin: 0 0 8px;
  color: #f6f0e6;
}

.mission-lead {
  margin: 0;
  color: rgba(246, 240, 230, 0.86);
}

.mission-cta .btn {
  flex: none;
  background: #f3e2b8;
  color: var(--ink);
  border-color: #f3e2b8;
}

.mission-cta .btn:hover {
  background: #fffaf3;
  color: var(--ink);
}

.site-footer {
  margin-top: 0;
  background: var(--sage);
  color: #f6f0e6;
  padding: 36px 0 28px;
}

.site-footer a {
  color: #f3e2b8;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 22px;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fine {
  margin: 22px 0 0;
  color: rgba(246, 240, 230, 0.78);
  font-size: 0.92rem;
}

body.frame-open {
  overflow: hidden;
}

.frame-host {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  padding: 12px;
  background: rgba(28, 22, 18, 0.62);
}

.frame-host[hidden] {
  display: none;
}

.frame-sheet {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: 100%;
  margin: 0 auto;
  background: var(--paper-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--sage);
  color: #f6f0e6;
}

.frame-bar p {
  margin: 0;
  font-weight: 650;
}

#frame-close {
  font: inherit;
  font-weight: 650;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #f3e2b8;
  color: var(--sage);
  cursor: pointer;
}

.frame-sheet iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(246, 240, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }

  .nav-shop {
    margin-top: 8px;
    text-align: center;
  }

  .hero,
  .grid-2,
  .grid-3,
  .steps,
  .form-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .walk,
  .hero.walk {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "video"
      "panel";
  }

  .short {
    max-width: 280px;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.sterling-chat-launcher,
.sterling-chat-close,
.sterling-chip {
  font: inherit;
  cursor: pointer;
}

.sterling-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: #f6f0e6;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.sterling-chat-launcher:hover {
  background: #1a2b22;
}

.sterling-face {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fffaf3;
}

.sterling-chat-launcher .sterling-face {
  width: 40px;
  height: 40px;
}

.sterling-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 108px));
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sterling-chat-panel[hidden] {
  display: none;
}

.sterling-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: var(--sage);
  color: #f6f0e6;
}

.sterling-chat-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 560;
  color: #f6f0e6;
}

.sterling-chat-head p {
  margin: 0;
  color: #f3e2b8;
  font-size: 0.88rem;
}

.sterling-chat-head .sterling-face {
  flex: none;
}

.sterling-chat-close {
  margin-left: auto;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #f3e2b8;
  color: var(--sage);
  font-weight: 650;
}

.sterling-chat-shop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #fffaf3;
  border-bottom: 1px solid var(--line);
}

.sterling-chat-shop .btn {
  flex: 1 1 140px;
  min-height: 42px;
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
}

.sterling-chat-head,
.sterling-chat-shop,
.sterling-chat-chips,
.sterling-chat-form {
  flex-shrink: 0;
}

.sterling-chat-log {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sterling-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
}

.sterling-msg p {
  margin: 0 0 8px;
}

.sterling-msg p:last-child {
  margin-bottom: 0;
}

.sterling-msg a {
  display: inline-flex;
  margin: 8px 8px 0 0;
  font-weight: 650;
}

.sterling-msg-sterling {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.sterling-msg-visitor {
  align-self: flex-end;
  background: var(--sage);
  color: #f6f0e6;
}

.sterling-chat-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
}

.sterling-chip {
  flex: none;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
}

.sterling-chip:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
}

.sterling-chat-form {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.sterling-chat-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sterling-chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
}

.sterling-chat-form .btn {
  flex: none;
}

@media (max-width: 860px) {
  .sterling-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
  }
}

@media (max-height: 480px) {
  .sterling-chat-head p {
    display: none;
  }
}
