@font-face {
  font-family: MemoryManrope;
  src: url("fonts/manrope-400.woff2") format("woff2"),
    url("/memocasting-homepage/v1/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: MemoryManrope;
  src: url("fonts/manrope-600.woff2") format("woff2"),
    url("/memocasting-homepage/v1/fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #fff;
  --wash: #f7f6f4;
  --ink: #282526;
  --secondary: #6b6360;
  --rose: #a24f68;
  --rose-soft: #f7edf0;
  --line: #e6e0dc;
  --control-line: #bbb2af;
  --radius: 12px;
  --control-radius: 7px;
  --header-height: 82px;
  --button-hover: #444042;
  --panel: #f4f1ef;
  --max: 1320px;
  --gutter: clamp(24px, 3.3vw, 64px);
  --sans: MemoryManrope, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
  font-synthesis: none;
  scrollbar-color: #c9afb5 var(--wash);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #eccbd5; }
body { margin: 0; min-width: 0; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .3em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}

h2 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); }
ul, ol { padding-inline-start: 1.25rem; }
.frame { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 200;
  top: 14px;
  left: var(--gutter);
  padding: .7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.top {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  position: relative;
  display: grid;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  min-height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.7rem;
  margin: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  font-weight: 600;
  line-height: 1.16;
  text-decoration: none;
}

.brand img, .brand-logo {
  width: clamp(153px, 15.4vw, 192px);
  height: auto;
  mix-blend-mode: multiply;
}

.brand small { display: block; margin-top: .1rem; color: var(--secondary); font-size: .78rem; font-weight: 400; }

.brand-mark {
  width: 26px;
  height: 23px;
  color: var(--rose);
  border: 1px solid currentColor;
  border-radius: 4px;
}

.brand-mark i { display: block; width: 1px; height: 100%; margin: auto; background: currentColor; }

#portal-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(.1rem, 1vw, .85rem);
}

.menu-group summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: .48rem;
  padding: .56rem .48rem;
  border-radius: var(--control-radius);
  list-style: none;
  white-space: nowrap;
  font-size: .94rem;
}

.menu-group summary::-webkit-details-marker { display: none; }

.menu-group summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-.14rem);
}

.menu-group[open] summary::after { transform: rotate(225deg); }
.menu-group summary:hover, .menu-group[open] summary { background: var(--wash); color: var(--rose); }

.mega {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: max-content;
  max-width: min(100%, 840px);
  max-height: min(70vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.55rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 40px rgb(40 37 38 / .12);
}

.section-link { font-weight: 600; text-decoration-color: var(--rose); }
.mega-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.nav-col { flex: 1 1 156px; min-width: 146px; max-width: 265px; margin-top: .9rem; }
.nav-col span { color: var(--rose); font-size: .76rem; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; }
.nav-col ul { margin: .42rem 0 0; padding: 0; list-style: none; }
.nav-col a { display: block; padding-block: .3rem; font-size: .9rem; line-height: 1.5; text-decoration: none; }
.nav-col a:hover { color: var(--rose); text-decoration: underline; }

.shop-link, .search-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.search-link::before {
  content: "";
  width: .82rem;
  height: .82rem;
  margin-right: .45rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 5px 5px 0 -4px currentColor;
}

.search-link:hover { color: var(--rose); text-decoration: underline; }

.shop-link {
  justify-content: center;
  padding: 0 .95rem;
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--paper);
}

.shop-link:hover { border-color: var(--button-hover); background: var(--button-hover); }
.mobile-toggle { display: none; }

.season {
  display: flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  padding: .25rem .75rem;
  color: var(--ink);
  background: var(--rose-soft);
  font-size: .82rem;
  text-align: center;
}

.season span { font-weight: 600; }

.season span::before {
  content: "";
  display: inline-block;
  width: .42rem;
  height: .42rem;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--rose);
  vertical-align: .14em;
}

.season a { color: var(--ink); text-decoration-color: var(--rose); }

.hero {
  overflow: clip;
  padding: clamp(3rem, 6.5vw, 6.25rem) 0;
  background: var(--wash);
  color: var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5.65rem);
}

.eyebrow {
  color: var(--rose);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero .eyebrow { margin-bottom: .88rem; }

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 4.7vw, 4.1rem);
  line-height: 1.08;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 1.3rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.37vw, 1.125rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .68rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--button-hover); }
.button.secondary { border-color: var(--control-line); background: var(--paper); color: var(--ink); }
.button.secondary:hover, .button.secondary[aria-pressed="true"] { border-color: var(--rose); color: var(--rose); }
.button[disabled] { opacity: .55; cursor: not-allowed; }

.hero-art { overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-paper {
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--panel), var(--rose-soft));
}

