/*
  The whole look is "almost no stylesheet": one narrow column, the browser's
  own headings, lists and blue links. Resist adding to this file.
*/

:root {
  /* The typeface for the entire site. For a sans serif, replace with:
     Helvetica, Arial, sans-serif */
  --font: "Times New Roman", Times, serif;
  --muted: #555;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background: #fff;
  max-width: 650px;
  margin: 50px auto;
  padding: 0 10px;
}

main {
  margin-top: 120px;
}

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

hr {
  margin: 24px 0;
}

/* The logo at the top of the home page. */
.logo {
  margin: 0 0 28px;
}

.logo img {
  margin: 0;
}

/* The scores for a review: a plain table, no rules or fills. */
.scores {
  border-collapse: collapse;
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
}

.scores th,
.scores td {
  padding: 1px 28px 1px 0;
  text-align: left;
  vertical-align: top;
}

.scores th[scope="row"] {
  font-weight: normal;
}

.scores .overall th,
.scores .overall td {
  padding-top: 8px;
  font-weight: bold;
}

.scores caption {
  caption-side: bottom;
  margin-top: 8px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}

/* Reviewers' comments: a list with a bold "W, 6.4." in front of each. */
.entries li {
  margin-bottom: 2px;
}

.entries li p {
  margin: 0;
}

.entries li p + p,
.entries li :is(ul, ol, blockquote) {
  margin: 4px 0;
}

/* Dish photos have their background removed, so they sit straight on the page. */
.photos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin: 12px 0;
}

.photos img {
  width: auto;
  max-width: min(100%, 300px);
  max-height: 220px;
  margin: 0;
}

/* Shown to reviewers above a preview of an unpublished review. */
.preview-note {
  border: 1px solid #000;
  padding: 10px 12px;
  margin-bottom: 40px;
}

.site-footer {
  margin: 60px 0 30px;
  padding-top: 18px;
}

@media (max-width: 600px) {
  body {
    margin-top: 20px;
  }

  main {
    margin-top: 40px;
  }

  .scores th,
  .scores td {
    padding-right: 12px;
  }
}
