@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --paper: #F2E9DD;
  --cream: #E9DCCB;
  --card: #F8F2E8;
  --sand: #BE9F84;
  --sand-deep: #6E5140;
  --mocha: #4A3527;
  --ink: #1F1A16;
  --ink-soft: #6B5A4A;
  --hand: #F7E7CC;
  --butter: #E9CB3F;
  --pink: #E82D89;
  --line: rgba(31,26,22,.14);
  --radius: 18px;
  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
}

.hand {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--sand-deep);
}

.hand.light {
  color: var(--hand);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  display: block;
}

.mark {
  background: linear-gradient(transparent 52%, rgba(233,203,63,0.78) 52%, rgba(233,203,63,0.78) 94%, transparent 94%);
  padding: 0 0.08em;
  white-space: nowrap;
}

.mark-pink {
  background: linear-gradient(transparent 52%, rgba(232,45,137,0.22) 52%, rgba(232,45,137,0.22) 94%, transparent 94%);
  padding: 0 0.08em;
}

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 233, 221, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.logo span {
  color: var(--sand-deep);
}

.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav ul a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav ul a:hover {
  color: var(--ink);
}

.nav .login {
  text-decoration: none;
  font-size: 0.93rem;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s;
}

.nav .login:hover {
  background: var(--cream);
}

.nav a.back {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a.back:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav { height: 60px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,23,20,0.12);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #2c2721;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--cream);
}

.btn-light {
  background: var(--hand);
  color: var(--ink);
}

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

.btn-pink:hover {
  background: #c51e72;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(26,23,20,0.08);
}

.card .num {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--sand-deep);
  line-height: 1;
}

.card h3 {
  margin: 10px 0 12px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
}

.card .price {
  font-size: 0.95rem;
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 8px;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.sec-head {
  max-width: 38em;
  margin-bottom: 44px;
}

.sec-head p {
  color: var(--ink-soft);
  margin-top: 14px;
}

.bg-cream { background: var(--cream); }
.bg-mocha { background: var(--mocha); color: var(--hand); }
.bg-mocha h2, .bg-mocha h3 { color: #FDF6EA; }
.bg-mocha .sec-head p { color: rgba(247,231,204,0.8); }
.bg-mocha .eyebrow { color: var(--sand); }

/* ---------- Forms & Inputs ---------- */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sand-deep);
  box-shadow: 0 0 0 3px rgba(110, 81, 64, 0.12);
}

input::placeholder, textarea::placeholder {
  color: rgba(31,26,22,0.38);
}

.status-msg, .msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}

.status-msg.success, .msg.ok {
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  display: block;
}

.status-msg.error, .msg.err {
  background: #fce8e6;
  border: 1px solid #fad2cf;
  color: #c5221f;
  display: block;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--ink);
}

td {
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
footer {
  background: var(--cream);
  padding: 56px 0 36px;
  font-size: 0.93rem;
}

.f-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

footer a:hover {
  color: var(--ink);
}

.f-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
