/* CornerCraft 一隅工坊 brand site — palette from brand/final/banner.png */
:root {
  --cream: #f7f2e6;
  --cream-2: #fdfaf2;
  --ink: #3b2a1d;
  --ink-soft: #6f5942;
  --green: #2f8f46;
  --green-dark: #26733a;
  --tan: #c99f6a;
  --yellow: #f2c94c;
  --line: #e7dcc7;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(59, 42, 29, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream) url("assets/bg-tile.png") repeat;
  background-size: 220px;
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--green-dark); }
img { max-width: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(59, 42, 29, 0.06); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav-links a:hover { color: var(--green-dark); }
.btn-nav { padding: 8px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: 28px 20px 8px; }
.hero-banner {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-copy { text-align: center; padding: 34px 12px 20px; }
.hero-copy h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.25; letter-spacing: -0.01em; }
.hero-copy p {
  max-width: 620px; margin: 14px auto 0;
  color: var(--ink-soft); font-size: clamp(15px, 2vw, 18px);
}
.hero-actions { margin-top: 24px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 20px 20px; }
.section-alt {
  max-width: none; background: var(--cream-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 26px;
  padding-bottom: 10px; border-bottom: 3px solid var(--tan);
  display: inline-block;
}

/* ---------- pack cards ---------- */
.pack-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.pack-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.pack-card.preorder { border: 2px solid var(--yellow); }
.pack-cover { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--cream); }
.pack-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pack-name { font-size: 20px; line-height: 1.3; }
.pack-meta { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.pack-tagline { color: var(--ink-soft); font-size: 15px; flex: 1; }
.pack-sale {
  display: inline-block; align-self: flex-start;
  background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.pack-badge {
  display: inline-block; align-self: flex-start;
  background: var(--ink); color: var(--yellow);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
}
.pack-release { font-size: 14px; color: var(--ink-soft); }
.pack-note { font-size: 13.5px; color: var(--ink-soft); background: var(--cream-2); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.pack-body .btn { margin-top: 6px; text-align: center; }

.free-sample { margin-top: 26px; color: var(--ink-soft); font-size: 15px; }
.noscript-note { grid-column: 1 / -1; }

/* ---------- why ---------- */
.why-grid {
  display: grid; gap: 20px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.why-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.why-icon { font-size: 28px; }
.why-card h3 { margin: 10px 0 6px; font-size: 17px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- about ---------- */
.about-wrap { display: flex; gap: 30px; align-items: center; margin-top: 10px; }
.about-logo { width: 150px; height: auto; flex-shrink: 0; }
.about-text p { margin-bottom: 12px; color: var(--ink-soft); font-size: 16px; }
.about-text strong { color: var(--ink); }

/* ---------- commissions ---------- */
.commission-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; text-align: center; margin-top: 26px;
}
.commission-card p { max-width: 560px; margin: 0 auto 22px; color: var(--ink-soft); font-size: 16px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 70px; padding: 40px 20px 34px;
  border-top: 1px solid var(--line);
  text-align: center; background: var(--cream-2);
}
.footer-logo { height: 30px; width: auto; margin: 0 auto 14px; }
.footer-links { font-size: 15px; margin-bottom: 8px; }
.footer-note { color: var(--ink-soft); font-size: 13px; }
.footer-copy { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .about-wrap { flex-direction: column; text-align: center; }
  .section { padding-top: 44px; }
}
