/* ============================================
   Mittenheim Food Blog - Design System
   Gumroad neubrutalism: black, white, #FF90E8 pink
   Thick borders, hard shadows, high contrast
   Text-first, no-photo design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F4F0;
  --black: #000000;
  --text: #000000;
  --text-body: #333333;
  --pink: #FF90E8;
  --pink-hover: #e87bd0;
  --border: 2px solid #000000;
  --border-light: 1px solid #000000;
  --radius: 6px;
  --shadow: 4px 4px 0px #000000;
  --shadow-sm: 2px 2px 0px #000000;
  --max-width: 1200px;
  --transition: 0.15s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink-hover);
}

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

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.nav__logo:hover {
  color: var(--pink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--pink-hover);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Language Switcher --- */
.nav__lang {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border: 1.5px solid var(--black);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.nav__lang:hover {
  background: var(--pink);
  color: var(--black);
}

.nav__links a.nav__lang {
  font-size: 0.8rem;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 3.8rem;
  letter-spacing: -0.04em;
}

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

/* --- Recipe Grid --- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0;
}

.section-header a {
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Recipe Card (text-only, no image) --- */
a.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card:hover {
  box-shadow: 6px 6px 0px #000000;
  transform: translate(-2px, -2px);
  color: inherit;
}

.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card__title {
  margin-bottom: 10px;
  font-size: 1.35rem;
  color: var(--text);
}

a.card:hover .card__title {
  color: var(--pink-hover);
}

.card__desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: 1.5px solid var(--black);
  background: var(--pink);
  color: var(--black);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border: var(--border);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--bg-alt);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.filter-btn.active {
  background: var(--black);
  color: var(--bg);
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* --- Recipe Detail Page (text header, no hero image) --- */
.recipe-hero--text {
  background: var(--black);
  border-bottom: var(--border);
  padding: 80px 0 64px;
}

.recipe-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.recipe-hero--text h1 {
  color: #fff;
  font-size: 3rem;
  letter-spacing: -0.03em;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.recipe-meta span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.recipe-meta .tag {
  background: var(--pink);
  color: var(--black);
  border-color: var(--pink);
}

.recipe-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.recipe-story {
  margin-bottom: 48px;
}

.recipe-story p {
  margin-bottom: 1em;
}

/* --- Recipe Photo --- */
.recipe-photo {
  margin: 48px 0;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.recipe-photo img {
  width: 100%;
  display: block;
}

.recipe-box {
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  margin-bottom: 48px;
}

.recipe-box h2 {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: var(--border);
}

.recipe-box h3 {
  margin-bottom: 16px;
  margin-top: 32px;
}

.recipe-box h3:first-of-type {
  margin-top: 0;
}

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

.recipe-box li {
  margin-bottom: 8px;
}

.recipe-box ol li {
  padding-left: 8px;
}

/* --- About Page (text-only, centered) --- */
.about-text--centered {
  max-width: 680px;
  margin: 0 auto;
}

.about-text h1 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 1em;
}

/* --- Footer --- */
.footer {
  border-top: var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  background: var(--black);
  color: rgba(255,255,255,0.6);
}

.footer a {
  color: rgba(255,255,255,0.6);
  margin: 0 12px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--pink);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius);
  border: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px #000000;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn--primary {
  background: var(--pink);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--pink-hover);
  color: var(--black);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.8rem; }
  .recipe-hero--text h1 { font-size: 2.4rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .section { padding: 48px 0; }

  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.2rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    box-shadow: 3px 3px 0px #000000;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links .nav__lang {
    align-self: flex-start;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .recipe-hero--text {
    padding: 48px 0 40px;
  }

  .recipe-hero--text h1 { font-size: 2rem; }
  .recipe-box { padding: 24px; }
  .recipe-photo { margin: 32px 0; box-shadow: 3px 3px 0px #000; }

  .section-header {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- Tier List --- */
.tier-list {
  margin-bottom: 48px;
}

.tier {
  display: flex;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.tier__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  border-right: var(--border);
  flex-shrink: 0;
}

.tier--s .tier__label { background: #FF6B6B; }
.tier--a .tier__label { background: #FFB347; }
.tier--b .tier__label { background: #FDFD96; }
.tier--c .tier__label { background: #77DD77; }
.tier--d .tier__label { background: #89CFF0; }

.tier__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
  background: #fff;
  padding: 12px;
  gap: 12px;
  align-items: center;
}

.tier__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  text-align: center;
}

.tier__brand img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
}

.tier__name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.2;
}

.tier__detail {
  font-size: 0.6rem;
  color: var(--text-body);
  margin-top: 2px;
  opacity: 0.6;
}

/* Tier list brand detail cards below the tier list */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.brand-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}

.brand-card img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-card__info {
  flex: 1;
}

.brand-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.brand-card__meta {
  font-size: 0.78rem;
  color: var(--text-body);
  margin-bottom: 6px;
  opacity: 0.7;
}

.brand-card__desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

.brand-card__tier {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  color: var(--black);
  margin-right: 6px;
  vertical-align: middle;
}

.brand-card__tier--s { background: #FF6B6B; }
.brand-card__tier--a { background: #FFB347; }
.brand-card__tier--b { background: #FDFD96; }
.brand-card__tier--c { background: #77DD77; }
.brand-card__tier--d { background: #89CFF0; }

@media (max-width: 900px) {
  .brand-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tier__label {
    min-width: 50px;
    font-size: 1.6rem;
  }

  .tier__brand {
    width: 70px;
  }

  .tier__brand img {
    width: 65px;
    height: 65px;
  }

  .tier__name {
    font-size: 0.6rem;
  }

  .tier {
    box-shadow: 3px 3px 0px #000;
  }

  .brand-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- Trip Day Plan --- */
.trip-step {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.trip-step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background var(--transition);
}

.trip-step summary::-webkit-details-marker { display: none; }

.trip-step summary::before {
  content: "\25B6";
  font-size: 0.7rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.trip-step[open] summary::before {
  transform: rotate(90deg);
}

.trip-step[open] summary {
  border-bottom: var(--border-light);
  background: var(--bg-alt);
}

.trip-step__time {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pink-hover);
  white-space: nowrap;
}

.trip-step__body {
  padding: 20px;
}

.trip-step__body h4 {
  margin-bottom: 8px;
}

.trip-step__body p,
.trip-step__body ul,
.trip-step__body ol {
  margin-bottom: 12px;
}

.trip-step__body ul,
.trip-step__body ol {
  padding-left: 20px;
}

.trip-step__body li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.trip-place {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-alt);
}

.trip-place__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.trip-place__detail {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
}

a.trip-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  border: var(--border);
  border-radius: 100px;
  background: var(--pink);
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
  margin-bottom: 4px;
  transition: all var(--transition);
}

a.trip-maps-btn:hover, a.trip-maps-btn:active {
  background: var(--pink-hover);
  color: var(--black);
  transform: translate(1px, 1px);
  box-shadow: none;
}

.trip-alert {
  background: #FFF3CD;
  border: 2px solid #000;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.trip-backup {
  border-left: 4px solid var(--pink);
  padding-left: 16px;
  margin-top: 16px;
}

.trip-timing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.trip-timing-table th,
.trip-timing-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

.trip-timing-table th {
  font-weight: 700;
  background: var(--bg-alt);
}

.trip-checklist {
  list-style: none;
  padding: 0;
}

.trip-checklist li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.trip-checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  accent-color: var(--pink);
}

/* Trip cards grid */
.trip-days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* --- Print Styles --- */
@media print {
  .nav, .footer, .filter-bar {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .recipe-hero--text {
    background: none;
    padding: 24px 0;
  }

  .recipe-hero--text h1 {
    color: #000;
  }

  .recipe-meta span {
    color: #333;
  }

  .recipe-meta .tag {
    background: #eee;
    color: #333;
    border-color: #ccc;
  }

  .recipe-photo {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .recipe-box {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a { color: #000; text-decoration: none; }
  a::after { content: none; }
}