.hero-paper span {
  width: 54%;
  aspect-ratio: 1.5;
  transform: rotate(-8deg);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 15px 28px rgb(40 37 38 / .12);
}

.hero-paper i {
  position: absolute;
  top: 28%;
  left: 46%;
  width: 27%;
  aspect-ratio: 1.7;
  transform: rotate(11deg);
  border-radius: 4px;
  background: var(--rose-soft);
}

.block { padding-block: clamp(2.35rem, 4.6vw, 4.35rem); }
.block + .block { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.block h2 { margin-bottom: 1.3rem; }
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.item-grid, .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.collection-card, .item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: clamp(.95rem, 2.15vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.collection-card:hover, .item-card:hover { border-color: var(--rose); background: var(--wash); }
.collection-card strong, .item-card strong { font-size: clamp(1.07rem, 1.45vw, 1.26rem); font-weight: 600; line-height: 1.27; }
.collection-card > span:last-child, .item-card > span:not(.item-type):not(.item-arrow) { color: var(--secondary); font-size: .91rem; }
.collection-photo, .item-photo,
.collection-card img, .item-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: .32rem;
  border-radius: calc(var(--radius) - 3px);
  background: var(--wash);
  object-fit: cover;
}

.collection-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 28px;
  margin-bottom: .2rem;
  color: var(--rose);
  border: 1.5px solid currentColor;
  border-radius: 5px;
}

.collection-card:has(img) .collection-icon { display: none; }
.collection-icon.i0::after, .collection-icon.i3::after { content: ""; display: block; width: 1px; height: 100%; margin: auto; background: currentColor; }
.collection-icon.i1 { border-radius: 12px 12px 12px 3px; }
.collection-icon.i2::after { content: ""; position: absolute; inset: 1px; border-bottom: 1px solid currentColor; transform: rotate(-26deg); }
.collection-icon.i4 { border-radius: 2px 8px 8px 2px; }
.item-type { color: var(--rose); font-size: .74rem; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; }
.item-arrow { margin-top: auto; align-self: flex-end; color: var(--rose); font-size: 1.1rem; }

.crumbs { padding-top: 1.15rem; color: var(--secondary); font-size: .89rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs a:hover { color: var(--rose); }

.page-head { padding-block: clamp(2.15rem, 4.6vw, 4.35rem) clamp(1.5rem, 3.35vw, 3rem); }
.page-head:has(> .page-cover) {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 4.5vw, 4.2rem);
}

.page-head-copy { min-width: 0; }
.page-head h1 { max-width: 24ch; margin-top: .42rem; font-size: clamp(2.05rem, 3.65vw, 3.38rem); }
.page-head p:not(.eyebrow) { max-width: 65ch; margin-top: .95rem; color: var(--secondary); font-size: clamp(1rem, 1.28vw, 1.16rem); }

.article-cover, .page-cover {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.article-cover img, .page-cover img {
  width: 100%;
  max-height: min(66vh, 35rem);
  object-fit: cover;
}

.page-head > .article-cover { margin-top: 1.5rem; }
.page-head > .page-cover img { aspect-ratio: 8 / 5; }
.page-cover-product img { object-fit: contain; padding: min(4vw, 2rem); }
.article-grid > .article-cover { grid-column: 2; margin-bottom: .5rem; }
.article-copy > .article-cover { margin-bottom: 1.6rem; }

.article-grid {
  display: grid;
  grid-template-columns: minmax(160px, 224px) minmax(0, 860px);
  align-items: start;
  gap: clamp(1.5rem, 4.6vw, 4.5rem);
  padding-bottom: 3.65rem;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  max-height: calc(100vh - 7.5rem);
  overflow: auto;
  padding: .15rem 1rem;
  border-left: 2px solid var(--rose);
  color: var(--secondary);
  font-size: .88rem;
}

.toc p { color: var(--ink); font-weight: 600; }
.toc ol { margin: .55rem 0; }
.toc li { margin-bottom: .44rem; }
.article-copy { min-width: 0; grid-column: 2; }
.article-part { margin-bottom: 2.65rem; scroll-margin-top: 6.5rem; }
.article-part h2 { margin-bottom: .85rem; scroll-margin-top: 6.5rem; }
.article-part p + p { margin-top: .87rem; }
.article-part a:hover, .related a:hover { color: var(--rose); }

.ideas, .offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: 0;
  list-style: none;
}

.ideas > li, .offers > li, .wish {
  min-width: 0;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ideas > li { background: var(--wash); }
.ideas .price {
  display: inline-block;
  margin: .4rem 0 .2rem;
  padding: .08rem .47rem;
  border-radius: 4px;
  background: var(--rose-soft);
  color: var(--ink);
  font-size: .87rem;
  font-weight: 600;
}

.ideas p, .offer p { margin-top: .32rem; }
.offer { display: grid; align-content: start; gap: .68rem; height: 100%; }
.offer-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 3px);
  background: var(--wash);
  object-fit: cover;
}

