/* ============================================================
   Loden — shared stylesheet for lodenthemes.com
   Design tokens derived from the locked Petistic/Loden system:
   parchment background, loden-green primary, leather-brown accent,
   Fraunces (display) + Inter (body).
   Signature element: the "twill" divider — a woven diagonal stripe
   referencing loden cloth's own weave.
   ============================================================ */

:root {
  --parchment: #F3EEE1;
  --parchment-deep: #EAE2CF;
  --loden: #3E4A2E;
  --loden-deep: #2B3521;
  --leather: #A9673B;
  --leather-deep: #8A5230;
  --ink: #2B2A25;
  --ink-soft: #5C594E;
  --fog: #DCD3C0;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leather); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--leather);
  outline-offset: 3px;
}

/* --- Twill divider: the signature element ---
   A thin band of alternating diagonal stripes, evoking the
   woven texture of loden cloth. Used between major sections. */
.twill {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--loden) 0px,
    var(--loden) 6px,
    var(--loden-deep) 6px,
    var(--loden-deep) 12px
  );
}
.twill--thin { height: 4px; }

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--loden);
  letter-spacing: 0.01em;
}
.wordmark em {
  font-style: italic;
  color: var(--leather);
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin-left: 1.75rem;
}
.site-nav a:hover { color: var(--leather); }
.site-nav a.current { color: var(--leather); }

/* --- Hero --- */
.hero {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--loden);
  max-width: 34rem;
  margin: 0 0 1rem;
}
.hero p.lede {
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- Content --- */
main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.content-col { max-width: var(--measure); }

section.block {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--fog);
}
section.block:last-of-type { border-bottom: none; }

section.block h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--loden);
  margin: 0 0 0.9rem;
}
section.block h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.4rem;
}
section.block p { margin: 0 0 0.9rem; color: var(--ink); }
section.block ul, section.block ol {
  padding-left: 1.25rem;
  margin: 0 0 0.9rem;
}
section.block li { margin-bottom: 0.4rem; }
code {
  background: var(--parchment-deep);
  border: 1px solid var(--fog);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed var(--fog);
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.faq-item .q {
  font-weight: 700;
  color: var(--loden);
  margin-bottom: 0.35rem;
}

/* --- Cards / callouts --- */
.callout {
  background: var(--parchment-deep);
  border: 1px solid var(--fog);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* --- Form --- */
.field {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: 7px;
  padding: 0.65rem 0.8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}
@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
}
button.submit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--parchment);
  background: var(--loden);
  border: none;
  border-radius: 7px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
button.submit:hover { background: var(--loden-deep); }

/* --- Footer --- */
footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--leather); }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav a { margin-left: 0; margin-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button.submit { transition: none; }
}
