/* ==========================================================================
   Ostpassion – Gemensam stilmall
   ========================================================================== */

:root {
  --color-bg: #fdf8f0;
  --color-bg-alt: #f3e6cf;
  --color-primary: #a9642c;
  --color-primary-dark: #7a4620;
  --color-accent: #d98e33;
  --color-text: #3b2a1a;
  --color-text-light: #6b5540;
  --color-white: #ffffff;
  --shadow-soft: 0 4px 14px rgba(59, 42, 26, 0.12);
  --radius: 10px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & navigation ------------------------------------------------ */

header.site-header {
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

nav.main-nav a {
  color: var(--color-text);
  font-weight: bold;
  font-family: "Trebuchet MS", sans-serif;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  text-decoration: none;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg));
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 26px;
  border-radius: 30px;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: bold;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background-color: var(--color-primary-dark);
  text-decoration: none;
}

/* --- Sections ------------------------------------------------------------ */

section {
  padding: 60px 20px;
}

section.alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
}

.section-title p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 8px auto 0;
}

/* --- Card grid ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card .tag {
  display: inline-block;
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-family: "Trebuchet MS", sans-serif;
}

/* --- Two column layout ---------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  nav.main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}

/* --- Recipe list ----------------------------------------------------------- */

.recipe {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  margin-bottom: 30px;
}

.recipe h2 {
  border-bottom: 2px solid var(--color-bg-alt);
  padding-bottom: 10px;
}

.recipe ul, .recipe ol {
  padding-left: 22px;
}

/* --- Contact form ---------------------------------------------------------- */

form.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

form.contact-form label {
  display: block;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: bold;
  margin-bottom: 6px;
  margin-top: 16px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9c8ac;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
}

form.contact-form button {
  margin-top: 22px;
  border: none;
  cursor: pointer;
}

/* --- Footer ------------------------------------------------------------------ */

footer.site-footer {
  background-color: var(--color-text);
  color: var(--color-bg-alt);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner h4 {
  color: var(--color-white);
  margin-top: 0;
}

.footer-inner a {
  color: var(--color-bg-alt);
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: #cbb999;
}