.offer-visual-product img {
  padding: clamp(.65rem, 1.5vw, 1.2rem);
  object-fit: contain;
}

.offer-visual, .offer figure, .offer picture { display: block; }
.offer-caption, .offer figcaption { margin-top: .34rem; color: var(--secondary); font-size: .78rem; line-height: 1.5; }
.offer small {
  display: inline-block;
  margin-top: .55rem;
  padding: .16rem .45rem;
  border-radius: 4px;
  background: var(--wash);
  color: var(--ink);
  font-size: .83rem;
  font-weight: 600;
}

.wish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .72rem;
  margin-top: .68rem;
}

.wish button {
  min-height: 44px;
  padding: .4rem .7rem;
  border: 1px solid var(--control-line);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
}

.wish button:hover { border-color: var(--rose); color: var(--rose); }

.wish .wish-translation {
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: .92rem;
}

.wish [data-wish-original], .wish .wish-translation { white-space: pre-wrap; }
.citations ul, .related ul, .inline-links { margin: .46rem 0 0; }
.related { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.related h2 { font-size: 1.43rem; }
.related-wrap { padding-bottom: 2.25rem; }

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.media-card img { width: 100%; height: auto; background: var(--wash); }
.media-card figcaption { padding: .9rem; }
.media-card .actions { margin-top: .6rem; }
.media-filter { display: block; margin-bottom: 1.2rem; font-weight: 600; }
.media-filter select {
  min-height: 44px;
  margin-inline-start: .45rem;
  padding: .4rem .55rem;
  border: 1px solid var(--control-line);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--ink);
}

.table-wrap { overflow: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .94rem; }
.table-wrap th, .table-wrap td { padding: .67rem .87rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table-wrap thead { background: var(--wash); }
.table-wrap tbody th { width: 27%; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }

.footer {
  padding-block: clamp(2.7rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--secondary);
}

.footer-inner, .footer-links { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; }
.footer-title { margin-bottom: .42rem; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.footer-inner > div p:last-child { max-width: 35ch; font-size: .875rem; }
.footer-links { flex-direction: column; justify-content: flex-start; gap: .25rem; }
.footer-links a { display: flex; min-height: 38px; align-items: center; font-size: .875rem; text-decoration: none; }
.footer-links a:hover { color: var(--rose); text-decoration: underline; }

@media (max-width: 1120px) {
  .top-inner { gap: .85rem; }
  #portal-menu { gap: .08rem; }
  .menu-group summary { padding-inline: .4rem; font-size: .87rem; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-height: 70px; --gutter: 20px; }
  .top-inner { min-height: var(--header-height); grid-template-columns: minmax(0, 1fr) auto auto; }
  .brand img, .brand-logo { width: min(100%, 166px); }
  .mobile-toggle {
    display: block;
    min-height: 44px;
    padding: .35rem .68rem;
    border: 1px solid var(--control-line);
    border-radius: var(--control-radius);
    background: var(--paper);
    color: var(--ink);
    font-size: .9rem;
  }
  .mobile-toggle[aria-expanded="true"] { border-color: var(--rose); color: var(--rose); }
  .top #portal-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: calc(-1 * var(--gutter));
    left: calc(-1 * var(--gutter));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100dvh - var(--header-height) - 34px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: .6rem var(--gutter) .8rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 24px rgb(40 37 38 / .11);
  }
  .top #portal-menu.is-open { display: flex; }
  #portal-menu > * { flex-shrink: 0; }
  .menu-group summary { justify-content: space-between; padding-inline: .65rem; font-size: .95rem; }
  .mega { position: static; width: 100%; max-height: none; padding: .72rem .85rem; border-radius: var(--control-radius); box-shadow: none; }
  .mega-grid { gap: .5rem .85rem; }
  .nav-col { min-width: min(117px, 100%); max-width: none; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 7vw, 3.08rem); }
  .hero-art img { max-height: min(62vh, 30rem); }
  .page-head:has(> .page-cover) { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { max-width: 28ch; }
  .item-grid, .media-grid, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .article-copy, .article-grid > .article-cover { grid-column: auto; }
  .toc { position: static; max-height: none; }
}

@media (max-width: 440px) {
  .top-inner { gap: .5rem; }
  .shop-link { padding-inline: .58rem; }
  .item-grid, .media-grid, .ideas, .offers { grid-template-columns: minmax(0, 1fr); }
  .wish { grid-template-columns: minmax(0, 1fr); }
  .wish button { justify-self: start; }
  .media-filter select { max-width: 100%; margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
