@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

html, body { margin: 0; padding: 0; min-height: 100%; background: #f4f7fc; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

body {
  font-family: 'Roboto', 'Noto Sans', 'Segoe UI', sans-serif;
  color: #1e1c18;
  background: transparent;
  margin: 0 auto;
  padding: 32px 20px 64px;
  max-width: 920px;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-shell {
  position: relative;
  z-index: 1;
}

a,
a:visited,
a:hover,
a:active {
  color: #000;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand { font-weight: 700; font-size: 1.2rem; display: inline-block; color: #1e1c18; text-decoration: none; }

.page-title {
  font-size: 1rem;
  color: rgba(30, 28, 24, 0.72);
}

.page-title-link:hover,
.page-title-link:focus-visible {
  color: #00838f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-lastmod {
  margin-left: auto;
  font-size: 0.88rem;
  color: rgba(30, 28, 24, 0.56);
  white-space: nowrap;
}

.card { background: rgba(255,255,255,0.58); backdrop-filter: blur(4px) saturate(120%); -webkit-backdrop-filter: blur(4px) saturate(120%); border: 1px solid rgba(255,255,255,0.85); border-radius: 16px; padding: 20px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.75); position: relative; z-index: 2; }

.embedded-page {
  margin: -20px -24px;
}

.embedded-app {
  display: block;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 680px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.page-list { margin: 0; padding: 0; list-style: none; }
.page-list li {
  margin: 3px 0;
  font-size: 1.05rem;
  width: 100%;
}

.page-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.page-list-title {
  min-width: 0;
}

.page-list a[href="/restaurants/"] .page-list-title::before,
.page-list a[href="/recipes/"] .page-list-title::before {
  display: inline-block;
  width: 1.5em;
  margin-right: 4px;
}

.page-list a[href="/restaurants/"] .page-list-title::before {
  content: '\1F37D';
}

.page-list a[href="/recipes/"] .page-list-title::before {
  content: '\1F4D6';
}

.page-list-lastmod {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: rgba(30, 28, 24, 0.56);
  white-space: nowrap;
}

.page-list a:hover {
  transform: translateX(6px) translateY(-1px);
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.body-copy { line-height: 1.7; }
.body-copy > :first-child { margin-top: 0; }
.body-copy > :last-child { margin-bottom: 0; }
.body-copy a,
.body-copy a:visited {
  color: #00acc1;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.body-copy a:hover,
.body-copy a:active {
  color: #00838f;
  text-decoration: underline;
}

.body-copy code { font-size: 0.9em; background: #f4f4f4; border-radius: 4px; padding: 0.1em 0.3em; }
.body-copy pre { overflow-x: auto; padding: 16px; background: #f4f4f4; border-radius: 8px; }
.body-copy pre code { background: none; padding: 0; }
.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.body-copy th,
.body-copy td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  line-height: 1.45;
}

.body-copy th:nth-child(1),
.body-copy td:nth-child(1) {
  min-width: 220px;
}

.body-copy th:nth-child(2),
.body-copy td:nth-child(2) {
  min-width: 130px;
}

.body-copy th:nth-child(3),
.body-copy td:nth-child(3) {
  min-width: 230px;
}

.body-copy th:nth-child(4),
.body-copy td:nth-child(4) {
  min-width: 180px;
}
.body-copy th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.body-copy th.sortable::after {
  content: '↕';
  font-size: 0.78em;
  margin-left: 6px;
  opacity: 0.45;
}

.body-copy th.sortable.asc::after {
  content: '▲';
  opacity: 0.75;
}

.body-copy th.sortable.desc::after {
  content: '▼';
  opacity: 0.75;
}

@media (max-width: 768px) {
  body {
    padding: 20px 16px 48px;
  }

  .brand {
    font-size: 1rem;
  }

  .site-header {
    gap: 8px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 0.95rem;
  }

  .page-lastmod {
    width: 100%;
    margin-left: 0;
    font-size: 0.82rem;
  }

  .card {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .embedded-page {
    margin: -16px -18px;
  }

  .embedded-app {
    height: calc(100vh - 116px);
    min-height: 600px;
    border-radius: 12px;
  }

  .page-list li {
    margin: 8px 0;
    font-size: 1.1rem;
  }

  .page-list a {
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
  }

  .page-list-lastmod {
    font-size: 0.76rem;
  }

  .body-copy {
    font-size: 1rem;
  }

  .body-copy table {
    margin: 16px 0;
    font-size: 0.95rem;
  }

  .body-copy th, .body-copy td {
    padding: 8px 10px;
  }

  .body-copy th:nth-child(1),
  .body-copy td:nth-child(1) {
    min-width: 180px;
  }

  .body-copy th:nth-child(2),
  .body-copy td:nth-child(2) {
    min-width: 120px;
  }

  .body-copy th:nth-child(3),
  .body-copy td:nth-child(3) {
    min-width: 190px;
  }

  .body-copy th:nth-child(4),
  .body-copy td:nth-child(4) {
    min-width: 160px;
  }
}
