:root {
  --color-primary: #e26d5c;
  --color-accent: #f2c14e;
  --color-bg: #fffaf2;
  --color-text: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-border: #e8ddc8;
  --color-card: #ffffff;
  --color-featured: #fff4d6;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-jp);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--color-primary), #d9554a);
  color: white;
  padding: 40px 0 50px;
  text-align: center;
  margin-bottom: 40px;
}
.site-header h1 {
  font-size: 2.2em;
  margin: 0 0 10px;
  font-weight: 700;
}
.site-header .subtitle {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95em;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card.featured {
  background: var(--color-featured);
  border-color: var(--color-accent);
}
.card-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #5a4200;
  font-size: 0.75em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card.featured .card-badge {
  background: var(--color-primary);
  color: white;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 1.3em;
}
.card p {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.95em;
}
.card-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95em;
}

/* Info */
.info {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.info h2 {
  margin: 0 0 16px;
  font-size: 1.2em;
}
.info ul {
  margin: 0;
  padding-left: 20px;
}
.info li {
  margin-bottom: 8px;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: #3a3a3a;
  color: #bbb;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85em;
}
.site-footer p {
  margin: 4px 0;
}

/* Recipe page */
.recipe-header {
  background: var(--color-primary);
  color: white;
  padding: 30px 0;
  margin-bottom: 30px;
}
.recipe-header h1 {
  margin: 0;
  font-size: 1.8em;
}
.recipe-header a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}
.recipe-content {
  background: white;
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

/* Markdown rendered styles */
.recipe-content h1 {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 8px;
  margin-top: 0;
}
.recipe-content h2 {
  color: var(--color-primary);
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border);
}
.recipe-content h3 {
  color: #8a3f2f;
  margin-top: 24px;
}
.recipe-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95em;
  overflow-x: auto;
  display: block;
}
.recipe-content thead tr {
  background: var(--color-featured);
}
.recipe-content th, .recipe-content td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
}
.recipe-content th {
  font-weight: 600;
}
.recipe-content tr:nth-child(even) {
  background: #fbf8f2;
}
.recipe-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 16px 0;
  padding: 12px 20px;
  background: var(--color-featured);
  color: #5a4200;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.recipe-content blockquote p {
  margin: 4px 0;
}
.recipe-content ol, .recipe-content ul {
  padding-left: 24px;
}
.recipe-content li {
  margin-bottom: 6px;
}
.recipe-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.recipe-content hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 32px 0;
}
.recipe-content code {
  background: #f4ece0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.recipe-content strong {
  color: #c94a3a;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}

/* Mobile */
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.6em; }
  .recipe-content { padding: 20px; }
  .recipe-content table { font-size: 0.85em; }
  .recipe-content th, .recipe-content td { padding: 6px 8px; }
}
