:root {
  --red: #b52850;
  --green: #345c48;
  --ink: #292a2e;
  --line: #eadfe5;
  --muted: #68636b;
}

body {
  color: var(--ink);
  background: #faf8fb;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  line-height: 1.62;
}

button,
input,
textarea {
  font-family: "Segoe Print", "Comic Sans MS", cursive;
}

header {
  min-height: 84px;
  padding: 18px 32px;
  background: #fff;
  border-color: var(--line);
  border-radius: 24px;
  box-shadow: none;
}

header .brand {
  color: var(--red);
  font-size: 25px;
}

header .brand small {
  color: var(--muted);
}

header a:hover,
header [aria-current="page"] {
  color: var(--red);
}

header button {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

header button:hover {
  background: #952040;
  border-color: #952040;
}

header a:focus-visible,
header button:focus-visible,
.brand-banner a:focus-visible,
input:focus-visible {
  outline-color: #ce809b;
}

h1,
h2 {
  color: var(--ink);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 34px;
}

.eyebrow {
  color: var(--red);
  font-size: 16px;
}

.brand-banner a:focus-visible {
  outline-offset: -4px;
}

.filters .selected {
  color: #922442;
  background: #f6e1e8;
  border-color: #e7b5c6;
}

.product {
  border-color: var(--line);
  box-shadow: none;
}

.product:hover {
  border-color: #d7a9ba;
  box-shadow: 0 8px 22px #7625420b;
}

.photo {
  background: #fff;
}

.product-bottom button,
.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.product-bottom button:hover,
.primary:hover {
  background: #952040;
  border-color: #952040;
}

input,
textarea {
  background: #fff;
  border-color: #ddcfd7;
  border-radius: 8px;
}

footer,
.about-page,
.account,
.auth-page {
  background: #fff;
  border-color: var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 26px #76254206;
}

footer {
  padding: 32px;
}

footer .brand {
  color: var(--red);
}

footer h3 {
  color: #633747;
}

.account aside a,
.contact-page a {
  color: #922442;
  font-weight: 600;
}

.account-summary article,
aside {
  background: #fff9fc;
}

dialog {
  border-color: var(--line);
}

#toast {
  background: #922442;
}

.theme-control {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid #d9cbd3;
  border-radius: 28px;
  box-shadow: 0 4px 18px #0003;
}

.theme-control button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.theme-control button[aria-pressed="true"] {
  background: #f5dce5;
}

.theme-control img {
  display: block;
  width: 22px;
  height: 22px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #f294ae;
  --green: #a9cbb8;
  --ink: #f4f1f3;
  --line: #393439;
  --muted: #bdb6bd;
}

:root[data-theme="dark"] body {
  color: var(--ink);
  background: #101011;
}

:root[data-theme="dark"] header,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .about-page,
:root[data-theme="dark"] .account,
:root[data-theme="dark"] .auth-page {
  background: #1b1b1e;
  border-color: var(--line);
  box-shadow: 0 8px 26px #0003;
}

:root[data-theme="dark"] header,
:root[data-theme="dark"] dialog {
  color: var(--ink);
}

:root[data-theme="dark"] header .brand,
:root[data-theme="dark"] footer .brand,
:root[data-theme="dark"] header [aria-current="page"],
:root[data-theme="dark"] header a:hover,
:root[data-theme="dark"] .about-heading h1,
:root[data-theme="dark"] .account h1,
:root[data-theme="dark"] .auth h1,
:root[data-theme="dark"] .contact-page h1,
:root[data-theme="dark"] .contact-page a,
:root[data-theme="dark"] .account aside a,
:root[data-theme="dark"] .about-catalog-link {
  color: var(--red);
}

:root[data-theme="dark"] header .brand small,
:root[data-theme="dark"] footer .brand small {
  color: var(--muted);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2 {
  color: var(--ink);
}

:root[data-theme="dark"] .shop-note,
:root[data-theme="dark"] footer h3,
:root[data-theme="dark"] .story-video figcaption {
  color: #ded4dc;
}

:root[data-theme="dark"] .shop-note,
:root[data-theme="dark"] .about-heading,
:root[data-theme="dark"] .account section,
:root[data-theme="dark"] .like-row,
:root[data-theme="dark"] .cart-row,
:root[data-theme="dark"] .confirm-row,
:root[data-theme="dark"] .order-items li,
:root[data-theme="dark"] .copyright {
  border-color: var(--line);
}

:root[data-theme="dark"] .account-summary article,
:root[data-theme="dark"] aside {
  background: #242126;
  border-color: var(--line);
}

:root[data-theme="dark"] .account-summary strong {
  color: var(--red);
}

:root[data-theme="dark"] .brand-banner,
:root[data-theme="dark"] .photo {
  background: #222225;
}

:root[data-theme="dark"] .product {
  background: #1b1b1e;
  border-color: var(--line);
}

:root[data-theme="dark"] .product:hover {
  border-color: #80606d;
  box-shadow: 0 8px 22px #0004;
}

:root[data-theme="dark"] .product-bottom span,
:root[data-theme="dark"] .meta,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] footer p,
:root[data-theme="dark"] sup {
  color: var(--muted);
}

:root[data-theme="dark"] .about-story p {
  color: #e3dce2;
}

:root[data-theme="dark"] button,
:root[data-theme="dark"] .filters button {
  color: var(--ink);
  background: #262428;
  border-color: #4a4148;
}

:root[data-theme="dark"] .filters .selected,
:root[data-theme="dark"] .selected {
  color: #ffd6e2;
  background: #4b2533;
  border-color: #a45770;
}

:root[data-theme="dark"] .primary,
:root[data-theme="dark"] header button,
:root[data-theme="dark"] .product-bottom button {
  color: #fff;
  background: #a9274d;
  border-color: #a9274d;
}

:root[data-theme="dark"] .primary:hover,
:root[data-theme="dark"] header button:hover,
:root[data-theme="dark"] .product-bottom button:hover {
  background: #c0325d;
  border-color: #c0325d;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  color: var(--ink);
  background: #121214;
  border-color: #50434b;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #b6adb5;
}

:root[data-theme="dark"] .order {
  background: #242126;
  border-color: var(--line);
}

:root[data-theme="dark"] .order-topline span {
  color: #ffd6e2;
  background: #4b2533;
}

:root[data-theme="dark"] .contact-page {
  background-image: none;
}

:root[data-theme="dark"] dialog {
  background: #1b1b1e;
  border-color: #50434b;
}

:root[data-theme="dark"] dialog::backdrop {
  background: #000b;
}

:root[data-theme="dark"] .close {
  color: var(--ink);
  background: #1b1b1e;
}

:root[data-theme="dark"] .story-video video {
  background: #121214;
}

:root[data-theme="dark"] #toast {
  color: #fff;
  background: #a9274d;
}

:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] textarea:focus-visible {
  outline-color: #f294ae;
}

:root[data-theme="dark"] .theme-control {
  background: #202024;
  border-color: #50434b;
}

:root[data-theme="dark"] .theme-control button {
  background: transparent;
}

:root[data-theme="dark"] .theme-control button[aria-pressed="true"] {
  background: #703047;
}

:root[data-theme="dark"] .theme-control img {
  filter: invert(1);
}

@media (max-width: 850px) {
  header {
    padding: 18px 24px;
  }
}

@media (max-width: 520px) {
  header,
  footer,
  .about-page,
  .account,
  .auth-page {
    border-radius: 20px;
  }
}
