@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --background: #21151b;
  --text: #f5e7eb;
  --muted: #d9c4cc;
  --rose: #c17e94;
  --pink: #e991aa;
  --sage: #b6c384;
  --line: #69414f;
  --surface: radial-gradient(ellipse at 11% -32%, #75485bb0, transparent 71%), linear-gradient(146deg, #39242e, #291a21 62%, #25181e);
  --shadow: 0 16px 25px #100a0e90, inset 1px 1px 6px #ffc5da13;
  --radius: 24px;
  --gap: 20px;
  /* Original preview stacks, also used as fallbacks. */
  --original-serif: Georgia, 'Times New Roman', serif;
  --original-editorial: 'Times New Roman', Georgia, serif;
  --original-sans: 'Helvetica Neue', Arial, sans-serif;

  /* Remove the approved font names from these four tokens to restore the previous look. */
  --serif: 'Instrument Serif', var(--original-serif);
  --section-heading: 'Newsreader', var(--original-editorial);
  --editorial: 'Newsreader', var(--original-editorial);
  --sans: 'DM Sans', var(--original-sans);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.45 var(--sans);
  color: var(--text);
  background: radial-gradient(ellipse at 39% -3%, #563342 0, transparent 47%),
    radial-gradient(ellipse at 35% 65%, #302028 0, transparent 62%), var(--background);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('design/MODA-visual-assets/reusable-png/grain-tile.png');
  pointer-events: none;
  opacity: .15;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .reading { font-weight: 400; }
h1 { font-family: var(--serif); }
h1, h2, h3 { line-height: 1.06; }
h2, h3 { font-family: var(--section-heading); font-variation-settings: "opsz" 72; }
.reading { font-family: var(--editorial); }
.reading { color: var(--muted); line-height: 1.32; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
[id] { scroll-margin-top: 20px; }
[data-icon] { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
[data-icon] svg { display: block; width: 100%; height: 100%; }
.surface {
  background: var(--surface);
  border: 1px solid #8c52643d;
  border-top-color: #a86b80a6;
  box-shadow: var(--shadow), inset 0 11px 20px -17px #f4add16b;
  border-radius: var(--radius);
}
.btn, .round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 20px;
  cursor: pointer;
  color: inherit;
}
.btn { min-height: 40px; padding: 0 19px; }
.btn:hover, .round:hover, .stat:hover { filter: brightness(1.12); }
.primary {
  background: linear-gradient(145deg, #bac697, #98a578 58%, #808c65);
  color: #10130c;
  font-weight: 650;
  border: 1px solid #c3cc9a80;
  box-shadow: 0 9px 18px #100a0e85, inset 0 1px 2px #ecf4cb70;
}
.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.brand, .toolbar, .actions, .section-heading, .text-link { display: flex; align-items: center; }
.brand { gap: 26px; white-space: nowrap; }
.brand-mark { width: 57px; height: 56px; border-radius: 17px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 117%; display: block; translate: 0 -7%; }
.toolbar { gap: 15px; }
.eyebrow { color: var(--sage); font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .31em; }
.rule { display: flex; align-items: center; gap: 17px; }
.rule::after { content: ''; width: min(130px, 15vw); height: 1px; background: #a9a78566; }
.section-heading { justify-content: space-between; gap: 12px; }
.text-link { color: var(--sage); gap: 7px; }
.text-link:hover, .store-nav a:hover, .member-nav a:hover { color: #d3dda9; }

.storefront { --radius: 27px; }
.store-header {
  padding: 18px 4.25vw 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.store-header .brand { font-size: clamp(16px, 1.84vw, 24px); }
.store-nav { display: flex; gap: clamp(18px, 3.5vw, 44px); margin-left: auto; }
.store-nav a { position: relative; }
.store-nav .current::after { content: ''; position: absolute; inset: auto 0 -8px; height: 2px; background: var(--rose); }
.store-header .toolbar { margin-left: 24px; }
.store-header .primary { font-size: 14px; }
.storefront main { padding: 0 5.55% 53px; }
.hero { position: relative; min-height: clamp(416px, 34.7vw, 630px); padding: clamp(38px, 3.2vw, 58px) 0 33px; display: flex; align-items: flex-start; }
.hero-copy { position: relative; z-index: 1; }
.hero-art {
  position: absolute;
  right: -5.25%;
  width: min(59%, 955px);
  height: auto;
  top: 50%;
  translate: 0 -50%;
  /* Keep the mask on the image bounds so it fades the actual crop edges. */
  --spotlight-corner: radial-gradient(ellipse 36% 52% at top left, transparent 32%, #000 100%);
  mask-image: var(--spotlight-corner),
    linear-gradient(to right, transparent, #000 16%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 77%, transparent);
  mask-composite: intersect;
}
.hero h1 { font-size: clamp(42.5px, 5.32vw, 96.3px); letter-spacing: -.025em; line-height: .98; margin: 19px 0 18px; color: #ead9e2; }
.hero h1 em { letter-spacing: -.044em; color: var(--rose); font-weight: inherit; }
.hero .reading { font-size: clamp(19px, 1.58vw, 26px); }
.actions { gap: 24px; margin-top: 21px; }
.actions .btn { min-height: 47px; font-size: 15px; padding: 0 23px; }
.benefits {
  list-style: none;
  margin: 0;
  padding: 15px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  font-size: 15px;
}
.benefits li { display: flex; align-items: center; justify-content: center; gap: 28px; }
.benefits li + li { border-left: 1px solid var(--line); }
.benefits i { color: var(--sage); width: 29px; height: 28px; }
.collection { margin: 35px -9px 0; }
.collection .section-heading { margin: 0 4px 24px 9px; }
.collection h2, .ecosystem h2 { font-size: clamp(27px, 2.9vw, 36px); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.product { display: grid; align-items: center; }
.storefront .product { min-height: clamp(188px, 15.68vw, 250px); grid-template-columns: 55% 45%; padding: 14px 18px; }
.product-art { display: grid; place-items: center; min-width: 0; }
.product-art img { display: block; max-width: 100%; width: 85%; max-height: 168px; object-fit: contain; filter: drop-shadow(0 10px 10px #170e14b0); }
.art-studio img { width: 83%; }
.art-archive img { width: 89%; }
.storefront .product:nth-child(even) { grid-template-columns: 53% 47%; }
.storefront .product h3 { font-size: clamp(29px, 2.42vw, 36px); }
.storefront .product p { margin: 7px 0 13px; max-width: 213px; color: var(--muted); font: 17px/1.3 var(--editorial); }
.discover { color: var(--sage); min-height: 39px; font-size: 15px; gap: 14px; }
.ecosystem {
  min-height: 178px;
  margin: 41px -27px 0;
  padding: 22px 28px 22px 32.5%;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: url('design/MODA-visual-assets/reusable-png/botanical-edge-fade.png') left bottom / auto 116% no-repeat, var(--surface);
}
.ecosystem .eyebrow { font-size: 12px; }
.ecosystem h2 { margin: 12px 0 10px; letter-spacing: -.035em; }
.ecosystem .reading { font-size: 17px; }
.ecosystem .btn { font-size: 14px; }

.dashboard {
  display: grid;
  grid-template-columns: minmax(235px, 22.4%) minmax(0, 1fr);
  gap: clamp(20px, 2.35vw, 38px);
  padding: 8px 24px 15px 9px;
  background: radial-gradient(ellipse at 55% -12%, #52303f, transparent 47%), radial-gradient(ellipse at 37% 65%, #342128, transparent 67%), var(--background);
}
.sidebar { --surface: radial-gradient(ellipse at 0% 0%, #522d3c50, transparent 54%), linear-gradient(142deg, #2d1e25, #27191f 74%, #22171d); display: flex; flex-direction: column; padding: 31px 19px; gap: 45px; min-height: calc(100vh - 23px); }
.sidebar .brand { margin-left: 10px; gap: 15px; font-size: clamp(11px, 1vw, 16px); letter-spacing: .025em; }
.sidebar .brand-mark { --surface: radial-gradient(ellipse at 12% 8%, #604050, #2b1c23 74%); width: 69px; height: 67px; border-radius: 23px; }
.sidebar .brand em { display: block; font: italic 20px var(--original-serif); color: #d6adb9; margin-top: 4px; }
.member-nav { display: grid; gap: 0; margin: 0 3px; }
.member-nav a { display: flex; align-items: center; gap: 29px; min-height: 51px; padding: 0 12px 0 28px; border-radius: 23px; font-size: 18px; }
.member-nav i { width: 25px; height: 25px; }
.member-nav .active { background: linear-gradient(145deg, #734859, #3b242e 82%); margin: 1px 0 8px; }
.member-nav hr { width: calc(100% - 22px); border: 0; border-top: 1px solid var(--line); margin: 19px auto 17px; }
.dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; background: #a6bf7d; flex: none; }
.dot.rose { background: var(--pink); }
.member-nav .dot { margin-left: auto; }
.toolkit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  border-radius: 22px;
  padding: 92px 22px 27px;
  background: var(--surface);
}
.toolkit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  aspect-ratio: 296 / 97;
  background: url('design/MODA-visual-assets/original-crops/toolkit-orbs.png') center / cover no-repeat;
  mask-image: linear-gradient(#000 70%, transparent);
}
.toolkit h2 { font-size: clamp(24px, 1.97vw, 31px); }
.toolkit p { font-size: 19px; margin: 9px 0 20px; }
.toolkit .btn { min-height: 46px; width: 100%; padding: 0 8px; }
.member-main { padding-top: 45px; }
.member-header { position: relative; padding: 0 10px; }
.member-header h1 { font-size: clamp(43px, 4.15vw, 65px); letter-spacing: -.027em; margin: 14px 0 6px; }
.member-header .reading { font-size: clamp(18px, 1.76vw, 27px); }
.member-header .toolbar { position: absolute; right: 6px; top: -20px; gap: 22px; }
.member-header .round { width: 54px; height: 54px; font-size: 21px; }
.notification { position: relative; }
.notification .dot { position: absolute; right: 4px; top: 2px; box-shadow: 0 0 7px #b6c38455; }
.profile-menu { margin-left: 23px; }
.profile-menu::before { content: ''; width: 1px; height: 32px; position: absolute; top: 11px; left: -23px; background: var(--line); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.profile-menu summary { display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 0 19px 0 13px; border-radius: 30px; }
.profile-menu summary i { margin-left: 4px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; width: 40px; height: 40px; background: linear-gradient(145deg, #bfca9b, #82916a); color: #10130c; font-weight: 650; box-shadow: 0 5px 11px #100a0e85, inset 0 1px 2px #f3f7d28c; }
.popover { position: absolute; z-index: 3; right: 0; top: calc(100% + 6px); padding: 6px; min-width: max-content; border-radius: 13px; background: #38252e; }
.popover a { display: block; padding: 7px 12px; border-radius: 8px; }
.popover a:hover { background: #5b3b48; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 25px 0 38px; }
.stat { display: flex; align-items: center; gap: clamp(9px, 1.6vw, 26px); min-height: 110px; padding: 12px clamp(8px, 1.4vw, 22px); position: relative; font: 18px/1.15 var(--editorial); color: var(--muted); }
.stat > span:nth-child(2) { min-width: 0; }
.stat strong { display: block; font-size: 37px; line-height: 1.1; font-weight: 400; color: var(--text); }
.stat > .dot { position: absolute; top: 16px; right: 21px; }
.tile { width: clamp(47px, 4.43vw, 68px); height: clamp(47px, 4.43vw, 68px); border-radius: 30px; flex: none; display: grid; place-items: center; font-size: 30px; color: var(--sage); }
.pink { color: var(--pink); }
.member-main h2 { font-size: 38px; }
.member-apps .section-heading { margin: 0 8px 22px 5px; }
.member-apps .text-link { font-size: 18px; }
.member-apps .product-grid { grid-template-columns: minmax(0, 49fr) minmax(0, 51fr); gap: 20px 18px; }
.dashboard .product { min-height: 105px; grid-template-columns: 105px minmax(0,1fr) auto; gap: 10px; padding: 10px 18px; }
.dashboard .product-art img { width: 96%; max-height: 72px; }
.dashboard .art-studio img { width: 100%; max-height: none; }
.dashboard .art-archive img { width: 100%; max-height: none; }
.dashboard .product h3 { font-size: 27px; }
.version { font: 17px/1.3 var(--editorial); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.separator { color: var(--rose); }
.rose-text { color: #e4a0b4; }
.app-actions { display: flex; align-items: center; gap: 14px; }
.app-actions .btn { min-height: 42px; border-radius: 17px; padding: 0 16px; }
.app-actions .round { width: 38px; height: 38px; font-size: 12px; letter-spacing: .08em; }
.member-bottom { margin-top: 37px; display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 27px; }
.updates .section-heading { border-top: 1px solid var(--line); margin: 0 11px 24px 8px; padding-top: 25px; }
.update { display: flex; align-items: center; gap: 23px; min-height: 135px; padding: 18px 21px; }
.update h3 { font-size: 25px; }
.update p { margin-top: 9px; font-size: 18px; }
.update .tile { border-radius: 23px; }
.update .btn { margin-left: auto; min-height: 42px; }
.account { padding: 20px 22px 22px 25px; align-self: start; }
.account h2 { font-size: 32px; margin-bottom: 17px; }
.account-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 17px; }
.account-row .avatar { width: 50px; height: 50px; }
.account-row strong, .account-row small { display: block; }
.account-row strong { font-weight: 550; font-size: 17px; }
.account-row small { color: var(--muted); font-size: 15px; margin-top: 2px; }
.account .plan { margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); grid-template-columns: 39px 1fr auto; }
.plan i { width: 31px; height: 31px; }
.plan .btn { font-size: 14px; min-height: 36px; border-radius: 15px; }
.search-dialog { width: min(480px, calc(100% - 32px)); color: var(--text); padding: 22px; }
.search-dialog::backdrop { background: #100a0eb5; }
.search-dialog form { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.search-dialog input { display: block; margin-top: 5px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.search-dialog ul { list-style: none; padding: 0; margin-bottom: 0; }
.search-dialog li a { display: block; padding: 7px; border-radius: 7px; }
.search-dialog li a:hover { background: #5b3b48; }

@media (max-width: 1250px) {
  .dashboard .product { grid-template-columns: 70px minmax(0, 1fr) auto; padding-inline: 12px; }
  .app-actions { gap: 7px; }
  .app-actions .btn { padding-inline: 10px; }
  .update { gap: 13px; }
  .toolkit { padding-inline: 13px; }
}
@media (max-width: 1020px) {
  .store-header .toolbar { margin-left: 0; }
  .store-header .brand { gap: 12px; }
  .store-nav { gap: 18px; }
  .dashboard { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding: 20px 10px; }
  .sidebar .brand { margin: 0; gap: 7px; }
  .sidebar .brand-mark { --surface: radial-gradient(ellipse at 12% 8%, #604050, #2b1c23 74%); width: 39px; height: 39px; border-radius: 12px; }
  .sidebar .brand em { font-size: 16px; }
  .member-nav a { padding-inline: 11px; gap: 13px; }
  .toolkit .btn { font-size: 12px; }
  .member-header .toolbar { position: static; order: -1; align-self: end; }
  .member-header { display: flex; flex-direction: column; gap: 15px; }
  .member-main { padding-top: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-bottom { grid-template-columns: 1fr; }
  .member-apps .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .hero-art {
    opacity: .66;
    mask-image: var(--spotlight-corner),
      linear-gradient(to right, transparent, #000 31%, #000 89%, transparent),
      linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent);
  }
}
@media (max-width: 875px) {
  .store-header { flex-wrap: wrap; gap: 15px; }
  .store-nav { order: 1; margin: 0; width: 100%; justify-content: space-around; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-art { width: 82%; opacity: .38; }
  .desktop-break { display: none; }
  .hero .reading { max-width: 440px; }
  .benefits li { text-align: center; gap: 5px; flex-direction: column; font-size: 13px; }
  .storefront .product, .dashboard .product { min-height: 136px; }
  .storefront .product, .storefront .product:nth-child(even) { grid-template-columns: 36% 1fr; }
  .ecosystem { margin-inline: 0; padding: 25px 18px; background-image: linear-gradient(90deg,#291a21bb,#291a21 60%), url('design/MODA-visual-assets/reusable-png/botanical-edge-fade.png'); }
  .dashboard { display: block; padding: 10px; }
  .sidebar { min-height: 0; gap: 12px; }
  .member-nav a { font-size: 14px; min-height: 38px; gap: 6px; }
  .member-nav i { width: 17px; height: 17px; }
  .member-nav .active { margin: 0; }
  .member-nav hr, .toolkit { display: none; }
  .member-main { padding: 18px 4px; }
}
@media (max-width: 540px) {
  .store-header .brand { font-size: 14px; }
  .store-header .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .store-header .toolbar { gap: 6px; }
  .store-header .round { width: 32px; height: 32px; }
  .store-header .toolbar > a[aria-label="Member dashboard"] { display: none; }
  .store-header .primary { min-height: 32px; padding-inline: 8px; font-size: 12px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: clamp(32.5px, 9.52vw, 48.2px); }
  .actions { gap: 8px; flex-wrap: wrap; }
  .actions .btn { padding-inline: 11px; font-size: 13px; }
  .collection { margin-inline: 0; }
  .collection .section-heading { margin-inline: 0; }
  .section-heading .text-link { font-size: 13px; }
  .product-grid, .member-apps .product-grid { grid-template-columns: 1fr; }
  .ecosystem { flex-direction: column; align-items: flex-start; }
  .member-header .toolbar { gap: 8px; }
  .member-header .round, .profile-menu summary { min-height: 42px; height: 42px; }
  .member-header .round { width: 42px; }
  .profile-menu { margin-left: 0; }
  .profile-menu::before { display: none; }
  .profile-menu .avatar { width: 32px; height: 32px; }
  .stats { gap: 10px; }
  .stat { min-height: 85px; font-size: 15px; }
  .stat > .dot { top: 10px; right: 11px; }
  .update { flex-wrap: wrap; }
  .update > div { flex: 1 1 65%; }
}

.nav-toggle, .store-nav .mobile-search { display: none; }
.sidebar .brand {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .sidebar .nav-toggle { display: inline-flex; }
  .sidebar .member-nav { display: none; grid-column: 1 / -1; }
  .sidebar .member-nav.is-open { display: grid; gap: 3px; }
}

@media (max-width: 640px) {
  .store-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .store-header .brand { white-space: normal; gap: 8px; }
  .store-header .toolbar { gap: 8px; }
  .store-header .toolbar > .round { display: none; }
  .store-header .toolbar .nav-toggle { display: inline-flex; }
  .store-header .nav-toggle { width: 40px; height: 40px; }
  .store-header .primary { min-height: 40px; padding-inline: 13px; }
  .store-header .store-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #33212a;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .store-header .store-nav.is-open { display: flex; }
  .store-nav a, .store-nav .mobile-search { display: block; padding: 9px 12px; }
  .store-nav .current::after { display: none; }
  .store-nav .current { color: var(--sage); }
}
