/* La Cocina de la Abuela — shared design system */

:root {
  /* Warm abuela's kitchen palette */
  --cream: #f5ecd9;
  --cream-deep: #ebe0c7;
  --paper: #fbf6ec;
  --terracotta: #b8472a;
  --terracotta-deep: #8e3318;
  --terracotta-soft: #d6745a;
  --mustard: #d4a14a;
  --saffron: #e6b54a;
  --cilantro: #647042;
  --cilantro-deep: #3f4a26;
  --ink: #2a1d12;
  --ink-soft: #4a3526;
  --line: #c9b89a;
  --shadow: 0 1px 0 rgba(42, 29, 18, 0.06), 0 8px 24px -8px rgba(42, 29, 18, 0.18);

  /* Type */
  --serif: "DM Serif Display", "Playfair Display", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Brush Script MT", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

p { margin: 0; }

.hand {
  font-family: var(--hand);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow.cream { color: var(--saffron); }

/* ============ Layout ============ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Top utility bar ============ */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 24px;
}
.topbar .left, .topbar .right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar a { opacity: 0.9; }
.topbar a:hover { opacity: 1; color: var(--saffron); }
.topbar .dot { opacity: 0.4; }

/* ============ Header / nav ============ */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  gap: 32px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 22px;
}
.nav .brand .mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav .brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav .brand .name { line-height: 1; }
.nav .brand .name small { display: block; font-family: var(--hand); color: var(--terracotta); font-size: 18px; margin-top: 2px; }

.nav .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav .links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
}
.nav .links a:hover, .nav .links a.active { color: var(--terracotta); }
.nav .links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
}
.nav .right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn-primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-cream {
  background: var(--cream);
  color: var(--terracotta-deep);
  border-color: var(--cream);
}
.btn-cream:hover { background: var(--saffron); border-color: var(--saffron); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 18px 34px; font-size: 15px; }

/* ============ Decorative bits ============ */
.flourish {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
}
.flourish::before, .flourish::after {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.tape {
  position: absolute;
  width: 90px; height: 24px;
  background: rgba(212, 161, 74, 0.55);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ============ Footer ============ */
footer.foot {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
  margin-top: 80px;
}
footer.foot .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
footer.foot h4 {
  color: var(--saffron);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.foot .brand-block { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
footer.foot .brand-block .hand { color: var(--saffron); font-size: 26px; display: block; }
footer.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer.foot a:hover { color: var(--saffron); }
footer.foot .legal {
  border-top: 1px solid rgba(245, 236, 217, 0.15);
  margin-top: 48px;
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  opacity: 0.7;
}

/* ============ Cards / sections ============ */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--terracotta);
  font-family: var(--hand);
  font-size: 26px;
  justify-content: center;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line);
}

/* hand-drawn style underline */
.underline-hand {
  position: relative;
  display: inline-block;
}
.underline-hand::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -8px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 6 Q 50 2 100 5 T 198 4' stroke='%23b8472a' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

/* ============ Mobile breakpoint ============ */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .topbar .row { height: auto; padding: 8px 0; flex-direction: column; gap: 4px; font-size: 12px; }
  .topbar .right .dot, .topbar .right { gap: 10px; }
  .nav .row { grid-template-columns: 1fr auto; height: 64px; gap: 12px; }
  .nav .links { display: none; }
  .nav .right { display: flex; }
  .nav .brand .name { font-size: 16px; }
  .nav .brand .mark { width: 44px; height: 44px; }
  .nav .brand .name small { font-size: 14px; }
  .section { padding: 56px 0; }
  footer.foot .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.foot .brand-block { grid-column: 1 / -1; }
  footer.foot .legal { flex-direction: column; gap: 8px; }
}

/* ============ Image helpers ============ */
.photo {
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-rounded { border-radius: 4px; }

/* paper texture vibe */
.paper-bg {
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 161, 74, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(184, 71, 42, 0.06), transparent 50%),
    var(--paper);
}

.cream-bg { background: var(--cream); }
.terracotta-bg { background: var(--terracotta); color: var(--cream); }
.terracotta-bg h1, .terracotta-bg h2, .terracotta-bg h3, .terracotta-bg h4 { color: var(--cream); }
.terracotta-bg .eyebrow { color: var(--saffron); }
.ink-bg { background: var(--ink); color: var(--cream); }
.ink-bg h1, .ink-bg h2, .ink-bg h3, .ink-bg h4 { color: var(--cream); }
