/* Merasakita — Indonesian recipe site */

:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-text: #2c2416;
  --color-text-muted: #6b5d4d;
  --color-accent: #c45c26;
  --color-accent-dark: #9a4520;
  --color-accent-light: #f4e4d8;
  --color-green: #3d6b4f;
  --color-border: #e8dfd4;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.06);
  --shadow-md: 0 4px 20px rgba(44, 36, 22, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-dark);
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* About section */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.about-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Cooks section */
.cooks {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 1.5rem;
}

.cooks-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

.cooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cook-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.cook-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 0.85rem;
}

.cook-card h4 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cook-card .region {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cook-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Recipes section */
.recipes {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.recipe-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.recipe-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #ede4d8 100%);
}

.recipe-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recipe-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.recipe-card-body .cook-tag {
  font-size: 0.82rem;
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.recipe-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Recipe detail page */
.recipe-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.recipe-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .recipe-hero-content {
    grid-template-columns: 1fr;
  }
}

.recipe-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #ede4d8 100%);
  box-shadow: var(--shadow-md);
}

.recipe-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.recipe-hero-text .description {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cook-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cook-byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cook-byline-text strong {
  display: block;
  font-size: 0.95rem;
}

.cook-byline-text span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Recipe content */
.recipe-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .recipe-content {
    grid-template-columns: 1fr;
  }
}

.recipe-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent-light);
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.ingredients-list li:last-child {
  border-bottom: none;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding: 0 0 1.5rem 3rem;
  position: relative;
  font-size: 0.95rem;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #c8bfb0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--color-accent-light);
}
