lion-tabs, rec-carousel {
  margin-top: 2rem;
}

lion-tabs rec-carousel {
  margin-top: 0;
}

aside {
  background-color: var(--cassis-70);
  color: var(--ash-10);
  margin-bottom: 1rem;
  padding: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image .hover-capture-left {
    grid-area: 1 / 1;
  }

  .hero-image .hover-capture-middle {
    grid-area: 1 / 2;
  }

  .hero-image .hover-capture-right {
    grid-area: 1 / 3;
  }

  .hero-image {
    --left: polygon(0% 0%, 0% 0%, -20% 100%, -20% 100%);
    --full: polygon(0% 0%, 120% 0%, 100% 100%, -20% 100%);
    --right: polygon(120% 0%, 120% 0%, 100% 100%, 100% 100%);
  }

  .hero-image picture {
    transition-property: clip-path;
    transition-duration: 1s;
    transition-timing-function: ease-out;
  }

  .hero-image .hover-capture-left:hover ~ picture {
    --clip-hover-left: var(--full);
    --clip-hover-middle: var(--right);
    --clip-hover-right: var(--right);
  }

  .hero-image .hover-capture-middle:hover ~ picture {
    --clip-hover-left: var(--left);
    --clip-hover-middle: var(--full);
    --clip-hover-right: var(--right);
  }

  .hero-image .hover-capture-right:hover ~ picture {
    --clip-hover-left: var(--left);
    --clip-hover-middle: var(--left);
    --clip-hover-right: var(--full);
  }
}

.theme {
  margin-top: 4rem;
}

.theme > h3 {
  margin-bottom: .5rem;
}

.theme > p {
  margin-top: 1rem;
}

.theme > .install-button {
  max-width: max-content;
  margin-top: 2rem;
}

a {
  color: red;
}

.body-link, .surface-link {
  color: currentColor;
  outline-offset: 4px;
}

:is(.body-link, .surface-link):focus, :is(.body-link, .surface-link):hover {
  color: var(--link-focus-color);
}

:is(.body-link, .surface-link):focus {
  outline: 2px solid var(--link-focus-color);
}

:is(.body-link, .surface-link):focus:not(:focus-visible) {
  outline: none;
}

:target {
  outline: none;
  position: relative;
}

:target:before {
  content: "";
  opacity: 1;
  background-color: currentColor;
  width: .25em;
  height: 100%;
  animation-name: fadeout;
  animation-duration: 1.5s;
  animation-timing-function: ease-in;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
  position: absolute;
  left: -1ch;
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

blockquote {
  quotes: "“" "”";
  text-indent: -2ch;
  padding-left: 2ch;
}

blockquote:before {
  content: open-quote;
  font-family: serif;
  font-size: 32px;
  line-height: 1;
}

lion-tabs {
  display: block;
}

lion-tabs > button {
  border: none;
  border-radius: 4px 4px 0 0;
  padding: 8px 24px;
  box-shadow: inset 0 -6px 6px -3px #09021257;
}

lion-tabs > button[aria-selected="true"] {
  box-shadow: none;
}

lion-tabs > button ~ button {
  margin-left: 1px;
}

lion-tabs rec-carousel {
  border-top-left-radius: 0;
}

.filter-form {
  border-radius: 4px;
  grid-template-columns: 1fr;
  grid-template-areas: "form"
                       "output";
  margin-top: 4rem;
  display: grid;
  overflow: hidden;
}

.filter-form form {
  grid-area: form;
  padding: 16px 16px 32px;
}

.filter-form label {
  display: block;
}

.filter-form label > .label {
  font-weight: 700;
}

.filter-form label > .description {
  font-size: .75rem;
}

.filter-form .input {
  align-items: center;
  gap: 8px;
  display: flex;
}

.filter-form .eyedropper {
  cursor: pointer;
  color: currentColor;
  background-color: #0000;
  border: none;
  border-radius: 2px;
  align-self: stretch;
}

.filter-form .eyedropper:hover {
  background-color: var(--cassis-80);
  color: var(--gold-20);
}

rec-filtercalculator {
  padding: 16px 16px 32px;
}

footer {
  padding-top: 32px;
}

.shadow-low {
  box-shadow: .3px .5px .7px hsl(var(--shadow-color) / .34), .4px .8px 1px -1.2px hsl(var(--shadow-color) / .34), 1px 2px 2.5px -2.5px hsl(var(--shadow-color) / .34);
}

.shadow-medium {
  box-shadow: .3px .5px .7px hsl(var(--shadow-color) / .34), .8px 1.6px 2px -.8px hsl(var(--shadow-color) / .34), 2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / .34), 5px 10px 12.6px -2.5px hsl(var(--shadow-color) / .34);
}

.shadow-high {
  box-shadow: .3px .5px .7px hsl(var(--shadow-color) / .34), 1.5px 2.9px 3.7px -.4px hsl(var(--shadow-color) / .34), 2.7px 5.4px 6.8px -.7px hsl(var(--shadow-color) / .34), 4.5px 8.9px 11.2px -1.1px hsl(var(--shadow-color) / .34), 7.1px 14.3px 18px -1.4px hsl(var(--shadow-color) / .34), 11.2px 22.3px 28.1px -1.8px hsl(var(--shadow-color) / .34), 17px 33.9px 42.7px -2.1px hsl(var(--shadow-color) / .34), 25px 50px 62.9px -2.5px hsl(var(--shadow-color) / .34);
}

.space-top-8 {
  margin-top: .5rem;
}

.space-top-16 {
  margin-top: 1rem;
}

.space-top-32 {
  margin-top: 2rem;
}

.space-top-64 {
  margin-top: 4rem;
}

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.icon {
  fill: currentColor;
  height: 1.5em;
}

@media (width >= 55rem) {
  aside {
    float: right;
    width: 30%;
    margin-bottom: 2rem;
    margin-left: 2rem;
  }

  .theme {
    grid-template: "sample heading"
                   "sample content" 1fr
                   "button ."
                   / 1fr 2fr;
    gap: 0 32px;
    display: grid;
  }

  .theme > h3 {
    grid-area: heading;
  }

  .theme > picture {
    grid-area: sample;
  }

  .theme > p {
    grid-area: content;
  }

  .theme > .install-button {
    grid-area: button;
  }

  .filter-form {
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "form output";
  }
}

@media (width <= 32rem) {
  lion-tabs > button {
    padding: 8px 16px;
  }

  rec-carousel {
    --carousel-caption-height: 6em;
  }
}

@media (width <= 16rem) {
  rec-carousel {
    --carousel-caption-height: 8em;
  }
}

@media (width <= 12rem) {
  rec-carousel {
    --carousel-caption-height: 11em;
  }

  lion-tabs > button {
    padding: 8px;
    font-size: .875rem;
  }
}
