/* Jassani Enterprise — free printables site
   Plain CSS, no frameworks, no tracking. */

:root {
  --ink: #1a2332;
  --muted: #4a5568;
  --line: #d8dee8;
  --bg: #f7f5f1;
  --card: #ffffff;
  --accent: #1e4d6b;
  --accent-hover: #163a52;
  --soft: #e8f0f5;
  --ok: #1b6b3a;
  --max: 42rem;
  --wide: 64rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--accent); }

.brand span {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Hero / page heads */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card h2 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.3;
}

.card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.card h2 a:hover { color: var(--accent); text-decoration: underline; }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.meta {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--soft);
  color: var(--accent);
  border: 1px solid #c5d6e2;
}

.btn-secondary:hover {
  background: #dce8ef;
  color: var(--accent-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

/* Content pages */
.page {
  padding: 2rem 0 3rem;
}

.page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.page h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
}

.page p, .page li { color: var(--ink); }
.page .muted { color: var(--muted); }

.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 1.25rem 0;
}

.preview img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.preview figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.55rem;
  text-align: center;
}

.howto {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.howto ol { margin: 0.4rem 0 0; padding-left: 1.25rem; }
.howto li { margin: 0.35rem 0; }

.more-box {
  background: var(--soft);
  border: 1px solid #c5d6e2;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.more-box h2 { margin-top: 0; }
.more-box ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.breadcrumb {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 1.5rem 0 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p { margin: 0.35rem 0; }
.site-footer a { color: var(--muted); }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

ul.plain li { margin: 0.4rem 0; }

@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
}
