/* Shared styles for Oh No! Lunchbox landing pages */

/* CSS Variables */
:root {
  --bg: #fafafa;
  --fg: #222;
  --muted: #666;
  --brand: #FF5400;
  --maxw: 800px;
  color-scheme: light;
}

/* Reset & Base Styles */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Layout Container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px;
}

/* Header & Branding */
header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.brand img {
  display: block;
  width: 80px;
  height: auto;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  margin: 1.5em 0 .5em;
}

h1 {
  font-size: 1.6rem;
  margin-top: .5em;
}

h2 {
  font-size: 1.2rem;
}

p, li {
  color: var(--fg);
}

/* Links */
a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.meta {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.muted {
  color: var(--muted);
}

/* Footer Styles */
footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: #888;
}

footer a {
  color: #FF5400;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Footer Layout - Intentional stacking on small screens; one-line on wider screens */
.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* Tighter spacing between links; prevents ugly wraps */
footer .links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* if it must wrap, it wraps cleanly */
  justify-content: center;
}

/* Responsive Design */
@media (min-width: 420px) {
  .footer-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  
  .copy::after {
    content: "·";
    margin: 0 8px;
  }
}

@media (min-width: 720px) {
  header {
    justify-content: flex-start;
  }
}

/* Page-Specific Components */

/* Legal page definition list styling */
.legal {
  /* Add any specific legal page styling here if needed */
}

.legal dt {
  font-weight: 600;
  margin-top: 0.5em;
}

.legal dd {
  margin-left: 0;
  margin-bottom: 0.25em;
}

/* Support page card styling */
.card {
  border-radius: 12px;
  background: rgba(0, 0, 0, .03);
  padding: 16px;
  margin: 16px 0;
}

/* Support page iframe */
.tally-embed {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

/* Support page brand image adjustment */
.support-brand img {
  width: 72px;
}

/* Support page typography adjustments */
.support-typography h1 {
  font-size: 1.5rem;
  margin-top: .25em;
}

.support-typography h2 {
  font-size: 1.1rem;
  margin: 1.2em 0 .5em;
}