:root {
  --side-width: 24%;
  --gutter: 3%;
  --rule-overhang: 20px;
  --vrule-overhang: 8px;
  --card-height: 264px;
  --logo-max: 780px;
}

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

img {
  vertical-align: middle;
}

.brand a {
  display: block;
}

body {
  font-family: 'Roboto', monospace;
  font-size: 12px;
  margin: 0;
}

a { color: blue; }

@media (min-width: 1025px) {

  body {
    display: flex;
    min-height: 100vh;
    padding: 40px 0;
  }

  a {
    font-weight: 900;
  }

  .site {
    position: relative;

    width: min(1040px, 82%);
    min-width: 942px;
    margin: auto;
  }

  .site::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--vrule-overhang));
    bottom: calc(-1 * var(--vrule-overhang));
    left: calc(100% - var(--side-width) + var(--gutter) / 2);
    border-left: 1px solid #000;
  }

  .site-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: calc(var(--gutter) / 2);
  }

  .brand {
    width: calc(100% - var(--side-width));
  }

  .brand img {
    display: block;
    width: min(100%, var(--logo-max));
    height: auto;
  }

  .greeting {
    width: var(--side-width);
    padding-top: 0;
    padding-left: var(--gutter);
  }

  .site-header::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--rule-overhang));
    right: calc(-1 * var(--rule-overhang));
    bottom: 0;
    border-bottom: 1px solid #000;
  }

  .site-main {
    display: flex;
  }

  .intro {
    order: 2;
    width: var(--side-width);
    padding-left: var(--gutter);
    padding-top: calc(var(--gutter) / 2);
  }

  .gallery-wrap {
    width: calc(100% - var(--side-width));
  }

  .gallery {
    display: flex;
    gap: 20px;
    padding-top: calc(var(--gutter) / 2);
    overflow-x: auto;
    overflow-y: hidden;
    outline: 0;
    padding-bottom: 8px;

    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
  }

  .gallery::-webkit-scrollbar {
    height: 8px;
    background: transparent;
  }

  .gallery::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: content-box;
  }

  .gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery::-webkit-scrollbar-track {
    background: transparent;
  }

  .gallery .tile {
    flex: 0 0 auto;
  }

  .brand,
  .greeting,
  .intro,
  .gallery-wrap {
    flex-shrink: 0;
  }

  .piece-img {
    height: var(--card-height);
    width: auto;
  }

  .greeting { max-width: 220px; box-sizing: content-box; }
  .intro    { max-width: 220px; box-sizing: content-box; }
}

.greeting,
.intro {
  line-height: 2;
}

.tile {
  position: relative;
}

.tile-label {
  position: absolute;
  inset: 0;
  text-align: center;
}

.tile-label a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  font-size: 15px;
  color: blue;
  text-shadow:
    0 0 3px #fff, 0 0 6px #fff, 0 0 10px #fff,
    -1px -1px 2px #fff, 1px -1px 2px #fff,
    -1px 1px 2px #fff, 1px 1px 2px #fff;
}

.tile-label .price {
  font-weight: 400;
  padding-top: 4px;
}

.mobile-break {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-break {
    display: inline;
  }

  .site {
    padding: 30px;
  }

  .brand {
    width: 500px;
    margin: 0 auto 20px;
  }

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

  .greeting {
    border-top: 1px solid #000;
    padding-top: 15px;
  }

  .intro {
    padding: 0 0 15px;
    border-bottom: 1px solid #000;
    margin-bottom: 15px;
  }

  .tile {
    margin: 0 auto 30px;
    max-width: 468px;
  }

  .piece-img {
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    width: auto;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 500px) {
  .brand {
    width: 100%;
  }
}
