:root {
  --indigo-900: #1A237E;
  --indigo-800: #283593;
  --indigo-600: #3949AB;
  --indigo-500: #3F51B5;
  --indigo-a200: #536DFE;
  --indigo-50: #E8EAF6;
  --bg-light: #F4F5FB;
  --text-dark: #1A1F36;
  --text-muted: #4A5072;
  --shadow: 0 10px 30px rgba(63, 81, 181, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

/* Header */
.site-header {
  background: var(--indigo-900);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { color: #FFFFFF; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--indigo-50);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: #FFFFFF; }
.nav a.active { color: #FFFFFF; border-bottom-color: var(--indigo-a200); }

/* Hero */
.hero, .page-hero {
  background: linear-gradient(160deg, var(--indigo-900) 0%, var(--indigo-800) 55%, var(--indigo-600) 100%);
  color: #FFFFFF;
  text-align: center;
}
.hero { padding: 56px 24px 64px; }
.page-hero { padding: 44px 24px 52px; }
.badge {
  display: inline-block;
  background: rgba(83, 109, 254, 0.25);
  border: 1px solid var(--indigo-a200);
  color: var(--indigo-50);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.hero p, .page-hero p { font-size: 1.12rem; color: var(--indigo-50); max-width: 540px; margin: 0 auto; }

/* Content sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.section.center { text-align: center; }
.section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.section .lead { color: var(--text-muted); max-width: 540px; margin-bottom: 40px; }
.section.center .lead { margin-left: auto; margin-right: auto; }

/* Cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.card-row.narrow { max-width: 640px; margin: 0 auto; }
.card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--indigo-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; flex: 1; }
.card .card-link { color: var(--indigo-500); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.card .card-link:hover { color: var(--indigo-600); text-decoration: underline; }
a.card { text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(63, 81, 181, 0.25); }
.card .meta { font-size: 0.82rem; color: var(--indigo-500); font-weight: 600; margin-bottom: 4px; }
.card:has(.stretch) { position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.card:has(.stretch):hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(63, 81, 181, 0.25); }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-actions .card-link { white-space: nowrap; }
.card-link.stretch::after { content: ""; position: absolute; inset: 0; }
.card-cta {
  position: relative;
  z-index: 1;
  background: var(--indigo-500);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.card-cta:hover { background: var(--indigo-600); }
.card-share {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo-800);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26, 35, 126, 0.22);
  backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.card-share svg { flex: none; }
.card-share:hover { background: #FFFFFF; transform: translateY(-1px); }

/* Photos */
.card-media {
  position: relative;
  width: calc(100% + 56px);
  margin: -32px -28px 18px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.card-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.recipe-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 0 28px;
  display: block;
}

/* Hobby list */
.hobby-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}
.hobby-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
}
.hobby-list li:has(a) { padding: 0; }
.hobby-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: var(--text-dark);
  padding: 12px 14px;
  border-radius: 10px;
}
.hobby-list li a:hover { background: var(--indigo-50); }
.hobby-name { font-weight: 600; font-size: 0.98rem; }
.hobby-list li.public { background: var(--indigo-50); }
.hobby-list li.public a { color: var(--indigo-500); }
.hobby-list li.public a:hover { background: #D5DAF3; }
.hobby-list .lock { color: #A5ACD3; flex: none; }
@media (max-width: 720px) { .hobby-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hobby-list { grid-template-columns: 1fr; } }

.btn {
  display: inline-block;
  background: var(--indigo-500);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 8px;
  transition: background 0.2s;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--indigo-600); }

/* Recipe page */
.recipe {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.recipe .back {
  display: inline-block;
  color: var(--indigo-500);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.recipe .back:hover { text-decoration: underline; }
.recipe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 36px;
}
.fact {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
  min-width: 120px;
}
.fact .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-500);
}
.fact .value { font-weight: 600; font-size: 0.98rem; }
.recipe h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--indigo-50);
}
.recipe ul, .recipe ol { padding-left: 24px; color: var(--text-dark); }
.recipe li { margin-bottom: 10px; }
.recipe .note {
  background: var(--indigo-50);
  border-left: 4px solid var(--indigo-a200);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-top: 32px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Footer */
.site-footer { background: var(--indigo-900); color: var(--indigo-50); padding: 40px 24px; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.powered { display: flex; align-items: center; gap: 10px; }
.powered img { width: 24px; height: 24px; }
.powered span { font-weight: 600; font-size: 0.95rem; }
.powered a { color: #FFFFFF; text-decoration: none; }
.powered a:hover { text-decoration: underline; }
.tagline { font-size: 0.85rem; color: #AAB3E0; }
.copyright { font-size: 0.8rem; color: #8A93C8; }

@media (max-width: 600px) {
  .hero { padding: 26px 20px 32px; }
  .page-hero { padding: 22px 20px 28px; }
  .badge { font-size: 0.68rem; padding: 4px 12px; margin-bottom: 10px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 8px; }
  .page-hero h1 { font-size: 1.35rem; margin-bottom: 6px; }
  .hero p, .page-hero p { font-size: 0.95rem; }
  .header-inner { padding: 12px 16px; }
  .brand img { width: 24px; height: 24px; }
  .brand span { font-size: 1rem; white-space: nowrap; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.85rem; white-space: nowrap; }
  .section { padding: 48px 20px 64px; }
  .recipe { padding: 40px 20px 64px; }
}

/* Philosophy quotes */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.qcard {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: #FFFFFF; border-radius: 18px; padding: 0;
  border: 1px solid var(--indigo-50); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--indigo-500), var(--indigo-a200));
}
.qcard-img { display: block; width: 100%; height: 200px; flex: none; object-fit: cover; }
.qcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.qcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(63, 81, 181, 0.26); }
.qcard blockquote {
  margin: 0 0 16px; flex: 1;
  font-size: 1.08rem; line-height: 1.55; font-weight: 500; color: var(--text-dark);
}
.qcard-author { text-align: right; font-style: italic; }
.qcard-name { display: block; font-size: 0.9rem; font-weight: 600; color: var(--indigo-500); }
.qcard-name::before { content: "\2014 "; }
@media (max-width: 900px) { .qgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qgrid { grid-template-columns: 1fr; } }
.credits { padding-top: 0; }
.credits details { max-width: 1080px; margin: 0 auto; color: var(--text-muted); font-size: 0.8rem; }
.credits summary { cursor: pointer; font-weight: 600; color: var(--indigo-500); }
.credits ul { columns: 2; column-gap: 32px; padding-left: 18px; margin-top: 10px; }
.credits li { break-inside: avoid; margin-bottom: 4px; }
.credits a { color: var(--text-muted); }
@media (max-width: 560px) { .credits ul { columns: 1; } }

/* Photos carousel */
.carousel-wrap { max-width: 960px; margin: 0 auto; }
.carousel-stage { position: relative; }
.car-figure {
  margin: 0;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.car-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: var(--indigo-900);
}
.car-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  font-size: 0.92rem;
}
.car-date { font-weight: 700; color: var(--indigo-800); }
.car-loc { color: var(--text-muted); font-weight: 600; }
.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo-800);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 35, 126, 0.22);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}
.car-nav.prev { left: 12px; }
.car-nav.next { right: 12px; }
.car-nav:hover { background: #FFFFFF; }
.car-count { text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin: 12px 0 10px; }
.car-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.car-thumb {
  flex: none;
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-thumb.active, .car-thumb:hover { opacity: 1; border-color: var(--indigo-500); }
@media (max-width: 480px) {
  .car-nav { width: 38px; height: 38px; font-size: 1.6rem; }
  .car-caption { font-size: 0.85rem; padding: 10px 14px; }
  .car-thumb { width: 56px; height: 56px; }
}
