/* Made My Way Print Co. — mobile-first */
:root {
  --ink: #2a2118;
  --ink-soft: #5c4a3a;
  --paper: #f6efe4;
  --cream: #fbf7f0;
  --white: #fffdf8;
  --rust: #b55233;
  --rust-dark: #8f3d24;
  --walnut: #5c3d2e;
  --gold: #c4a46a;
  --sage: #6b7f62;
  --line: #e2d5c4;
  --ok: #6b7f62;
  --warn: #9a6b1f;
  --bad: #9a3b2a;
  --shadow: 0 10px 30px rgba(42, 33, 24, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --header: 4.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 80;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header { position: relative; background: transparent; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.logo span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
}
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-btn i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  padding: 0.75rem 1.25rem 2rem;
  display: none;
  overflow: auto;
  z-index: 45;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block;
  padding: 0.85rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--rust-dark); }

.banner {
  background: var(--walnut);
  color: var(--cream);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}
.banner strong { font-weight: 700; }

/* Hero */
.hero {
  padding: 2.2rem 0 2.8rem;
}
.hero-grid {
  display: grid;
  gap: 1.75rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rust);
  margin: 0 0 0.7rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.9rem;
  letter-spacing: -0.03em;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 36rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--walnut); }
.btn-ghost:hover { background: var(--white); }
.btn[disabled], .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-art {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.hero-art svg { width: 100%; height: auto; }

/* Sections */
section { padding: 3rem 0; scroll-margin-top: 6rem; }
#top { scroll-margin-top: 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.muted { color: var(--ink-soft); }
.fine { font-size: 0.92rem; color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-art svg { width: 100%; height: auto; display: block; }
.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--ink-soft); }
.badge {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #efe3d2;
  color: var(--walnut);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  text-align: center;
  line-height: 1.25;
}
.price {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.draft-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f3e2c5;
  color: #7a4e12;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-weight: 800;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--rust-dark);
}
.text-link:hover { text-decoration: underline; }

/* Steps */
.steps { display: grid; gap: 0.85rem; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
}
.step h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Guide */
.guide-layout, .form-layout {
  display: grid;
  gap: 1.25rem;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.guide-list li {
  padding-left: 1.4rem;
  position: relative;
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rust);
}
.guide-list strong { color: var(--ink); }

.checker-title { font-family: var(--serif); margin: 0 0 0.35rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d7c8b4;
  border-radius: 12px;
  background: var(--cream);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--walnut);
}
.preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  border-radius: 12px;
  margin: 0.4rem 0 0.8rem;
  border: 1px solid var(--line);
}
.rating {
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #f3eee6;
  border: 1px solid var(--line);
}
.rating-kicker { margin: 0 0 0.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.rating p { margin: 0 0 0.35rem; }
.rating-flag { font-weight: 800; font-size: 1.05rem; }
.rating-good .rating-flag, .rating[data-rating="good"] { background: #e8f0e4; border-color: #c5d6bc; }
.rating-ok .rating-flag, .rating[data-rating="ok"] { background: #f8efd8; border-color: #e4d0a2; }
.rating-small .rating-flag, .rating[data-rating="small"] { background: #f8e6e2; border-color: #e3c0b8; }
.rating[data-rating="good"] .rating-flag { color: var(--ok); }
.rating[data-rating="ok"] .rating-flag { color: var(--warn); }
.rating[data-rating="small"] .rating-flag { color: var(--bad); }

.form-row {
  display: grid;
  gap: 0.8rem;
}
.form-status {
  margin: 0.8rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #efe3d2;
}
.notice {
  background: #efe3d2;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.notice strong { display: block; margin-bottom: 0.2rem; }

.rules {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.rules ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.rules li { margin: 0.35rem 0; }

.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--rust);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

.site-footer {
  background: var(--ink);
  color: #f0e6d8;
  padding: 2.4rem 0 2rem;
  margin-top: 1rem;
}
.site-footer a { color: #f3d2b6; }
.footer-grid {
  display: grid;
  gap: 1.2rem;
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--cream);
}
.tiny { font-size: 0.85rem; opacity: 0.85; }

@media (min-width: 700px) {
  .menu-btn { display: none; }
  .site-top {
    display: block;
  }
  .site-top .wrap.header-inner { position: relative; }
  .site-nav {
    position: absolute;
    top: 0;
    right: max(1rem, calc((100% - 1120px) / 2));
    bottom: 0;
    left: auto;
    display: flex !important;
    background: none;
    padding: 0;
    overflow: visible;
    gap: 1.1rem;
    align-items: center;
    min-height: 0;
    z-index: 2;
  }
  .site-nav a {
    display: inline;
    border: 0;
    padding: 0.3rem 0;
    font-size: 0.95rem;
  }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .guide-layout, .form-layout, .footer-grid { grid-template-columns: 1.1fr 0.9fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { grid-template-columns: 1fr; text-align: left; }
}
