/* Shared styles for Solin commerce pages.
   Sprint-5 B3. Editorial + warm + organic per frontend-design skill.
   Kept separate from index.html (which has its own inline CSS) to avoid regressing the live hero. */

:root {
  color-scheme: light;
  --bg: #F6F1E7;
  --bg-card: #FBF7EE;
  --ink: #1A1A1A;
  --ink-soft: #45403A;
  --ink-dim: #7A7269;
  --sun: #E89648;
  --sun-deep: #B85E18;
  --rule: #D9CFBE;
  --paper: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  position: relative;
  min-height: 100dvh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

.serif { font-family: 'Fraunces', ui-serif, Georgia, "Times New Roman", serif; letter-spacing: -0.015em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.sun { color: var(--sun); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 40px) clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

/* TOP NAV — thin, editorial. Mobile-friendly horizontal scroll. */
header.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
header.top .brand { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; text-decoration: none; }
header.top nav.primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  display: flex;
  gap: 20px;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
header.top nav.primary::-webkit-scrollbar { display: none; }
header.top nav.primary a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
header.top nav.primary a:hover { color: var(--sun-deep); }
header.top nav.primary a[aria-current="page"] { color: var(--sun-deep); border-bottom: 1px solid var(--sun-deep); }
header.top a.bts { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim); text-decoration: none; padding: 8px 0; }
header.top a.bts:hover { color: var(--sun); }

@media (max-width: 640px) {
  header.top { grid-template-columns: 1fr auto; }
  header.top nav.primary { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--rule); margin-top: 10px; gap: 16px; }
}

/* Typographic scale */
h1.display, h2.display, h3.display { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 16px; line-height: 1.1; }
h1.display { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.04; }
h2.display { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3.display { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
p { line-height: 1.7; color: var(--ink-soft); max-width: 62ch; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sun-deep);
  margin-bottom: clamp(16px, 2vw, 24px);
}

section { padding: clamp(36px, 5vw, 64px) 0; }
hr.rule-divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Links */
a.plain { color: var(--sun-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.plain:hover { color: var(--sun); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  background: var(--sun);
  color: var(--ink);
  border: 1px solid var(--sun);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  min-width: 44px;
  line-height: 1.3;
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: #FBF7EE; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form basics */
.form-row { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .form-row { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } }
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
  display: block;
}
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  min-height: 48px;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232,150,72,0.18); }
.fine { font-size: 12px; color: var(--ink-dim); margin-top: 12px; }
.msg { font-size: 13px; margin-top: 12px; min-height: 1em; }
.msg.ok { color: var(--sun-deep); }
.msg.err { color: #A73636; }

/* Blockquote / pull quote */
blockquote.pull-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 48ch;
  margin: clamp(24px, 4vw, 40px) 0 12px;
  text-indent: -0.42em;
}
blockquote.pull-quote::before { content: "\201C"; }
blockquote.pull-quote::after { content: "\201D"; }
.pull-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}

/* FAQ details/summary accessible with keyboard */
.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.faq details summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  outline: none;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; font-family: 'JetBrains Mono', monospace; color: var(--sun-deep); font-size: 18px; margin-left: auto; }
.faq details[open] summary::after { content: "–"; }
.faq details summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 2px;
}

/* Footer */
footer.bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.bottom a { color: var(--ink-soft); text-decoration: none; }
footer.bottom a:hover { color: var(--sun-deep); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
