:root {
  --bg: #faf6ef;
  --bg-alt: #f1e9dc;
  --paper: #ffffff;
  --ink: #2c2a26;
  --muted: #6f6a60;
  --accent: #6a7b54;
  --accent-dark: #4e5c3d;
  --terra: #b5663f;
  --line: #e4dccd;
  --shadow: 0 10px 30px rgba(60, 50, 30, 0.08);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--accent-dark);
  color: #efe9dc;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #efe9dc; }
.topbar .topbar-meta span { margin-left: 18px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand .brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand .brand-text { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
}
.brand .sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.brand:hover { text-decoration: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main-nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--terra); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #6a7b54 0%, #4e5c3d 100%);
  color: #f6f2e8;
  padding: 78px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(181, 102, 63, 0.25);
}
.hero .container { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  opacity: 0.94;
  margin: 0 0 30px;
}
.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}
.btn:hover { background: #9c5433; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.6); margin-left: 12px; }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--terra);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-head p { color: var(--muted); margin: 0; }

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

/* ---------- Article grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60,50,30,0.13); }
.card .thumb { height: 180px; background-size: cover; background-position: center; }
.card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card .tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra);
  font-weight: 700;
  margin-bottom: 10px;
}
.card h3 { font-family: var(--serif); font-size: 1.28rem; margin: 0 0 10px; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; flex: 1; }
.card .meta { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* illustrations (SVG); gradient acts as fallback while loading */
.img-1 { background: #b8a886 url("images/saisonkueche.svg") center/cover no-repeat; }
.img-2 { background: #c2895f url("images/morgenritual.svg") center/cover no-repeat; }
.img-3 { background: #7e8d6e url("images/alpen.svg") center/cover no-repeat; }
.img-4 { background: #a89b82 url("images/wohnen.svg") center/cover no-repeat; }
.img-5 { background: #9aaa92 url("images/garten.svg") center/cover no-repeat; }
.img-6 { background: #c09a64 url("images/kaffee.svg") center/cover no-repeat; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .visual { height: 360px; border-radius: 10px; box-shadow: var(--shadow); }
.split h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 18px; }
.split p { color: var(--muted); margin: 0 0 16px; }
.split ul { color: var(--muted); padding-left: 20px; margin: 0 0 20px; }
.split li { margin-bottom: 8px; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--accent-dark); color: #f0ebe0; text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 16px;
  line-height: 1.4;
}
.quote-band cite { font-style: normal; font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.8; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg-alt); }
.newsletter .box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}
.newsletter h2 { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 12px; }
.newsletter p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.signup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.signup input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.signup button {
  background: var(--accent-dark);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.signup button:hover { background: var(--accent); }
.newsletter small { display: block; margin-top: 14px; color: var(--muted); font-size: 0.78rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2c2a26; color: #cfc8ba; padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfc8ba; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-foot {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid #44413a;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #9a9387;
  font-size: 0.82rem;
}

/* ---------- Content pages ---------- */
.page-hero { background: var(--bg-alt); padding: 56px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-size: 2.4rem; margin: 0; }
.page-hero .crumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.content { padding: 56px 0; }
.content .prose { max-width: 740px; }
.content h2 { font-family: var(--serif); font-size: 1.5rem; margin: 32px 0 12px; }
.content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.content p, .content li { color: #46423b; }
.content table { border-collapse: collapse; margin: 16px 0; width: 100%; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 0.92rem; }
.content th { background: var(--bg-alt); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
}

/* ============ Apex magazine additions ============ */

/* Featured cover story */
.featured { padding: 56px 0 24px; }
.featured .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured .cover { min-height: 420px; background-size: cover; background-position: center; }
.featured .text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured .issue {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--terra);
  font-weight: 700;
  margin-bottom: 16px;
}
.featured h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.featured p { color: var(--muted); font-size: 1.08rem; margin: 0 0 26px; }
.featured .byline { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* Topic pills */
.topics { padding: 14px 0 0; }
.topic-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pill:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); text-decoration: none; }

/* Editorial note */
.editorial { background: var(--bg-alt); }
.editorial .wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.editorial .portrait {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background-size: cover;
  background-position: center;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
}
.editorial h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 18px; }
.editorial p { color: #46423b; font-size: 1.05rem; margin: 0 0 16px; }
.editorial .sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-dark);
  margin-top: 18px;
}

/* Wide article (list style) */
.wide-list { display: flex; flex-direction: column; gap: 22px; }
.wide {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wide .thumb { min-height: 170px; background-size: cover; background-position: center; }
.wide .body { padding: 24px 28px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.wide .tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--terra); font-weight: 700; margin-bottom: 8px; }
.wide h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 10px; line-height: 1.3; }
.wide h3 a { color: var(--ink); }
.wide p { color: var(--muted); font-size: 0.96rem; margin: 0 0 10px; }
.wide .meta { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 860px) {
  .featured .wrap { grid-template-columns: 1fr; }
  .featured .cover { min-height: 240px; }
  .featured .text { padding: 32px; }
  .wide { grid-template-columns: 1fr; }
  .wide .thumb { min-height: 180px; }
  .wide .body { padding: 0 24px 24px; }
}
