/* Want To Eat — design revision 2. System fonts only; local assets only. */

:root {
  --paper: #f7f3e8;
  --ink: #173f35;
  --sage: #b9c5b9;
  --clay: #93452f;
  --pale: #eee8d8;
  --card: #fffdf6;
  --gold: #e8b33a;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --gutter: 1.25rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

h1,
h2,
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

/* Links and focus */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.375em;
}

a:hover {
  text-decoration-thickness: 4px;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Decorative tile strip at very top and bottom of the page. */
.tilestrip {
  height: 1rem;
  background: repeating-linear-gradient(90deg,
    var(--clay) 0 1rem, var(--sage) 1rem 2rem, var(--ink) 2rem 3rem, var(--pale) 3rem 4rem);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--sage);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.25rem 0.5rem;
}

.wordmark {
  font-size: 1.5rem;
  line-height: 1.2;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

section {
  scroll-margin-top: 1.5rem;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-block: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}

/* Introduction */
.intro__grid {
  padding-block: 2rem 2.5rem;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.intro h2::before {
  content: "";
  display: block;
  width: 4rem;
  height: 0.375rem;
  margin-bottom: 1.25rem;
  background: var(--clay);
}

/* Illustrations: decorative, captioned as illustrative art. */
.art {
  position: relative;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
}

.art figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.375rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.3;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.intro__art {
  margin-top: 1.5rem;
}

.intro__art img {
  border: 1px solid var(--ink);
}

/* Menu band */
.menu {
  background: var(--ink);
  color: var(--paper);
}

.menu .wrap {
  padding-block: 2.5rem 3rem;
}

.menu h2 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.menu h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.375rem;
  margin-top: 1rem;
  background: var(--gold);
}

.menu__list {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.menu__item {
  display: grid;
  background: var(--card);
  color: var(--ink);
  border-top: 6px solid var(--clay);
}

.menu__item:nth-child(2),
.menu__item:nth-child(3) {
  border-top-color: var(--sage);
}

.menu__item .art img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--ink);
}

.menu__text {
  padding: 1.25rem;
  align-self: center;
}

.menu__name {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

/* Tablet and up: desktop composition. */
@media (min-width: 48em) {
  :root {
    --gutter: 2rem;
  }

  body {
    font-size: 1.125rem;
  }

  .site-header__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
  }

  .wordmark {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .site-nav__list {
    gap: 0 2rem;
  }

  h1 {
    font-size: 4rem;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-block: 0 2rem;
  }

  .intro h2 {
    font-size: 2rem;
  }

  .intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 34vw, 30rem);
    gap: 4rem;
    align-items: center;
    padding-block: 5rem;
  }

  .intro__art {
    margin-top: 0;
  }

  .menu .wrap {
    padding-block: 4.5rem 5rem;
  }

  .menu h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 2.5rem;
  }

  .menu__list {
    gap: 2rem 3rem;
  }

  .menu__item {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }

  .menu__item .art {
    height: 100%;
  }

  .menu__item .art img {
    height: 100%;
    aspect-ratio: 1;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
  }

  .menu__text {
    padding: 1.5rem;
  }

  .menu__name {
    font-size: 1.5rem;
  }
}

/* Two menu columns once there is room for 200px art plus text. */
@media (min-width: 64em) {
  .menu__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 75em) {
  h1 {
    font-size: 5.5rem;
  }
}
