/* Moss & Order site styles */
:root {
  --cream: #FBF7EE;
  --cream-2: #F4EDE0;
  --paper: #FFFFFF;
  --ink: #2B2A26;
  --ink-2: #5E5A52;
  --ink-3: #8C877C;
  --line: #E7E0D2;
  --sage: #7F9E8F;
  --sage-dark: #5D7D6E;
  --sage-soft: #DDEBE2;
  --peach: #F8DCCB;
  --blush: #E9B9B6;
  --terracotta: #B5664F;
  --terracotta-dark: #9A5340;
  --gold: #DDB052;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 42, 38, .04), 0 8px 24px rgba(43, 42, 38, .06);
  --serif: "Lora", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: .8em;
}
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(251, 247, 238, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 16px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .92rem/1 var(--sans); letter-spacing: .02em;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--terracotta); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--terracotta-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-3); }
.btn-sage { background: var(--sage-dark); }
.btn-sage:hover { background: #4C6A5C; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.divider-heart { display: flex; align-items: center; gap: 14px; margin: 22px 0; max-width: 360px; }
.divider-heart::before, .divider-heart::after { content: ""; flex: 1; height: 1.5px; background: var(--sage); opacity: .7; }
.divider-heart i { width: 12px; height: 11px; background: var(--blush); clip-path: path("M6 11 L0.8 5.6 A3 3 0 0 1 6 1.6 A3 3 0 0 1 11.2 5.6 Z"); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 22px 24px 24px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--ink-2); font-size: .95rem; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43,42,38,.05), 0 16px 36px rgba(43,42,38,.09); }
.card .price { font-weight: 600; color: var(--terracotta); font-size: .9rem; }
a.card.tool-card, .tool-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.tool-card .card-body { padding: 40px; }
.tool-card img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { a.card.tool-card, .tool-card { grid-template-columns: 1fr; } .tool-card .card-body { padding: 26px; } }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--sage-soft); color: var(--sage-dark); padding: 5px 10px; border-radius: 99px; margin-bottom: 12px; }

section { padding: 48px 0; }
.section-alt { background: var(--cream-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--ink); }

/* Prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin: 1.2em 0 1.6em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sage-soft); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark); }
.prose tr:last-child td { border-bottom: 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

.promo { display: grid; grid-template-columns: 300px 1fr; gap: 0; align-items: stretch; }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo .card-body { padding: 32px 36px; align-self: center; }
@media (max-width: 700px) { .promo { grid-template-columns: 1fr; } .promo img { aspect-ratio: 1; } }

/* Ad slots stay hidden until an ad network is connected */
.ad-slot { display: none; }
.ad-slot.is-live { display: block; margin: 32px auto; min-height: 100px; text-align: center; }
