:root {
  --ink: #232323;
  --muted: #6b6b6b;
  --bg: #fffdf8;
  --alt: #fdf3e3;
  --accent: #e8590c;
  --accent-dark: #c94a06;
  --sun: #ffd43b;
  --sky: #4dabf7;
  --card: #ffffff;
  --border: #eadfc9;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 2rem; margin: 0 0 1rem; }
a { color: var(--accent-dark); }

/* header */
.site-header { background: #fff; border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.25rem; }
.logo { font-size: 1.4rem; text-decoration: none; color: var(--ink); }
.logo-mark { font-size: 1.6rem; }
nav a { margin-left: 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
nav a:hover { color: var(--accent-dark); }

/* buttons */
.btn { display: inline-block; padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; font-size: 1rem; transition: transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.15rem; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.btn-block { width: 100%; margin-top: 1rem; }

/* hero */
.hero { background: linear-gradient(135deg, #fff3bf 0%, #ffe8cc 60%, #ffd8a8 100%); border-bottom: 3px solid var(--ink); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding: 4rem 1.25rem; align-items: center; }
.hero h1 { font-size: 3.2rem; margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: #444; }
.hero-cta { display: flex; gap: 1rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 0.95rem; }
.hero-art { position: relative; }
.hero-art img { width: 75%; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.hero-art-2 { position: absolute; right: 0; bottom: -2rem; width: 55% !important; transform: rotate(4deg); }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--alt); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.section-sub { color: var(--muted); max-width: 640px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 5px 5px 0 var(--ink); }
.step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sky); color: #fff;
  font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }

/* packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.package { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.8rem; position: relative; text-align: center; }
.package-featured { background: #fff9db; transform: scale(1.04); box-shadow: 6px 6px 0 var(--ink); }
.package-tag { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 0.25rem 1rem; border-radius: 999px; border: 2px solid var(--ink); }
.package-pages { color: var(--muted); font-weight: 600; }
.package-price { font-size: 2.6rem; font-weight: 800; margin: 0.4rem 0; }
.package p { min-height: 3.2em; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.gallery figure { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.gallery figcaption { padding: 0.5rem; text-align: center; font-weight: 600; background: #fff; border-top: 3px solid var(--ink); }

/* faq */
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); margin-bottom: 0.8rem; padding: 1rem 1.25rem; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }

/* security */
.security-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.security-card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.security-card span { font-size: 2rem; }

/* cta band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }

/* footer */
.site-footer { background: #f8f1e3; border-top: 3px solid var(--ink); padding: 2rem 0 1rem; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links a { display: block; margin-bottom: 0.4rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.footer-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

/* forms */
fieldset { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 1.5rem; background: #fff; }
legend { font-weight: 800; font-size: 1.1rem; padding: 0 0.6rem; }
label { display: block; margin-bottom: 1rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 0.7rem; border: 2px solid var(--ink); border-radius: 8px; font-size: 1rem; margin-top: 0.3rem; font-family: inherit; }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.opt { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 0.92rem; }
.pkg-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pkg-option { border: 3px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; cursor: pointer; margin: 0; }
.pkg-option.selected { border-color: var(--ink); background: #fff9db; box-shadow: 4px 4px 0 var(--ink); }
.pkg-option input { display: none; }
.pkg-name { display: block; font-weight: 800; font-size: 1.1rem; }
.pkg-pages { display: block; color: var(--muted); font-size: 0.9rem; }
.pkg-price { display: block; font-weight: 800; font-size: 1.5rem; }
.file-drop { display: block; border: 3px dashed var(--ink); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; font-size: 1.2rem; }
.file-drop input { display: none; }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1rem; }
.preview figure { margin: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.preview img { width: 100%; height: 110px; object-fit: cover; display: block; }
.preview figcaption { font-size: 0.75rem; padding: 0.25rem 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.error-box { background: #ffe3e3; border: 3px solid #c92a2a; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.error-box ul { margin: 0.5rem 0 0; }

/* success */
.success-check { font-size: 4rem; }
.order-num { background: #fff9db; border: 2px solid var(--ink); border-radius: 8px; padding: 0.1rem 0.6rem; }
.order-summary { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; text-align: left; }
.order-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
.order-summary div:last-child { border-bottom: none; }
.order-summary span { color: var(--muted); }
.next-steps { text-align: left; display: inline-block; margin: 1rem 0 2rem; }
.next-steps li { margin-bottom: 0.6rem; font-size: 1.05rem; }

/* prose */
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }

/* flashes */
.flash { border-radius: var(--radius); padding: 0.9rem 1.2rem; margin: 1rem 0; border: 2px solid var(--ink); }
.flash-ok { background: #d3f9d8; }
.flash-error { background: #ffe3e3; }

/* admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-form { max-width: 380px; margin: 2rem auto; text-align: left; }
.table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; background: #fff; }
.orders-table th, .orders-table td { border: 2px solid var(--ink); padding: 0.7rem; text-align: left; vertical-align: top; }
.orders-table th { background: #fff9db; }
.status { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; border: 2px solid var(--ink); }
.status-new { background: #e7f5ff; }
.status-paid { background: #d3f9d8; }
.status-in_production { background: #fff3bf; }
.status-shipped { background: #e5dbff; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.dedication { font-style: italic; background: #fff9db; padding: 0.8rem; border-radius: 8px; }
.admin-preview img { height: 180px; }

@media (max-width: 800px) {
  .hero-inner, .steps, .packages, .gallery, .security-cards, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .hero-art-2 { bottom: -1rem; }
  .pkg-picker { grid-template-columns: 1fr; }
  .preview { grid-template-columns: repeat(2, 1fr); }
  nav a:not(.btn) { display: none; }
}
